@@ -1176,7 +1176,7 @@ process adapter_removal {
11761176 mv *.settings output/
11771177
11781178 ## Add R_ and L_ for unmerged reads for DeDup compatibility
1179- AdapterRemovalFixPrefix -Xmx500m output/${ base} .pe.combined.tmp.fq.gz > output/${ base} .pe.combined.fq
1179+ AdapterRemovalFixPrefix -Xmx ${ task.memory.toGiga() } g output/${ base} .pe.combined.tmp.fq.gz > output/${ base} .pe.combined.fq
11801180
11811181 pigz -p ${ task.cpus} output/${ base} .pe.combined.fq
11821182 """
@@ -1192,7 +1192,7 @@ process adapter_removal {
11921192 mv *.settings output/
11931193
11941194 ## Add R_ and L_ for unmerged reads for DeDup compatibility
1195- AdapterRemovalFixPrefix -Xmx500m output/${ base} .pe.combined.tmp.fq.gz > output/${ base} .pe.combined.fq
1195+ AdapterRemovalFixPrefix -Xmx ${ task.memory.toGiga() } g output/${ base} .pe.combined.tmp.fq.gz > output/${ base} .pe.combined.fq
11961196
11971197 pigz -p ${ task.cpus} output/${ base} .pe.combined.fq
11981198 """
@@ -1205,7 +1205,7 @@ process adapter_removal {
12051205 cat *.collapsed.gz *.collapsed.truncated.gz > output/${ base} .pe.combined.tmp.fq.gz
12061206
12071207 ## Add R_ and L_ for unmerged reads for DeDup compatibility
1208- AdapterRemovalFixPrefix -Xmx500m output/${ base} .pe.combined.tmp.fq.gz > output/${ base} .pe.combined.fq
1208+ AdapterRemovalFixPrefix -Xmx ${ task.memory.toGiga() } g output/${ base} .pe.combined.tmp.fq.gz > output/${ base} .pe.combined.fq
12091209
12101210 pigz -p ${ task.cpus} output/${ base} .pe.combined.fq
12111211
@@ -1220,7 +1220,7 @@ process adapter_removal {
12201220 cat *.collapsed.gz > output/${ base} .pe.combined.tmp.fq.gz
12211221
12221222 ## Add R_ and L_ for unmerged reads for DeDup compatibility
1223- AdapterRemovalFixPrefix -Xmx500m output/${ base} .pe.combined.tmp.fq.gz > output/${ base} .pe.combined.fq
1223+ AdapterRemovalFixPrefix -Xmx ${ task.memory.toGiga() } g output/${ base} .pe.combined.tmp.fq.gz > output/${ base} .pe.combined.fq
12241224
12251225 pigz -p ${ task.cpus} output/${ base} .pe.combined.fq
12261226
@@ -1236,7 +1236,7 @@ process adapter_removal {
12361236 cat *.collapsed.gz *.pair1.truncated.gz *.pair2.truncated.gz > output/${ base} .pe.combined.tmp.fq.gz
12371237
12381238 ## Add R_ and L_ for unmerged reads for DeDup compatibility
1239- AdapterRemovalFixPrefix -Xmx500m output/${ base} .pe.combined.tmp.fq.gz > output/${ base} .pe.combined.fq
1239+ AdapterRemovalFixPrefix -Xmx ${ task.memory.toGiga() } g output/${ base} .pe.combined.tmp.fq.gz > output/${ base} .pe.combined.fq
12401240
12411241 pigz -p ${ task.cpus} output/${ base} .pe.combined.fq
12421242
@@ -1252,7 +1252,7 @@ process adapter_removal {
12521252 cat *.collapsed.gz > output/${ base} .pe.combined.tmp.fq.gz
12531253
12541254 ## Add R_ and L_ for unmerged reads for DeDup compatibility
1255- AdapterRemovalFixPrefix -Xmx500m output/${ base} .pe.combined.tmp.fq.gz > output/${ base} .pe.combined.fq
1255+ AdapterRemovalFixPrefix -Xmx ${ task.memory.toGiga() } g output/${ base} .pe.combined.tmp.fq.gz > output/${ base} .pe.combined.fq
12561256
12571257 pigz -p ${ task.cpus} output/${ base} .pe.combined.fq
12581258
0 commit comments