Skip to content
This repository has been archived by the owner on Jan 27, 2020. It is now read-only.

Commit

Permalink
memory adjustments for samtools and MarkDuplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
Szilveszter Juhos authored and Szilveszter Juhos committed Aug 14, 2018
1 parent 98cf879 commit 393da8b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions configuration/uppmax-localhost.config
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ process {
memory = {params.totalMemory}
}
$MarkDuplicates {
// for deep sequencing we do need all the memory
// Actually the -Xmx value should be kept lower
cpus = 16
memory = {params.totalMemory}
memory = {2 * params.singleCPUMem}
}
$MergeBams {
cpus = 16
Expand Down
4 changes: 3 additions & 1 deletion configuration/uppmax-slurm.config
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ process {
time = {params.runTime * task.attempt}
}
$MarkDuplicates {
// looks like overkill, but for deep sequencing we do need all the memory
// Actually the -Xmx value should be kept lower
cpus = 16
memory = {2 * params.singleCPUMem}
}
$MergeBams {
memory = {params.singleCPUMem * task.attempt}
Expand Down
2 changes: 1 addition & 1 deletion main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ process MapReads {
"""
bwa mem -R \"${readGroup}\" ${extra} -t ${task.cpus} -M \
${genomeFile} ${fastqFile1} ${fastqFile2} | \
samtools sort --threads ${task.cpus} -m 4G - > ${idRun}.bam
samtools sort --threads ${task.cpus} -m 2G - > ${idRun}.bam
"""
}

Expand Down

0 comments on commit 393da8b

Please sign in to comment.