Adding more labels
[arvados-tutorial.git] / WGS-processing / cwl / helper / samtools-index.cwl
index d479fbd5d5a45f857103729c8e9942469b2b46a8..76b7402d2c34320ab0db4e525c157ca4b69b16ee 100644 (file)
@@ -1,10 +1,6 @@
 cwlVersion: v1.1
 class: CommandLineTool
-label: Indexing Bam File
-
-$namespaces:
-  arv: "http://arvados.org/cwl#"
-  cwltool: "http://commonwl.org/cwltool#"
+label: Index BAM
 
 requirements:
   DockerRequirement:
@@ -16,20 +12,43 @@ requirements:
 hints:
   arv:RuntimeConstraints:
     outputDirType: keep_output_dir
+  SoftwareRequirement:
+    packages:
+      Samtools:
+        specs: [ "https://identifiers.org/rrid/RRID:SCR_002105" ]
+        version: [ "1.10" ]
 
 inputs:
-  bam: File
+  bam: 
+    type: File
+    format: edam:format_2572 # BAM
+    label: Sorted BAM with labeled duplicates
 
 outputs:
   indexedbam:
     type: File
+    format: edam:format_2572 # BAM
+    label: Indexed sorted BAM with labeled duplicates 
     outputBinding:
       glob: "*bam"
     secondaryFiles:
-      - .bai
+      - .bai 
 
 baseCommand: samtools
 
 arguments:
   - index
   - $(inputs.bam.basename)
+
+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