1
+ {
2
+ "cwlVersion" : "v1. 0" ,
3
+ "$graph" : [
4
+ {
5
+ "class" : "Workflow" ,
6
+ "doc" : "Reverse the lines in a document, then sort those lines. " ,
7
+ "hints" : [
8
+ {
9
+ "class" : "DockerRequirement" ,
10
+ "dockerPull" : "debian:8"
11
+ }
12
+ ],
13
+ "inputs" : [
14
+ {
15
+ "type" : "File" ,
16
+ "doc" : "The input file to be processed. " ,
17
+ "id" : "#main/input"
18
+ },
19
+ {
20
+ "type" : "boolean" ,
21
+ "default" : true,
22
+ "doc" : "If true, reverse (decending) sort" ,
23
+ "id" : "#main/reverse_sort"
24
+ }
25
+ ],
26
+ "outputs" : [
27
+ {
28
+ "type" : "File" ,
29
+ "outputSource" : "#main/sorted/output" ,
30
+ "doc" : "The output with the lines reversed and sorted. " ,
31
+ "id" : "#main/output"
32
+ }
33
+ ],
34
+ "steps" : [
35
+ {
36
+ "in" : [
37
+ {
38
+ "source" : "#main/input" ,
39
+ "id" : "#main/rev/input"
40
+ }
41
+ ],
42
+ "out" : [
43
+ "#main/rev/output"
44
+ ],
45
+ "run" : "#revtool. cwl" ,
46
+ "id" : "#main/rev"
47
+ },
48
+ {
49
+ "in" : [
50
+ {
51
+ "source" : "#main/rev/output" ,
52
+ "id" : "#main/sorted/input"
53
+ },
54
+ {
55
+ "source" : "#main/reverse_sort" ,
56
+ "id" : "#main/sorted/reverse"
57
+ }
58
+ ],
59
+ "out" : [
60
+ "#main/sorted/output"
61
+ ],
62
+ "run" : "#sorttool. cwl" ,
63
+ "id" : "#main/sorted"
64
+ }
65
+ ],
66
+ "id" : "#main"
67
+ },
68
+ {
69
+ "class" : "CommandLineTool" ,
70
+ "doc" : "Reverse each line using the `rev` command" ,
71
+ "inputs" : [
72
+ {
73
+ "type" : "File" ,
74
+ "inputBinding" : {},
75
+ "id" : "#revtool. cwl/input"
76
+ }
77
+ ],
78
+ "outputs" : [
79
+ {
80
+ "type" : "File" ,
81
+ "outputBinding" : {
82
+ "glob" : "output. txt"
83
+ },
84
+ "id" : "#revtool. cwl/output"
85
+ }
86
+ ],
87
+ "baseCommand" : "rev" ,
88
+ "stdout" : "output. txt" ,
89
+ "id" : "#revtool. cwl"
90
+ },
91
+ {
92
+ "class" : "CommandLineTool" ,
93
+ "doc" : "Sort lines using the `sort` command" ,
94
+ "inputs" : [
95
+ {
96
+ "id" : "#sorttool. cwl/reverse" ,
97
+ "type" : "boolean" ,
98
+ "inputBinding" : {
99
+ "position" : 1,
100
+ "prefix" : "--reverse"
101
+ }
102
+ },
103
+ {
104
+ "id" : "#sorttool. cwl/input" ,
105
+ "type" : "File" ,
106
+ "inputBinding" : {
107
+ "position" : 2
108
+ }
109
+ }
110
+ ],
111
+ "outputs" : [
112
+ {
113
+ "id" : "#sorttool. cwl/output" ,
114
+ "type" : "File" ,
115
+ "outputBinding" : {
116
+ "glob" : "output. txt"
117
+ }
118
+ }
119
+ ],
120
+ "baseCommand" : "sort" ,
121
+ "stdout" : "output. txt" ,
122
+ "id" : "#sorttool. cwl"
123
+ }
124
+ ]
125
+ }
0 commit comments