I have a python script to be run in CWL.
The script creates a directory named splad inside the outputDirectory specified in CWL file and would have result files inside that directory.
Here I am trying to capture those files using the glob syntax
glob: $(inputs.splad_outDir)/splad/*
How ever the following code does not work
cat splad.cwl
cwlVersion: v1.0
class: CommandLineTool
baseCommand: [python, python/splad.py]
requirements:
- class: InlineJavascriptRequirement
inputs:
splad_gtf:
type: File
inputBinding:
position: 1
prefix: -a
splad_bams:
type: File[]
inputBinding:
position: 2
prefix: -b
itemSeparator: ","
splad_outDir:
type: Directory
inputBinding:
position: 3
prefix: -o
splad_phase2:
type: string
inputBinding:
position: 4
prefix: -T
outputs:
splad_out:
type: File[]
outputBinding:
glob: $(inputs.splad_outDir)/splad/*
cat splad.yml
splad_gtf:
class: File
path: gencode.v19.annotation.hs37d5_chr.gtf
splad_outDir:
class: Directory
location: spladder_TEST
spladder_bams: [
{class: File, path: sampleA.bam},
{class: File, path: sampleB.bam}
]
splad_phase2: y
In this case the output files will be put in
spladder_TEST/splad
?Yes, the script/program creates additional directory
splad
inside the output directory you specify and keeps the output files there. So here in this casespladder_TEST/splad