From edb371e333e05764080c48937d81bd1c7f8921ba Mon Sep 17 00:00:00 2001
From: Ruben Vorderman <r.h.p.vorderman@lumc.nl>
Date: Tue, 16 Jun 2020 08:07:55 +0200
Subject: [PATCH] Also read reference and dbsnpvcf as part of time estimate

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

diff --git a/gatk.wdl b/gatk.wdl
index 09de048..700a245 100644
--- a/gatk.wdl
+++ b/gatk.wdl
@@ -1574,7 +1574,7 @@ task VariantEval {
         String memory = "5G"
         String javaXmx = "4G"
         # TODO: Refine estimate. For now 4 minutes per GB of input.
-        Int timeMinutes = ceil(size(flatten([evalVcfs, comparisonVcfs]), "G") * 4)
+        Int timeMinutes = ceil(size(flatten([evalVcfs, comparisonVcfs, select_all([referenceFasta, dbsnpVCF])]), "G") * 4)
         String dockerImage = "quay.io/biocontainers/gatk4:4.1.7.0--py38_0"
     }
 
-- 
GitLab