Mercurial > repos > kkonganti > cfsan_cronology
comparison 0.2.0/modules/rmlst/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 RMLST_POST { | |
2 tag "${meta.id}" | |
3 label "process_pico" | |
4 maxForks 3 | |
5 | |
6 module (params.enable_module ? "${params.swmodulepath}${params.fs}python${params.fs}3.8.1" : null) | |
7 conda (params.enable_conda ? "conda-forge::python=3.10 conda-forge::requests" : null) | |
8 container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? | |
9 'https://depot.galaxyproject.org/singularity/requests:2.26.0' : | |
10 'quay.io/biocontainers/requests:2.26.0' }" | |
11 | |
12 input: | |
13 tuple val(meta), path(genome) | |
14 | |
15 output: | |
16 tuple val(meta), path('*.tsv') , emit: tsv, optional: true | |
17 tuple val(meta), path('*.log.json'), emit: log, optional: true | |
18 path 'versions.yml' , emit: versions | |
19 | |
20 when: | |
21 task.ext.when == null || task.ext.when | |
22 | |
23 script: | |
24 def prefix = (task.ext.prefix ?: meta.id) | |
25 | |
26 """ | |
27 rmlst_post.py \\ | |
28 -fasta $genome \\ | |
29 -prefix $prefix \\ | |
30 | |
31 cat <<-END_VERSIONS > versions.yml | |
32 "${task.process}": | |
33 python: \$( python --version | sed 's/Python //g' ) | |
34 requests: \$( python -c "import requests; print (requests.__version__)" ) | |
35 END_VERSIONS | |
36 """ | |
37 } |