Debian Codegraph @

cwl_utils/testdata/scatter-wf3_v1_1.cwl

raw
1 #!/usr/bin/env cwl-runner
2
3 cwlVersion: v1.1
4 $graph:
5
6 - id: echo
7 class: CommandLineTool
8 inputs:
9 echo_in1:
10 type: string
11 inputBinding: {}
12 echo_in2:
13 type: string
14 inputBinding: {}
15 outputs:
16 echo_out:
17 type: string
18 outputBinding:
19 glob: "step1_out"
20 loadContents: true
21 outputEval: $(self[0].contents)
22 baseCommand: "echo"
23 arguments: ["-n", "foo"]
24 stdout: step1_out
25
26 - id: main
27 class: Workflow
28 inputs:
29 inp1: string[]
30 inp2: string[]
31 requirements:
32 - class: ScatterFeatureRequirement
33 steps:
34 step1:
35 scatter: [echo_in1, echo_in2]
36 scatterMethod: flat_crossproduct
37 in:
38 echo_in1: inp1
39 echo_in2: inp2
40 out: [echo_out]
41 run: "#echo"
42
43 outputs:
44 out:
45 outputSource: step1/echo_out
46 type:
47 type: array
48 items: string