mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 11:08:17 +00:00
d27b7a6fda
* Add combinebrackenoutputs * Prettier and relax tests contains * Apply suggestions from code review Co-authored-by: Robert A. Petit III <robbie.petit@gmail.com> Co-authored-by: Robert A. Petit III <robbie.petit@gmail.com>
36 lines
1 KiB
Text
36 lines
1 KiB
Text
process BRACKEN_COMBINEBRACKENOUTPUTS {
|
|
label 'process_low'
|
|
|
|
conda (params.enable_conda ? "bioconda::bracken=2.7" : null)
|
|
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:
|
|
path input
|
|
|
|
output:
|
|
path "*.txt" , emit: txt
|
|
path "versions.yml", emit: versions
|
|
|
|
when:
|
|
task.ext.when == null || task.ext.when
|
|
|
|
script:
|
|
def args = task.ext.args ?: ''
|
|
def prefix = task.ext.prefix ?: "bracken_combined.txt"
|
|
// 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} \\
|
|
-o ${prefix}
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
"${task.process}":
|
|
combine_bracken_output: ${VERSION}
|
|
END_VERSIONS
|
|
"""
|
|
}
|