Mercurial > repos > kkonganti > cfsan_cronology
comparison 0.2.0/modules/index_pdg_metadata/main.nf @ 11:a5f31c44f8c9
planemo upload
author | kkonganti |
---|---|
date | Mon, 15 Jul 2024 16:11:44 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
10:ddf7a172bf30 | 11:a5f31c44f8c9 |
---|---|
1 process INDEX_PDG_METADATA { | |
2 tag "index_pdg_metadata.py" | |
3 label "process_pico" | |
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 pdg_metadata | |
13 path pdg_ref_snp_metadata | |
14 path accs_all | |
15 path mlst_results | |
16 | |
17 output: | |
18 path "*.pickle" , emit: index | |
19 path 'versions.yml', emit: versions | |
20 | |
21 when: | |
22 task.ext.when == null || task.ext.when | |
23 | |
24 script: | |
25 def args = task.ext.args ?: '' | |
26 def mlst_results = (mlst_results ? "-mlst ${mlst_results}" : '') | |
27 """ | |
28 index_pdg_metadata.py \\ | |
29 $mlst_results \\ | |
30 -pdg_dir "." | |
31 | |
32 cat <<-END_VERSIONS > versions.yml | |
33 "${task.process}": | |
34 python: \$( python --version | sed 's/Python //g' ) | |
35 END_VERSIONS | |
36 """ | |
37 | |
38 } |