Mercurial > repos > kkonganti > cfsan_cronology
diff 0.2.0/modules/download_pubmlst_scheme/main.nf @ 11:a5f31c44f8c9
planemo upload
author | kkonganti |
---|---|
date | Mon, 15 Jul 2024 16:11:44 -0400 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/0.2.0/modules/download_pubmlst_scheme/main.nf Mon Jul 15 16:11:44 2024 -0400 @@ -0,0 +1,34 @@ +process DOWNLOAD_PUBMLST_SCHEME { + tag "dl_pubmlst_profiles_and_schemes.py" + label "process_pico" + + module (params.enable_module ? "${params.swmodulepath}${params.fs}python${params.fs}3.8.1" : null) + conda (params.enable_conda ? "conda-forge::python=3.10.4" : null) + container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? + 'https://depot.galaxyproject.org/singularity/python:3.10.4' : + 'quay.io/biocontainers/python:3.10.4' }" + + input: + val organism + + output: + path "${organism}" , emit: pubmlst_dir + path 'versions.yml', emit: versions + + when: + task.ext.when == null || task.ext.when + + script: + def args = task.ext.args ?: '' + """ + dl_pubmlst_profiles_and_schemes.py \\ + -f \\ + $args + + cat <<-END_VERSIONS > versions.yml + "${task.process}": + python: \$( python --version | sed 's/Python //g' ) + END_VERSIONS + """ + +} \ No newline at end of file