Debian Codegraph @

cwl_utils/testdata/workflows/scatter-wf4.cwl

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