mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-15 06:03:10 +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>
30 lines
781 B
Text
30 lines
781 B
Text
process GUNC_DOWNLOADDB {
|
|
tag '$db_name'
|
|
label 'process_single'
|
|
|
|
conda (params.enable_conda ? "bioconda::gunc=1.0.5" : null)
|
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
|
'https://depot.galaxyproject.org/singularity/gunc:1.0.5--pyhdfd78af_0' :
|
|
'quay.io/biocontainers/gunc:1.0.5--pyhdfd78af_0' }"
|
|
|
|
input:
|
|
val db_name
|
|
|
|
output:
|
|
path "*.dmnd" , emit: db
|
|
path "versions.yml" , emit: versions
|
|
|
|
when:
|
|
task.ext.when == null || task.ext.when
|
|
|
|
script:
|
|
def args = task.ext.args ?: ''
|
|
"""
|
|
gunc download_db . -db $db_name $args
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
"${task.process}":
|
|
gunc: \$( gunc --version )
|
|
END_VERSIONS
|
|
"""
|
|
}
|