Open mahesh-panchal opened 4 years ago
Qualimap needs setting in a different way:
process qualimap {
input:
path alignment // [ '<sample>.bam', '<sample.bam.csi>' ]
output:
path ("${bamfile.baseName}")
script:
bamfile = alignment.find { it =~ /\.bam$/ }
mem = task.memory ? task.memory.toGiga() : task.cpus * 6
"""
JAVA_OPTS="-Xms32m -Xmx${mem}G -Djava.io.tmpdir=${task.scratch}"
qualimap bamqc -bam $bamfile -outdir ${bamfile.baseName} -outformat 'HTML' -nt ${task.cpus}
"""
}
Java programs should set tmp dir and max memory: