mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 19:18:17 +00:00
35 lines
878 B
Text
35 lines
878 B
Text
process FASTK_HISTEX {
|
|
tag "$meta.id"
|
|
label 'process_low'
|
|
|
|
if (params.enable_conda) {
|
|
error "Conda environments cannot be used when using the FastK tool. Please use docker or singularity containers."
|
|
}
|
|
container 'ghcr.io/nbisweden/fastk_genescopefk_merquryfk:1.0'
|
|
|
|
input:
|
|
tuple val(meta), path(histogram)
|
|
|
|
output:
|
|
tuple val(meta), path("*.hist"), emit: hist
|
|
path "versions.yml" , emit: versions
|
|
|
|
when:
|
|
task.ext.when == null || task.ext.when
|
|
|
|
script:
|
|
def args = task.ext.args ?: ''
|
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
|
def FASTK_VERSION = 'f18a4e6d2207539f7b84461daebc54530a9559b0'
|
|
"""
|
|
Histex \\
|
|
$args \\
|
|
$histogram \\
|
|
> ${prefix}.hist
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
"${task.process}":
|
|
fastk: $FASTK_VERSION
|
|
END_VERSIONS
|
|
"""
|
|
}
|