Updating docker reference
[arvados-tutorial.git] / WGS-processing / cwl / helper / samtools-sort.cwl
index 02072cdfbf863e0e6f982cd7cb21bb33603a21e2..7f51678de8b99240ccebe4fe4f1f8cefd9611e6e 100644 (file)
@@ -1,14 +1,10 @@
 cwlVersion: v1.1
 class: CommandLineTool
-label: Sorting Bam file
-
-$namespaces:
-  arv: "http://arvados.org/cwl#"
-  cwltool: "http://commonwl.org/cwltool#"
+label: Sort BAM
 
 requirements:
   DockerRequirement:
-    dockerPull: curii/bwa-samtools-picard
+    dockerPull: curii/bwa-samtools
   ShellCommandRequirement: {}
   ResourceRequirement:
     ramMin: 20000
@@ -16,16 +12,28 @@ requirements:
 
 hints:
   arv:RuntimeConstraints:
-    keep_cache: 9216 
+    keep_cache: 9216
     outputDirType: keep_output_dir
+  SoftwareRequirement:
+    packages:
+      Samtools:
+        specs: [ "https://identifiers.org/rrid/RRID:SCR_002105" ]
+        version: [ "1.10" ]
 
 inputs:
-  bam: File
-  sample: string
+  bam:
+    type: File
+    format: edam:format_2572 # BAM
+    label: Alignments in BAM format
+  sample:
+    type: string
+    label: Sample Name
 
 outputs:
   sortedbam:
     type: File
+    format: edam:format_2572 # BAM
+    label: Sorted BAM
     outputBinding:
       glob: "*sorted.bam"
 
@@ -40,3 +48,16 @@ arguments:
   - '2G'
   - -o
   - $(inputs.sample).sorted.bam
+
+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