Skip to content

Commit 3351c21

Browse files
Update memory to return int (nf-core#8938)
1 parent 48ca3de commit 3351c21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/nf-core/bbmap/bbduk/main.nf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ process BBMAP_BBDUK {
2626
def trimmed = meta.single_end ? "out=${prefix}.fastq.gz" : "out1=${prefix}_1.fastq.gz out2=${prefix}_2.fastq.gz"
2727
def contaminants_fa = contaminants ? "ref=$contaminants" : ''
2828
"""
29-
maxmem=\$(echo \"$task.memory\"| sed 's/ GB/g/g')
3029
bbduk.sh \\
31-
-Xmx\$maxmem \\
30+
-Xmx${task.memory.toGiga()}g \\
3231
$raw \\
3332
$trimmed \\
3433
threads=$task.cpus \\
3534
$args \\
3635
$contaminants_fa \\
3736
&> ${prefix}.bbduk.log
37+
3838
cat <<-END_VERSIONS > versions.yml
3939
"${task.process}":
4040
bbmap: \$(bbversion.sh | grep -v "]")

0 commit comments

Comments
 (0)