-
-
Notifications
You must be signed in to change notification settings - Fork 199
/
scatter-valuefrom-wf2.cwl
76 lines (72 loc) 路 1.44 KB
/
scatter-valuefrom-wf2.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
68
69
70
71
72
73
74
75
76
#!/usr/bin/env cwl-runner
cwlVersion: v1.0
class: Workflow
inputs:
inp1:
type:
type: array
items:
type: record
name: instr
fields:
- name: instr
type: string
inp2:
type:
type: array
items: string
outputs:
out:
outputSource: step1/echo_out
type:
type: array
items:
type: array
items: string
requirements:
- class: ScatterFeatureRequirement
- class: StepInputExpressionRequirement
steps:
step1:
in:
echo_in1:
source: inp1
valueFrom: $(self.instr)
echo_in2: inp2
first:
source: inp1
valueFrom: "$(self[0].instr)"
out: [echo_out]
scatter: [echo_in1, echo_in2]
scatterMethod: nested_crossproduct
run:
class: CommandLineTool
id: step1command
hints:
ResourceRequirement:
ramMin: 8
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