-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
scatter-valuefrom-wf4.cwl
67 lines (65 loc) · 1.3 KB
/
scatter-valuefrom-wf4.cwl
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
#!/usr/bin/env cwl-runner
cwlVersion: v1.1
$graph:
- id: echo
class: CommandLineTool
inputs:
first:
type: string
inputBinding:
position: 1
echo_in1:
type: string
inputBinding:
position: 2
echo_in2:
type: string
inputBinding:
position: 3
outputs:
echo_out:
type: string
outputBinding:
glob: "step1_out"
loadContents: true
outputEval: $(self[0].contents)
baseCommand: "echo"
arguments: ["-n", "foo"]
stdout: step1_out
- id: main
class: Workflow
inputs:
inp1:
type:
type: array
items:
type: record
name: instr
fields:
- name: instr
type: string
inp2:
type: { type: array, items: string }
requirements:
- class: ScatterFeatureRequirement
- class: StepInputExpressionRequirement
steps:
step1:
scatter: [echo_in1, echo_in2]
scatterMethod: dotproduct
in:
echo_in1:
source: inp1
valueFrom: $(self.instr)
echo_in2: inp2
first:
source: inp1
valueFrom: "$(self[0].instr)"
out: [echo_out]
run: "#echo"
outputs:
out:
outputSource: step1/echo_out
type:
type: array
items: string