Skip to content

Commit 0caeec5

Browse files
Szilveszter JuhosSzilveszter Juhos
authored andcommitted
memory adjustments for samtools and MarkDuplicates
1 parent 784ca34 commit 0caeec5

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

configuration/uppmax-localhost.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ process {
7070
memory = {params.totalMemory}
7171
}
7272
$MarkDuplicates {
73-
// for deep sequencing we do need all the memory
73+
// Actually the -Xmx value should be kept lower
7474
cpus = 16
75-
memory = {params.totalMemory}
75+
memory = {2 * params.singleCPUMem}
7676
}
7777
$MergeBams {
7878
cpus = 16

configuration/uppmax-slurm.config

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ process {
5252
time = {params.runTime * task.attempt}
5353
}
5454
$MarkDuplicates {
55-
// looks like overkill, but for deep sequencing we do need all the memory
55+
// Actually the -Xmx value should be kept lower
56+
cpus = 16
57+
memory = {2 * params.singleCPUMem}
5658
}
5759
$MergeBams {
5860
memory = {params.singleCPUMem * task.attempt}

main.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ process MapReads {
179179
"""
180180
bwa mem -R \"${readGroup}\" ${extra} -t ${task.cpus} -M \
181181
${genomeFile} ${fastqFile1} ${fastqFile2} | \
182-
samtools sort --threads ${task.cpus} -m 4G - > ${idRun}.bam
182+
samtools sort --threads ${task.cpus} -m 2G - > ${idRun}.bam
183183
"""
184184
}
185185

0 commit comments

Comments
 (0)