Mercurial > repos > kkonganti > cfsan_cronology
annotate 0.1.0/modules/pirate/main.nf @ 5:6e5ceea33843
"planemo upload"
author | kkonganti |
---|---|
date | Mon, 27 Nov 2023 14:50:43 -0500 |
parents | c8597e9e1a97 |
children |
rev | line source |
---|---|
kkonganti@0 | 1 process PIRATE { |
kkonganti@0 | 2 tag "$meta.id" |
kkonganti@0 | 3 label 'process_medium' |
kkonganti@0 | 4 |
kkonganti@0 | 5 module (params.enable_module ? "${params.swmodulepath}${params.fs}pirate${params.fs}5.2.0" : null) |
kkonganti@0 | 6 conda (params.enable_conda ? "bioconda::pirate=1.0.5 bioconda::mcl=14.137 conda-forge::r-dplyr" : null) |
kkonganti@0 | 7 container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? |
kkonganti@0 | 8 'https://depot.galaxyproject.org/singularity/pirate:1.0.5--hdfd78af_0' : |
kkonganti@0 | 9 'quay.io/biocontainers/pirate:1.0.5--hdfd78af_0' }" |
kkonganti@0 | 10 |
kkonganti@0 | 11 input: |
kkonganti@0 | 12 tuple val(meta), path(gff) |
kkonganti@0 | 13 |
kkonganti@0 | 14 output: |
kkonganti@0 | 15 tuple val(meta), path("results/*") , emit: results |
kkonganti@0 | 16 tuple val(meta), path("results/core_alignment.fasta"), emit: aln, optional: true |
kkonganti@0 | 17 path "versions.yml" , emit: versions |
kkonganti@0 | 18 |
kkonganti@0 | 19 when: |
kkonganti@0 | 20 task.ext.when == null || task.ext.when |
kkonganti@0 | 21 |
kkonganti@0 | 22 script: |
kkonganti@0 | 23 def args = task.ext.args ?: '' |
kkonganti@0 | 24 def prefix = task.ext.prefix ?: "${meta.id}" |
kkonganti@0 | 25 def rplots = (params.enable_conda ? '--rplots' : '') |
kkonganti@0 | 26 """ |
kkonganti@0 | 27 PIRATE \\ |
kkonganti@0 | 28 $args \\ |
kkonganti@0 | 29 $rplots \\ |
kkonganti@0 | 30 --threads $task.cpus \\ |
kkonganti@0 | 31 --input ".${params.fs}" \\ |
kkonganti@0 | 32 --output results/ |
kkonganti@0 | 33 |
kkonganti@0 | 34 cat <<-END_VERSIONS > versions.yml |
kkonganti@0 | 35 "${task.process}": |
kkonganti@0 | 36 pirate: \$( echo \$( PIRATE --version 2>&1) | sed 's/PIRATE //' ) |
kkonganti@0 | 37 END_VERSIONS |
kkonganti@0 | 38 """ |
kkonganti@0 | 39 } |