Skip to content

Commit

Permalink
The default memory settings work just fine and make things easier to …
Browse files Browse the repository at this point in the history
…manipulate
  • Loading branch information
muffato committed Dec 5, 2023
1 parent 17ff3ea commit d215aa7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions modules/local/samtools_sormadup.nf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ process SAMTOOLS_SORMADUP {
args.contains("--output-fmt cram") ? "cram" :
"bam"
def reference = fasta ? "--reference ${fasta}" : ""
def sort_memory = ((task.memory.mega - 1024 * (1 + Math.ceil( meta.read_count / 100000000 )) * task.attempt)/task.cpus).intValue()

"""
samtools collate \\
Expand All @@ -60,7 +59,6 @@ process SAMTOOLS_SORMADUP {
-u \\
-T ${prefix}.sort \\
--threads $task.cpus \\
-m ${sort_memory}M \\
- \\
| \\
samtools markdup \\
Expand Down

0 comments on commit d215aa7

Please sign in to comment.