-
Notifications
You must be signed in to change notification settings - Fork 0
/
host_workflow.cwl
46 lines (41 loc) · 1 KB
/
host_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
#!/usr/bin/env cwl-runner
cwlVersion: v1.0
class: Workflow
requirements:
ScatterFeatureRequirement: {}
MultipleInputFeatureRequirement: {} #Is it supported by wfms?
inputs:
ntasks: int
logfile2: string
outputs:
result:
type: File
outputSource: catsortStep/hosts
steps:
rangeStep:
run: host.serialize.tool.cwl
in:
ntimes: ntasks
out: [range]
hostStep1:
run: host.hostname.tool.cwl
scatter: iteration
in:
iteration: rangeStep/range
out: [result]
hostStep2:
run: host.hostname.tool.cwl
scatter: iteration
in:
iteration: hostStep1/result
out: [result]
catsortStep:
run: host.sort.tool.cwl
in:
names1:
source: [hostStep1/result, hostStep2/result] #If supported,
linkMerge: merge_flattened #great. Else, remove those lines
#names1: hostStep1/result #& the requirement, and uncomment
#names2: hostStep2/result #these- optional vs merged inputs)
logfile: logfile2
out: [hosts]