updating for metadata and yml to check command line cwl
[arvados-tutorial.git] / WGS-processing / cwl / helper / gatk-haplotypecaller-with-interval.cwl
index 88c78e04654581896209c162a7c0dc7101519887..22ce3f6b8a3521d6bca2308b91dfb8b3949f5835 100644 (file)
@@ -1,10 +1,6 @@
 cwlVersion: v1.1
 class: CommandLineTool
-label: Germline variant calling using GATK with output gvcf
-
-$namespaces:
-  arv: "http://arvados.org/cwl#"
-  cwltool: "http://commonwl.org/cwltool#"
+label: Call variants with GATK HaplotypeCaller
 
 requirements:
   DockerRequirement:
@@ -17,14 +13,23 @@ hints:
   ResourceRequirement:
     ramMin: 3500
     coresMin: 2   
+  SoftwareRequirement:
+    packages:
+      GATK:
+        specs: [ "https://identifiers.org/rrid/RRID:SCR_001876" ]
+        version: [ "4.1.7" ]
 
 inputs:
   bam:
     type: File
+    format: edam:format_2572 # BAM
+    label: Recalibrated BAM for given interval
     secondaryFiles:
       - .bai
   reference:
     type: File
+    format: edam:format_1929 # FASTA
+    label: Reference genome
     secondaryFiles:
       - .amb
       - .ann
@@ -35,11 +40,16 @@ inputs:
       - ^.dict
   intervallist:
     type: File
-  sample: string
+    label: Scatter intervals file
+  sample: 
+    type: string
+    label: Sample Name
 
 outputs:
   gvcf:
     type: File
+    format: edam:format_3016 # GVCF
+    label: GVCF for given interval
     secondaryFiles:
       - .tbi
     outputBinding:
@@ -67,3 +77,16 @@ arguments:
     valueFrom: "20"
   - prefix: "-GQB"
     valueFrom: "60"
+
+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