From a18806aa27a484f715d92b253d17fbf7b2a94782 Mon Sep 17 00:00:00 2001
From: Ruben Vorderman <r.h.p.vorderman@lumc.nl>
Date: Mon, 6 Jul 2020 10:22:39 +0200
Subject: [PATCH] Reduce flagstat memory

---
 samtools.wdl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/samtools.wdl b/samtools.wdl
index 4949569..5daf57a 100644
--- a/samtools.wdl
+++ b/samtools.wdl
@@ -209,7 +209,7 @@ task Flagstat {
         File inputBam
         String outputPath
 
-        String memory = "1G"
+        String memory = "256M"  # Only 40.5 MiB used for 150G bam file.
         Int timeMinutes = 1 + ceil(size(inputBam, "G"))
         String dockerImage = "quay.io/biocontainers/samtools:1.8--h46bd0b3_5"
     }
-- 
GitLab