1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
#!/usr/bin/env cwl-runner
class: Workflow
cwlVersion: v1.0
requirements:
StepInputExpressionRequirement: {}
inputs:
file1: File
outputs:
val1:
type: string
outputSource: step1/echo_out
val2:
type: string
outputSource: step2/echo_out
steps:
step1:
run:
id: explicit/id
class: CommandLineTool
inputs:
name:
type: string
inputBinding: {}
outputs:
echo_out:
type: string
outputBinding:
glob: step1_out
loadContents: true
outputEval: $(self[0].contents)
echo_out_file:
type: File
outputBinding:
glob: step1_out
baseCommand: echo
stdout: step1_out
in:
name:
source: file1
valueFrom: $(self.basename)
out: [echo_out, echo_out_file]
step2:
run:
class: CommandLineTool
inputs:
name:
type: string
inputBinding: {}
outputs:
echo_out:
type: string
outputBinding:
glob: step1_out
loadContents: true
outputEval: $(self[0].contents)
baseCommand: echo
stdout: step1_out
in:
name:
source: step1/echo_out_file
valueFrom: $(self.basename)
out: [echo_out]
|