| 1 |
#!/usr/bin/env cwl-runner |
| 2 |
cwlVersion: v1.1 |
| 3 |
class: Workflow |
| 4 |
inputs: |
| 5 |
inp: string[] |
| 6 |
outputs: |
| 7 |
out: |
| 8 |
type: string[] |
| 9 |
outputSource: step1/echo_out |
| 10 |
|
| 11 |
requirements: |
| 12 |
- class: ScatterFeatureRequirement |
| 13 |
|
| 14 |
steps: |
| 15 |
step1: |
| 16 |
in: |
| 17 |
echo_in: inp |
| 18 |
out: [echo_out] |
| 19 |
scatter: echo_in |
| 20 |
run: |
| 21 |
class: CommandLineTool |
| 22 |
inputs: |
| 23 |
echo_in: |
| 24 |
type: string |
| 25 |
inputBinding: {} |
| 26 |
outputs: |
| 27 |
echo_out: |
| 28 |
type: string |
| 29 |
outputBinding: |
| 30 |
glob: "step1_out" |
| 31 |
loadContents: true |
| 32 |
outputEval: $(self[0].contents) |
| 33 |
baseCommand: "echo" |
| 34 |
arguments: |
| 35 |
- "-n" |
| 36 |
- "foo" |
| 37 |
stdout: "step1_out" |