nf-core_modules/modules/meryl/unionsum/main.nf
Mahesh Binzer-Panchal 6621768550 Update pytest outputs
2022-05-09 12:54:31 +00:00

35 lines
1,005 B
Text

process MERYL_UNIONSUM {
tag "$meta.id"
label 'process_low'
conda (params.enable_conda ? "bioconda::meryl=1.3" : null)
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/meryl:1.3--h87f3376_1':
'quay.io/biocontainers/meryl:1.3--h87f3376_1' }"
input:
tuple val(meta), path(meryl_dbs)
output:
tuple val(meta), path("*.unionsum.meryldb"), emit: meryl_db
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}"
"""
meryl union-sum \\
threads=$task.cpus \\
$args \\
output ${prefix}.unionsum.meryldb \\
$meryl_dbs
cat <<-END_VERSIONS > versions.yml
"${task.process}":
meryl: \$( meryl --version |& sed 's/meryl //' )
END_VERSIONS
"""
}