Updating for proper loadListing
[arvados-tutorial.git] / RNA-Seq / cwl / RNA-seq-wf.cwl
index 97461ce437f510061ced436eaf19e9bea7155669..cb00e167719a37d2f2b09c88e44fd92194f64fdd 100644 (file)
@@ -1,18 +1,21 @@
 cwlVersion: v1.2
 class: Workflow
-label: RNAseq CWL practice workflow
+label: RNAseq workflow 
 
 inputs:
-  fq: File[]
+  fqdir: 
+    type: Directory 
+    loadListing: shallow_listing
   genome: Directory
   gtf: File
 
 steps:
   alignment:
-    run: alignment.cwl
+    run: helper/alignment.cwl
     scatter: fq
     in:
-      fq: fq
+      fq:
+        valueFrom: $(inputs.fqdir.listing)
       genome: genome
       gtf: gtf
     out: [qc_html, bam_sorted_indexed]
@@ -21,17 +24,17 @@ steps:
     requirements:
       ResourceRequirement:
         ramMin: 500
-    run: featureCounts.cwl
+    run: helper/featureCounts.cwl
     in:
       counts_input_bam: alignment/bam_sorted_indexed
       gtf: gtf
     out: [featurecounts]
 
-  ### 2. Organizing output files into Directories
   output-subdirs:
-    run: subdirs.cwl
+    run: helper/subdirs.cwl
     in:
-      fq: fq
+      fq: 
+       valueFrom: $(inputs.fqdir.listing)
       bams: alignment/bam_sorted_indexed
       qc: alignment/qc_html
     out: [dirs]
@@ -48,3 +51,4 @@ outputs:
 requirements:
   SubworkflowFeatureRequirement: {}
   ScatterFeatureRequirement: {}
+  StepInputExpressionRequirement: {}