Skip to content

Commit

Permalink
Relaxed mem as well
Browse files Browse the repository at this point in the history
  • Loading branch information
harmonbhasin committed Nov 20, 2024
1 parent de9cc5a commit 914cd04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/local/bbmap/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ process BBMAP {
stats=!{sample}_!{suffix}_bbmap.stats.txt
io="in=${in1} in2=${in2} outu=${ou1} outu2=${ou2} outm=${om1} outm2=${om2} statsfile=${stats} path=!{index_dir}"
# Define parameters
par="minid=0.8 maxindel=4 bwr=0.25 bw=25 quickmatch minhits=2 t=!{task.cpus} -Xmx60g"
par="minid=0.8 maxindel=4 bwr=0.25 bw=25 quickmatch minhits=2 t=!{task.cpus} -Xmx!{task.memory.toGiga()}g"
# Execute
bbmap.sh ${io} ${par}
'''
Expand Down
4 changes: 2 additions & 2 deletions modules/local/clumpify/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ process CLUMPIFY_PAIRED {
op2=!{sample}_dedup_2.fastq.gz
io="in=${in1} in2=${in2} out=${op1} out2=${op2}"
# Define parameters
par="reorder dedupe passes=6 addcount=t t=!{task.cpus} -Xmx30g"
par="reorder dedupe passes=6 addcount=t t=!{task.cpus} -Xmx!{task.memory.toGiga()}g"
# Execute
clumpify.sh ${io} ${par}
'''
Expand All @@ -38,7 +38,7 @@ process CLUMPIFY_SINGLE {
out=!{sample}_dedup.fastq.gz
io="in=${in} out=${out}"
# Define parameters
par="reorder dedupe rcomp passes=6 addcount=t t=!{task.cpus} -Xmx30g"
par="reorder dedupe rcomp passes=6 addcount=t t=!{task.cpus} -Xmx!{task.memory.toGiga()}g"
# Execute
clumpify.sh ${io} ${par}
'''
Expand Down

0 comments on commit 914cd04

Please sign in to comment.