Add splitDir to take Directory input main
authorPeter Amstutz <peter.amstutz@curii.com>
Thu, 15 Sep 2022 22:39:31 +0000 (18:39 -0400)
committerPeter Amstutz <peter.amstutz@curii.com>
Thu, 15 Sep 2022 22:39:31 +0000 (18:39 -0400)
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

RNA-Seq/cwl/RNA-seq-wf.cwl
RNA-Seq/cwl/helper/splitDir.cwl [new file with mode: 0644]
RNA-Seq/yml/RNA-seq-wf.yml

index cb00e167719a37d2f2b09c88e44fd92194f64fdd..183bca14f6cc6772f3803b29079f27d1ed7f34af 100644 (file)
@@ -1,21 +1,26 @@
 cwlVersion: v1.2
 class: Workflow
-label: RNAseq workflow 
+label: RNAseq workflow
 
 inputs:
-  fqdir: 
-    type: Directory 
+  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:
-        valueFrom: $(inputs.fqdir.listing)
+      fq: splitDir/fq
       genome: genome
       gtf: gtf
     out: [qc_html, bam_sorted_indexed]
@@ -33,8 +38,7 @@ steps:
   output-subdirs:
     run: helper/subdirs.cwl
     in:
-      fq: 
-       valueFrom: $(inputs.fqdir.listing)
+      fq: splitDir/fq
       bams: alignment/bam_sorted_indexed
       qc: alignment/qc_html
     out: [dirs]
diff --git a/RNA-Seq/cwl/helper/splitDir.cwl b/RNA-Seq/cwl/helper/splitDir.cwl
new file mode 100644 (file)
index 0000000..e8be6c3
--- /dev/null
@@ -0,0 +1,9 @@
+cwlVersion: v1.2
+class: ExpressionTool
+requirements:
+  InlineJavascriptRequirement: {}
+inputs:
+  fqdir: Directory
+outputs:
+  fq: File[]
+expression: '${return {fq: inputs.fqdir.listing};}'
index 828c70c08b6e3a9e1cc4546efb494c61bc4a90cb..3c3b3aef3d279983770f403e58bca459d5355f2a 100644 (file)
@@ -1,10 +1,12 @@
 fqdir:
   class: Directory
-  location: keep:pirca-4zz18-blweknwtwyjys0i/
+  location: keep:1360b500543d1d0b041084a2f99d33b6+567/
+  #location: keep:pirca-4zz18-blweknwtwyjys0i/
 genome:
   class: Directory
-  location: keep:pirca-4zz18-c543b5welq68g90/hg19-STAR-index
+  location: keep:64e703acc21226ce99f3d88eacdacd0b+3159/hg19-STAR-index
+  #location: keep:pirca-4zz18-c543b5welq68g90/hg19-STAR-index
 gtf:
   class: File
-  location: keep:pirca-4zz18-c543b5welq68g90/chr1-hg19_genes.gtf
-
+  location: keep:64e703acc21226ce99f3d88eacdacd0b+3159/chr1-hg19_genes.gtf
+  #location: keep:pirca-4zz18-c543b5welq68g90/chr1-hg19_genes.gtf