mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-10 20:23:10 +00:00
36 lines
1.1 KiB
Text
36 lines
1.1 KiB
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."
|
|
}
|
|
// WARN: Version information not provided by tool on CLI. Please update version string below when bumping container versions.
|
|
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' // WARN: Version information not provided by tool on CLI. Please update this string when bumping container versions.
|
|
"""
|
|
Histex \\
|
|
$args \\
|
|
$histogram \\
|
|
> ${prefix}.hist
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
"${task.process}":
|
|
fastk: $FASTK_VERSION
|
|
END_VERSIONS
|
|
"""
|
|
}
|