Updating cwl and yml for intervals and other changes
[arvados-tutorial.git] / WGS-processing / cwl / helper / gatk-splitintervals.cwl
index de183803636dab7836b240da1735604df5ea0b7b..4909bc7412d0ebfcf64d12f652604d6a556a8da9 100644 (file)
@@ -1,10 +1,6 @@
 cwlVersion: v1.1
 class: CommandLineTool
-label: Creating interval files for scattering
-
-$namespaces:
-  arv: "http://arvados.org/cwl#"
-  cwltool: "http://commonwl.org/cwltool#"
+label: Create scatter interval files
 
 requirements:
   DockerRequirement:
@@ -17,10 +13,17 @@ hints:
   ResourceRequirement:
     ramMin: 5000
     coresMin: 2
+  SoftwareRequirement:
+    packages:
+      GATK:
+        specs: [ "https://identifiers.org/rrid/RRID:SCR_001876" ]
+        version: [ "4.1.7" ]
 
 inputs:
   reference:
     type: File
+    format: edam:format_1929 # FASTA
+    label: Reference genome
     secondaryFiles:
       - .amb
       - .ann
@@ -29,12 +32,20 @@ inputs:
       - .sa
       - .fai
       - ^.dict
-  sample: string
-  scattercount: string
+  fullintervallist:
+    type: File
+    label: Full list of intervals to operate over
+  sample:
+    type: string
+    label: Sample Name
+  scattercount:
+    type: string
+    label: Desired split for variant calling
+
 outputs:
   intervalfiles:
     type: File[]
+    label: Scatter intervals files
     outputBinding:
       glob: "intervalfiles/*.interval_list"
 
@@ -46,9 +57,24 @@ arguments:
   - SplitIntervals
   - prefix: "-R"
     valueFrom: $(inputs.reference)
+  - prefix: "-L"
+    valueFrom: $(inputs.fullintervallist)
   - prefix: "--scatter-count"
     valueFrom: $(inputs.scattercount)
   - prefix: "--subdivision-mode"
     valueFrom: "BALANCING_WITHOUT_INTERVAL_SUBDIVISION"
   - prefix: "-O"
     valueFrom: "intervalfiles"
+
+s:codeRepository: https://github.com/arvados/arvados-tutorial
+s:license: https://www.gnu.org/licenses/agpl-3.0.en.html
+
+$namespaces:
+ s: https://schema.org/
+ edam: http://edamontology.org/
+ arv: "http://arvados.org/cwl#"
+ cwltool: "http://commonwl.org/cwltool#"
+
+#$schemas:
+# - https://schema.org/version/latest/schema.rdf
+# - http://edamontology.org/EDAM_1.18.owl