Mercurial > repos > kkonganti > cfsan_cronology
diff 0.1.0/modules/custom/qual_passed_genomes/main.nf @ 0:c8597e9e1a97
"planemo upload"
author | kkonganti |
---|---|
date | Mon, 27 Nov 2023 12:37:44 -0500 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/0.1.0/modules/custom/qual_passed_genomes/main.nf Mon Nov 27 12:37:44 2023 -0500 @@ -0,0 +1,36 @@ +process QUAL_PASSED_GENOMES { + tag "Consolidate" + label "process_micro" + + 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: + path acc_passed_tool1 + path acc_passed_tool2 + + output: + path 'accs_passed.txt', emit: accs + path 'versions.yml' , emit: versions + + when: + task.ext.when == null || task.ext.when + + script: + def args = task.ext.args ?: '' + def prefix = task.index ?: '' + def output = 'accs_passed.txt' + + """ + qual_confirm.py \\ + -f1 $acc_passed_tool1 \\ + -f2 $acc_passed_tool2 + + cat <<-END_VERSIONS >> versions.yml + python: \$( python --version | sed 's/Python //g' ) + END_VERSIONS + """ +} \ No newline at end of file