nf-core_modules/modules/fastk/histex/main.nf

37 lines
1.1 KiB
Text
Raw Normal View History

2022-06-14 14:30:37 +00:00
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."
}
2022-06-27 08:35:41 +00:00
// WARN: Version information not provided by tool on CLI. Please update version string below when bumping container versions.
2022-06-14 14:30:37 +00:00
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}"
2022-06-27 08:35:41 +00:00
def FASTK_VERSION = 'f18a4e6d2207539f7b84461daebc54530a9559b0' // WARN: Version information not provided by tool on CLI. Please update this string when bumping container versions.
2022-06-14 14:30:37 +00:00
"""
Histex \\
$args \\
$histogram \\
> ${prefix}.hist
cat <<-END_VERSIONS > versions.yml
"${task.process}":
fastk: $FASTK_VERSION
END_VERSIONS
"""
}