-
-
Notifications
You must be signed in to change notification settings - Fork 224
/
functional-wf.cwl
executable file
·68 lines (66 loc) · 1.25 KB
/
functional-wf.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
#!/usr/bin/env cwl-runner
class: Workflow
cwlVersion: v1.0
requirements:
ScatterFeatureRequirement: {}
MultipleInputFeatureRequirement: {}
StepInputExpressionRequirement: {}
inputs:
letters0:
type: [string, int]
default: "a0"
letters1:
type: string[]
default: ["a1", "b1"]
letters2:
type: [string, int]
default: "a2"
letters3:
type: string[]
default: ["a3", "b3"]
letters4:
type: string
default: "a4"
letters5:
type: string[]
default: ["a5", "b5", "c5"]
outputs:
all:
type: File
outputSource: cat/txt
steps:
echo_w:
run: echo.cwl
in:
echo_in: letters0
out: [txt]
echo_x:
run: echo.cwl
scatter: echo_in
in:
echo_in:
source: [letters1, letters2]
linkMerge: merge_nested
out: [txt]
echo_y:
run: echo.cwl
scatter: echo_in
in:
echo_in:
source: [letters3, letters4]
linkMerge: merge_flattened
out: [txt]
echo_z:
run: echo.cwl
in:
echo_in:
source: letters5
valueFrom: "special value parsed in valueFrom"
out: [txt]
cat:
run: cat.cwl
in:
cat_in:
source: [echo_w/txt, echo_x/txt, echo_y/txt, echo_z/txt]
linkMerge: merge_flattened
out: [txt]