Adding labels and metadata
[arvados-tutorial.git] / WGS-processing / cwl / helper / gatk-baserecalibrator-with-interval.cwl
index dec324463d60e5661792a8ad59989b99597c198a..7e5bf4df4bc863807a4136547ab794af374cb69e 100644 (file)
@@ -1,10 +1,6 @@
 cwlVersion: v1.1
 class: CommandLineTool
-label: Generating recalibration table for BQSR 
-
-$namespaces:
-  arv: "http://arvados.org/cwl#"
-  cwltool: "http://commonwl.org/cwltool#"
+label: Generate recalibration table for BQSR 
 
 requirements:
   DockerRequirement:
@@ -20,14 +16,23 @@ hints:
   ResourceRequirement:
     ramMin: 5000
     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: Indexed sorted BAM with labeled duplicates
     secondaryFiles:
      - .bai
   reference:
     type: File
+    format: edam:format_1929 # FASTA
+    label: Reference genome
     secondaryFiles:
       - .amb
       - .ann
@@ -36,17 +41,23 @@ inputs:
       - .sa
       - .fai
       - ^.dict
-  sample: string
+  sample:
+    type: string
+    label: Sample Name
   knownsites1: 
     type: File
+    format: edam:format_3016 # VCF
+    label: VCF of known polymorphic sites for BQSR
     secondaryFiles:
       - .tbi
   intervallist:
     type: File
+    label: Scatter intervals file
 
 outputs:
   recaltable:
     type: File
+    label: Recalibration table for given interval
     outputBinding:
       glob: "*.table"
 
@@ -66,3 +77,16 @@ arguments:
     valueFrom: $(inputs.intervallist)
   - prefix: "-O"
     valueFrom: $(inputs.sample)_recal_data.table
+
+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