comparison 0.1.0/modules/shovill/main.nf @ 0:c8597e9e1a97

"planemo upload"
author kkonganti
date Mon, 27 Nov 2023 12:37:44 -0500
parents
children d8913a37810a
comparison
equal deleted inserted replaced
-1:000000000000 0:c8597e9e1a97
1 process SHOVILL {
2 tag "$meta.id"
3 label 'process_low'
4
5 module (params.enable_module ? "${params.swmodulepath}${params.fs}shovill${params.fs}1.1.0" : null)
6 conda (params.enable_conda ? "bioconda::shovill=1.1.0 conda-forge::pigz" : null)
7 container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
8 'https://depot.galaxyproject.org/singularity/shovill:1.1.0--0' :
9 'quay.io/biocontainers/shovill:1.1.0--0' }"
10
11 input:
12 tuple val(meta), path(reads)
13
14 output:
15 tuple val(meta), path("${prefix}${params.fs}contigs.fa") , emit: contigs
16 tuple val(meta), path("${prefix}${params.fs}shovill.corrections") , emit: corrections
17 tuple val(meta), path("${prefix}${params.fs}shovill.log") , emit: log
18 tuple val(meta), path("${prefix}${params.fs}{skesa,spades,megahit,velvet}.fasta"), emit: raw_contigs
19 tuple val(meta), path("${prefix}${params.fs}contigs.{fastg,gfa,LastGraph}") , emit: gfa, optional: true
20 path "versions.yml" , emit: versions
21
22 when:
23 task.ext.when == null || task.ext.when
24
25 script:
26 def args = task.ext.args ?: ''
27 def memory = task.memory.toGiga()
28 prefix = (task.ext.prefix ?: meta.id)
29 """
30 shovill \\
31 --R1 ${reads[0]} \\
32 --R2 ${reads[1]} \\
33 $args \\
34 --cpus $task.cpus \\
35 --ram $memory \\
36 --outdir $prefix \\
37 --force
38
39 cat <<-END_VERSIONS > versions.yml
40 "${task.process}":
41 shovill: \$(echo \$(shovill --version 2>&1) | sed 's/^.*shovill //')
42 END_VERSIONS
43 """
44 }