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