diff 0.1.0/modules/masurca/polish/main.nf @ 8:d8913a37810a

"planemo upload"
author kkonganti
date Mon, 27 Nov 2023 20:49:25 -0500
parents c8597e9e1a97
children
line wrap: on
line diff
--- a/0.1.0/modules/masurca/polish/main.nf	Mon Nov 27 20:24:38 2023 -0500
+++ b/0.1.0/modules/masurca/polish/main.nf	Mon Nov 27 20:49:25 2023 -0500
@@ -20,8 +20,8 @@
 
     script:
         def args           = task.ext.args ?: ''
-        def memory         = task.memory.toGiga()
-        def mem_per_thread = task.memory.toGiga().toInteger().div(task.cpus.toInteger()).round(0)
+        def memory         = (task.memory ? task.memory.toGiga() : 16)
+        def mem_per_thread = memory.toGiga().toInteger().div(task.cpus.toInteger()).round(0)
         def all_reads      = "${reads.join(' ')}"
         prefix             = (task.ext.prefix ?: meta.id)
         """