mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 19:18:17 +00:00
90aef30f43
* Set process label to `process_single` for modules with no `task.cpus` usage * Fix tests of 'borked' modules * prettier * More modules are single-threaded and can use process_single * Adding process_single to hmmer/esl* modules * Fix failing tests * Prettier Co-authored-by: Matthieu Muffato <mm49@sanger.ac.uk> Co-authored-by: Daniel Lundin <erik.rikard.daniel@gmail.com>
41 lines
1.3 KiB
Text
41 lines
1.3 KiB
Text
process KRONA_KTIMPORTTAXONOMY {
|
|
tag "${meta.id}"
|
|
label 'process_single'
|
|
|
|
// WARN: Version information not provided by tool on CLI. Please update version string below when bumping container versions.
|
|
conda (params.enable_conda ? "bioconda::krona=2.8" : null)
|
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
|
'https://depot.galaxyproject.org/singularity/krona:2.8--pl5262hdfd78af_2' :
|
|
'quay.io/biocontainers/krona:2.8--pl5262hdfd78af_2' }"
|
|
|
|
input:
|
|
tuple val(meta), path(report)
|
|
path taxonomy, stageAs: 'taxonomy.tab'
|
|
|
|
output:
|
|
tuple val(meta), path ('*.html'), emit: html
|
|
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 VERSION = '2.8' // WARN: Version information not provided by tool on CLI. Please update this string when bumping container versions.
|
|
"""
|
|
TAXONOMY=\$(find -L . -name '*.tab' -exec dirname {} \\;)
|
|
echo \$TAXONOMY
|
|
|
|
ktImportTaxonomy \\
|
|
$args \\
|
|
-o ${prefix}.html \\
|
|
-tax \$TAXONOMY/ \\
|
|
$report
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
"${task.process}":
|
|
krona: $VERSION
|
|
END_VERSIONS
|
|
"""
|
|
}
|