Add splitDir to take Directory input
[arvados-tutorial.git] / RNA-Seq / cwl / RNA-seq-wf.cwl
index 8da505cd8bb507ae0c6829860954ffcdccb1b61d..183bca14f6cc6772f3803b29079f27d1ed7f34af 100644 (file)
@@ -1,18 +1,26 @@
 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:
+  splitDir:
+    in:
+      fqdir: fqdir
+    run: helper/splitDir.cwl
+    out: [fq]
+
   alignment:
     run: helper/alignment.cwl
     scatter: fq
     in:
-      fq: fq
+      fq: splitDir/fq
       genome: genome
       gtf: gtf
     out: [qc_html, bam_sorted_indexed]
@@ -30,7 +38,7 @@ steps:
   output-subdirs:
     run: helper/subdirs.cwl
     in:
-      fq: fq
+      fq: splitDir/fq
       bams: alignment/bam_sorted_indexed
       qc: alignment/qc_html
     out: [dirs]
@@ -47,3 +55,4 @@ outputs:
 requirements:
   SubworkflowFeatureRequirement: {}
   ScatterFeatureRequirement: {}
+  StepInputExpressionRequirement: {}