From 619781f26255421acdaa64daa930c279219eba5b Mon Sep 17 00:00:00 2001
From: Ruben Vorderman <r.h.p.vorderman@lumc.nl>
Date: Thu, 2 Apr 2020 14:17:08 +0200
Subject: [PATCH] Add fastqc requirements

---
 fastqc.wdl | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/fastqc.wdl b/fastqc.wdl
index 4d10147..7e693f6 100644
--- a/fastqc.wdl
+++ b/fastqc.wdl
@@ -38,7 +38,7 @@ task Fastqc {
         String? dir
 
         Int threads = 1
-        String memory = "4G"
+        String memory = "1G"
         String dockerImage = "quay.io/biocontainers/fastqc:0.11.9--0"
         Array[File]? NoneArray
         File? NoneFile
@@ -80,10 +80,12 @@ task Fastqc {
         Array[File]? images = if extract then glob(reportDir + "/Images/*.png") else NoneArray
     }
 
+    Int estimatedRuntime = 1 + ceil(size(seqFile, "G")) * 4
     runtime {
         cpu: threads
         memory: memory
         docker: dockerImage
+        runtime_minutes: estimatedRuntime
     }
 
     parameter_meta {
-- 
GitLab