From c4bf6cfa62aab1b75b8d7e6e80b5e774b3e6c2c6 Mon Sep 17 00:00:00 2001
From: Peter van 't Hof <p.j.van_t_hof@lumc.nl>
Date: Mon, 8 Oct 2018 17:01:44 +0200
Subject: [PATCH] Added struct

---
 biopet/sampleconfig.wdl | 2 +-
 common.wdl              | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/biopet/sampleconfig.wdl b/biopet/sampleconfig.wdl
index 3e530ac..c8e30e4 100644
--- a/biopet/sampleconfig.wdl
+++ b/biopet/sampleconfig.wdl
@@ -110,7 +110,7 @@ task CaseControl {
 
     output {
         File outputFile = outputPath
-        Array[CaseControl] caseControls = read_json(outputFile)
+        CaseControls caseControls = read_json(outputFile)
     }
 
     runtime {
diff --git a/common.wdl b/common.wdl
index c618cbf..cd434f3 100644
--- a/common.wdl
+++ b/common.wdl
@@ -170,3 +170,7 @@ struct CaseControl {
     String controlName
     IndexedBamFile controlBam
 }
+
+struct CaseControls {
+    Array[CaseControl] caseControls
+}
\ No newline at end of file
-- 
GitLab