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