comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:c8597e9e1a97
1 process QUAL_PASSED_GENOMES {
2 tag "Consolidate"
3 label "process_micro"
4
5 module (params.enable_module ? "${params.swmodulepath}${params.fs}python${params.fs}3.8.1" : null)
6 conda (params.enable_conda ? "conda-forge::python=3.10.4" : null)
7 container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
8 'https://depot.galaxyproject.org/singularity/python:3.10.4' :
9 'quay.io/biocontainers/python:3.10.4' }"
10
11 input:
12 path acc_passed_tool1
13 path acc_passed_tool2
14
15 output:
16 path 'accs_passed.txt', emit: accs
17 path 'versions.yml' , emit: versions
18
19 when:
20 task.ext.when == null || task.ext.when
21
22 script:
23 def args = task.ext.args ?: ''
24 def prefix = task.index ?: ''
25 def output = 'accs_passed.txt'
26
27 """
28 qual_confirm.py \\
29 -f1 $acc_passed_tool1 \\
30 -f2 $acc_passed_tool2
31
32 cat <<-END_VERSIONS >> versions.yml
33 python: \$( python --version | sed 's/Python //g' )
34 END_VERSIONS
35 """
36 }