Mercurial > repos > kkonganti > cfsan_cronology
annotate 0.1.0/modules/custom/qual_passed_genomes/main.nf @ 1:c6327baca625
"planemo upload"
author | kkonganti |
---|---|
date | Mon, 27 Nov 2023 14:18:16 -0500 |
parents | c8597e9e1a97 |
children |
rev | line source |
---|---|
kkonganti@0 | 1 process QUAL_PASSED_GENOMES { |
kkonganti@0 | 2 tag "Consolidate" |
kkonganti@0 | 3 label "process_micro" |
kkonganti@0 | 4 |
kkonganti@0 | 5 module (params.enable_module ? "${params.swmodulepath}${params.fs}python${params.fs}3.8.1" : null) |
kkonganti@0 | 6 conda (params.enable_conda ? "conda-forge::python=3.10.4" : null) |
kkonganti@0 | 7 container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? |
kkonganti@0 | 8 'https://depot.galaxyproject.org/singularity/python:3.10.4' : |
kkonganti@0 | 9 'quay.io/biocontainers/python:3.10.4' }" |
kkonganti@0 | 10 |
kkonganti@0 | 11 input: |
kkonganti@0 | 12 path acc_passed_tool1 |
kkonganti@0 | 13 path acc_passed_tool2 |
kkonganti@0 | 14 |
kkonganti@0 | 15 output: |
kkonganti@0 | 16 path 'accs_passed.txt', emit: accs |
kkonganti@0 | 17 path 'versions.yml' , emit: versions |
kkonganti@0 | 18 |
kkonganti@0 | 19 when: |
kkonganti@0 | 20 task.ext.when == null || task.ext.when |
kkonganti@0 | 21 |
kkonganti@0 | 22 script: |
kkonganti@0 | 23 def args = task.ext.args ?: '' |
kkonganti@0 | 24 def prefix = task.index ?: '' |
kkonganti@0 | 25 def output = 'accs_passed.txt' |
kkonganti@0 | 26 |
kkonganti@0 | 27 """ |
kkonganti@0 | 28 qual_confirm.py \\ |
kkonganti@0 | 29 -f1 $acc_passed_tool1 \\ |
kkonganti@0 | 30 -f2 $acc_passed_tool2 |
kkonganti@0 | 31 |
kkonganti@0 | 32 cat <<-END_VERSIONS >> versions.yml |
kkonganti@0 | 33 python: \$( python --version | sed 's/Python //g' ) |
kkonganti@0 | 34 END_VERSIONS |
kkonganti@0 | 35 """ |
kkonganti@0 | 36 } |