Adding metadata, updating variables
[arvados-tutorial.git] / WGS-processing / cwl / helper / gvcf-to-vcf.cwl
index dfa3e248da1c19dcd5426cdee894dcd0e8d81f96..305227e9c7e7463f0a58b43be6d2d119b0af835e 100644 (file)
@@ -1,6 +1,6 @@
 cwlVersion: v1.1
 class: CommandLineTool
-label: Converts gvcf to vcf
+label: Convert GVCF to VCF 
 
 requirements:
   - class: DockerRequirement
@@ -11,16 +11,28 @@ hints:
   ResourceRequirement:
     ramMin: 10000
     coresMin: 4
-
+  SoftwareRequirement:
+    packages:
+      BCFtools:
+        specs: [ "https://identifiers.org/rrid/RRID:SCR_005227" ]
+        version: [ "1.10.2" ]
+      HTSlib:
+        version: [ "1.10.2" ]
+        
 inputs:
-  samplename:
+  sample:
     type: string
+    label: Sample Name
   gvcf:
     type: File
+    format: edam:format_3016 # GVCF
+    label: GVCF generated from GATK
   
 outputs:
   vcf:
     type: File
+    format: edam:format_3016 # VCF
+    label: VCF extracted from GVCF
     outputBinding:
       glob: "*.vcf.gz"
     secondaryFiles: [.tbi]
@@ -35,10 +47,21 @@ arguments:
     valueFrom: "AVG(GQ)>20"
   - valueFrom: "-Ov"
   - prefix: "-o"
-    valueFrom: $(inputs.samplename).vcf
+    valueFrom: $(inputs.sample).vcf
   - {valueFrom: '&&', shellQuote: false}
   - bgzip
-  - valueFrom: $(inputs.samplename).vcf
+  - valueFrom: $(inputs.sample).vcf
   - {valueFrom: '&&', shellQuote: false}
   - tabix
-  - valueFrom: $(inputs.samplename).vcf.gz
+  - valueFrom: $(inputs.sample).vcf.gz
+
+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/
+
+$schemas:
+ - https://schema.org/version/latest/schema.rdf
+ - http://edamontology.org/EDAM_1.18.owl