-
-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathrevsort-abstract.cwl
More file actions
52 lines (48 loc) · 1.06 KB
/
revsort-abstract.cwl
File metadata and controls
52 lines (48 loc) · 1.06 KB
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
#
# This is a variant of revsort.cwl where the "sorted"
# step has not yet been implemented, but has a placeholder
# Operation.
#
class: Workflow
doc: "Reverse the lines in a document, then sort those lines."
cwlVersion: v1.2.0-dev1
inputs:
input:
type: File
doc: "The input file to be processed."
reverse_sort:
type: boolean
default: true
doc: "If true, reverse (decending) sort"
outputs:
output:
type: File
outputSource: sort/sorted
doc: "The output with the lines reversed and sorted."
steps:
rev:
in:
input: input
out: [output]
run: revtool.cwl
sort:
in:
input: rev/output
reverse: reverse_sort
out: [sorted]
run:
class: Operation
id: "sort"
doc: "Sort the lines of the file"
inputs:
input:
type: File
doc: "The input file to be sorted."
reverse:
type: boolean
default: true
doc: "If true, reverse (decending) sort"
outputs:
sorted:
type: File
doc: "The sorted file"