2022-12-11 15:52:34 +00:00
|
|
|
process BRACKEN_COMBINEBRACKENOUTPUTS {
|
2022-12-12 09:10:24 +00:00
|
|
|
tag "$meta.id"
|
2022-12-11 15:52:34 +00:00
|
|
|
label 'process_low'
|
|
|
|
|
2022-12-23 16:23:05 +00:00
|
|
|
conda "bioconda::bracken=2.7"
|
2022-12-11 15:52:34 +00:00
|
|
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
|
|
|
'https://depot.galaxyproject.org/singularity/bracken:2.7--py39hc16433a_0':
|
|
|
|
'quay.io/biocontainers/bracken:2.7--py39hc16433a_0' }"
|
|
|
|
|
|
|
|
input:
|
2022-12-12 09:10:24 +00:00
|
|
|
tuple val(meta), path(input)
|
2022-12-11 15:52:34 +00:00
|
|
|
|
|
|
|
output:
|
2022-12-12 09:10:24 +00:00
|
|
|
tuple val(meta), path("*.txt"), emit: txt
|
|
|
|
path "versions.yml" , emit: versions
|
2022-12-11 15:52:34 +00:00
|
|
|
|
|
|
|
when:
|
|
|
|
task.ext.when == null || task.ext.when
|
|
|
|
|
|
|
|
script:
|
|
|
|
def args = task.ext.args ?: ''
|
2022-12-12 09:10:24 +00:00
|
|
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
2022-12-11 15:52:34 +00:00
|
|
|
// WARN: Version information not provided by tool on CLI.
|
|
|
|
// Please update version string below when bumping container versions.
|
|
|
|
def VERSION = '2.7'
|
|
|
|
"""
|
|
|
|
combine_bracken_outputs.py \\
|
|
|
|
$args \\
|
|
|
|
--files ${input} \\
|
2022-12-12 09:10:24 +00:00
|
|
|
-o ${prefix}.txt
|
2022-12-11 15:52:34 +00:00
|
|
|
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
|
|
"${task.process}":
|
|
|
|
combine_bracken_output: ${VERSION}
|
|
|
|
END_VERSIONS
|
|
|
|
"""
|
|
|
|
}
|