comparison 0.5.0/modules/download_pdg_metadata/main.nf @ 1:365849f031fd

"planemo upload"
author kkonganti
date Mon, 05 Jun 2023 18:48:51 -0400
parents
children
comparison
equal deleted inserted replaced
0:a4b1ee4b68b1 1:365849f031fd
1 process DOWNLOAD_PDG_METADATA {
2 tag "dl_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 val pdg_release
13
14 output:
15 path "**${params.fs}*.metadata.tsv" , emit: pdg_metadata
16 path "**${params.fs}*.reference_target.cluster_list.tsv", emit: snp_cluster_metadata
17 path "**${params.fs}*accs_all.txt" , emit: accs
18 path 'versions.yml' , emit: versions
19
20 when:
21 task.ext.when == null || task.ext.when
22
23 script:
24 def args = task.ext.args ?: ''
25 args += (pdg_release ? " -rel ${pdg_release}" : '')
26 """
27 dl_pdg_metadata.py \\
28 $args
29
30 cat <<-END_VERSIONS > versions.yml
31 "${task.process}":
32 python: \$( python --version | sed 's/Python //g' )
33 END_VERSIONS
34 """
35
36 }