nf-core_modules/modules/krona/kronadb/main.nf

31 lines
819 B
Text
Raw Normal View History

2022-05-04 14:38:10 +00:00
def VERSION='2.7.1' // Version information not provided by tool on CLI
2022-05-04 15:28:24 +00:00
process KRONA_KRONADB {
2022-05-04 14:38:10 +00:00
label 'process_low'
conda (params.enable_conda ? "bioconda::krona=2.7.1" : null)
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/krona:2.7.1--pl526_5' :
'quay.io/biocontainers/krona:2.7.1--pl526_5' }"
output:
path 'taxonomy/taxonomy.tab', emit: db
path "versions.yml" , emit: versions
when:
task.ext.when == null || task.ext.when
script:
def args = task.ext.args ?: ''
"""
ktUpdateTaxonomy.sh \\
$args \\
taxonomy/
cat <<-END_VERSIONS > versions.yml
"${task.process}":
krona: $VERSION
END_VERSIONS
"""
}