Debian Codegraph @

cwl_utils/testdata/revsort-packed.cwl

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