Adding modified code to select variants and gather arrays
[arvados-tutorial.git] / cwl / helper / scatter-gatk-wf-with-interval.cwl
index 80d0456055a17e5b3d274df9906968cf5e32248c..6e9f415f691c54fc41b5d497f28d9abb30f74855 100644 (file)
@@ -31,10 +31,12 @@ inputs:
   scattercount: string
 
 outputs:
-  gvcf:
-    type: File[]
-    outputSource: recal-haplotypecaller/gvcf
-
+  gatheredgvcf:
+    type: File
+    secondaryFiles: 
+      - .tbi
+    outputSource: merge-GVCFs/gatheredgvcf
+    
 steps:
   splitintervals:
     run: gatk-splitintervals.cwl
@@ -54,3 +56,11 @@ steps:
       knownsites1: knownsites1
       intervallist: splitintervals/intervalfiles
     out: [gvcf]
+
+  merge-GVCFs:
+    run: gather-array-vcf.cwl
+    in:
+      gvcfarray: recal-haplotypecaller/gvcf
+      sample: sample
+      reference: reference
+    out: [gatheredgvcf]