From fb4830abc9436181bf65c939d144045ea53523eb Mon Sep 17 00:00:00 2001 From: MartinPippel Date: Sun, 24 Nov 2024 12:32:06 +0100 Subject: [PATCH] reduce memory for meryl count to avoid crash --- modules/nf-core/meryl/count/main.nf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/nf-core/meryl/count/main.nf b/modules/nf-core/meryl/count/main.nf index c1540cc874b..20dc8db83a3 100644 --- a/modules/nf-core/meryl/count/main.nf +++ b/modules/nf-core/meryl/count/main.nf @@ -21,12 +21,13 @@ process MERYL_COUNT { script: def args = task.ext.args ?: '' def prefix = task.ext.prefix ?: "${meta.id}" + def reduced_mem = task.memory.multiply(0.9).toGiga() """ for READ in $reads; do meryl count \\ k=$kvalue \\ threads=$task.cpus \\ - memory=${task.memory.toGiga()} \\ + memory=$reduced_mem \\ $args \\ $reads \\ output read.\${READ%.f*}.meryl