haplotyper-battle-royale/modules/quasirecomb/main.nf

32 lines
674 B
Text
Raw Normal View History

2023-09-23 21:54:49 +00:00
process QUASIRECOMB {
tag "${prefix}"
label 'process_high'
label 'quasirecomb'
2023-09-23 21:54:49 +00:00
container 'quay.io/biocontainers/quasirecomb:1.2--hdfd78af_1'
input:
tuple val(prefix), path(bam), path(bai)
2023-09-23 21:54:49 +00:00
output:
tuple val(prefix), path("*.fasta")
publishDir "${params.outdir}/${task.process}", mode: 'copy'
2023-09-23 21:54:49 +00:00
when:
task.ext.when == null || task.ext.when
2023-09-23 21:54:49 +00:00
script:
def jmemstring = task.memory.toMega() + 'M'
"""
quasirecomb \\
-XX:+UseParallelGC \\
-Xms2g \\
-Xmx${jmemstring} \\
-XX:+UseNUMA \\
-XX:NewRatio=9 \\
-i "${bam}"
mv quasispecies.fasta "${prefix}.fasta"
"""
}