-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathrevsort-array.cwl
More file actions
42 lines (40 loc) · 876 Bytes
/
revsort-array.cwl
File metadata and controls
42 lines (40 loc) · 876 Bytes
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
class: Workflow
doc: "Reverse the lines in a document, then sort those lines."
cwlVersion: v1.0
requirements:
- class: ScatterFeatureRequirement
inputs:
input:
type: File[]
doc: "Array of input files to be processed."
reverse_sort:
type: boolean
default: true
doc: "If true, reverse (descending) sort"
outputs:
output:
type: File[]
outputSource: sorted/output
doc: "The output files with the lines reversed and sorted."
steps:
rev:
in:
input: input
out: [output]
scatter: input
run: revtool.cwl
requirements:
- class: ResourceRequirement
coresMin: 1
ramMin: 100
sorted:
in:
input: rev/output
reverse: reverse_sort
scatter: input
out: [output]
run: sorttool.cwl
requirements:
- class: ResourceRequirement
coresMin: 1
ramMin: 100