-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_workflow.cwl
91 lines (81 loc) · 2.07 KB
/
test_workflow.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#!/usr/bin/env cwl-runner
cwlVersion: v1.0
class: Workflow
inputs:
signal: string
background: string
outputs:
outDS:
type: string
outputSource: combine/outDS
steps:
make_signal:
run: prun
in:
opt_inDS: signal
opt_containerImage:
default: docker://busybox
opt_exec:
default: "echo %IN > abc.dat; echo 123 > def.zip"
opt_args:
default: "--outputs abc.dat,def.zip --nFilesPerJob 5"
out: [outDS]
make_background_1:
run: prun
in:
opt_inDS: background
opt_exec:
default: "echo %IN > opq.root; echo %IN > xyz.pool"
opt_args:
default: "--outputs opq.root,xyz.pool --nGBPerJob 10"
out: [outDS]
premix:
run: prun
in:
opt_inDS: make_signal/outDS
opt_inDsType:
default: def.zip
opt_secondaryDSs: [make_background_1/outDS]
opt_secondaryDsTypes:
default: [xyz.pool]
opt_exec:
default: "echo %IN %IN2 > klm.root"
opt_args:
default: "--outputs klm.root --secondaryDSs IN2:2:%{SECDS1}"
out: [outDS]
generate_some:
run: prun
in:
opt_exec:
default: "echo %RNDM:10 > gen.root"
opt_args:
default: "--outputs gen.root --nJobs 10"
out: [outDS]
make_background_2:
run: prun
in:
opt_inDS: background
opt_containerImage:
default: docker://alpine
opt_secondaryDSs: [generate_some/outDS]
opt_secondaryDsTypes:
default: [gen.root]
opt_exec:
default: "echo %IN > ooo.root; echo %IN2 > jjj.txt"
opt_args:
default: "--outputs ooo.root,jjj.txt --secondaryDSs IN2:2:%{SECDS1}"
out: [outDS]
combine:
run: prun
in:
opt_inDS: make_signal/outDS
opt_inDsType:
default: abc.dat
opt_secondaryDSs: [premix/outDS, make_background_2/outDS]
opt_secondaryDsTypes:
default: [klm.root, ooo.root]
opt_exec:
default: "echo %IN %IN2 %IN3 > aaa.root"
opt_args:
default: "--outputs aaa.root --secondaryDSs IN2:2:%{SECDS1},IN3:5:%{SECDS2}"
out: [outDS]