feat: Add QuasiRecomb module
This commit is contained in:
parent
5ab64a8fea
commit
3e6a0ca5df
1 changed files with 27 additions and 0 deletions
27
modules/quasirecomb/main.nf
Normal file
27
modules/quasirecomb/main.nf
Normal file
|
@ -0,0 +1,27 @@
|
|||
process QUASIRECOMB {
|
||||
tag "${prefix}"
|
||||
label 'process_high'
|
||||
|
||||
container 'quay.io/biocontainers/quasirecomb:1.2--hdfd78af_1'
|
||||
|
||||
input:
|
||||
tuple val(prefix), path(bam)
|
||||
|
||||
output:
|
||||
tuple val(prefix), path("*.fasta")
|
||||
|
||||
publishDir "results/${task.process}", mode: 'copy'
|
||||
|
||||
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"
|
||||
"""
|
||||
}
|
Loading…
Reference in a new issue