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