Debian Codegraph @

cwl_utils/testdata/workflows/wf5-packed.cwl

raw
1 {
2 "$graph": [
3 {
4 "class": "CommandLineTool",
5 "requirements": [
6 {
7 "listing": [
8 {
9 "entryname": "inputs.txt",
10 "entry": "$(inputs.in1.file.path)\n$(inputs.in1.meta.species)\n"
11 }
12 ],
13 "class": "InitialWorkDirRequirement"
14 },
15 {
16 "types": [
17 {
18 "name": "#recursive.yml/sample_meta",
19 "type": "record",
20 "fields": [
21 {
22 "name": "#recursive.yml/sample_meta/sample",
23 "type": [
24 "null",
25 "string"
26 ]
27 },
28 {
29 "name": "#recursive.yml/sample_meta/species",
30 "type": "string"
31 }
32 ]
33 },
34 {
35 "name": "#recursive.yml/file_with_sample_meta",
36 "type": "record",
37 "fields": [
38 {
39 "name": "#recursive.yml/file_with_sample_meta/file",
40 "type": "File"
41 },
42 {
43 "name": "#recursive.yml/file_with_sample_meta/meta",
44 "type": "#recursive.yml/sample_meta"
45 }
46 ]
47 },
48 {
49 "name": "#recursive.yml/info_with_sample_meta",
50 "type": "record",
51 "fields": [
52 {
53 "type": "string",
54 "name": "#recursive.yml/info_with_sample_meta/comment"
55 },
56 {
57 "type": "#recursive.yml/sample_meta",
58 "name": "#recursive.yml/info_with_sample_meta/meta"
59 }
60 ]
61 },
62 {
63 "name": "#array.yml/sample_meta2",
64 "type": "record",
65 "fields": [
66 {
67 "name": "#array.yml/sample_meta2/prop",
68 "type": "string"
69 }
70 ]
71 },
72 {
73 "name": "#array.yml/study_meta",
74 "type": "array",
75 "items": "#array.yml/sample_meta2"
76 },
77 {
78 "name": "#array.yml/study_meta_too",
79 "type": "record",
80 "fields": [
81 {
82 "type": "#array.yml/sample_meta2",
83 "name": "#array.yml/study_meta_too/meta1"
84 },
85 {
86 "type": "#array.yml/study_meta",
87 "name": "#array.yml/study_meta_too/meta2"
88 }
89 ]
90 },
91 {
92 "name": "#singletype.yml/simple_record",
93 "type": "record",
94 "fields": [
95 {
96 "type": "string",
97 "name": "#singletype.yml/simple_record/prop"
98 }
99 ]
100 }
101 ],
102 "class": "SchemaDefRequirement"
103 }
104 ],
105 "inputs": [
106 {
107 "type": "#recursive.yml/file_with_sample_meta",
108 "id": "#link-to-clt1.cwl/in1"
109 },
110 {
111 "type": "#array.yml/study_meta_too",
112 "id": "#link-to-clt1.cwl/in2"
113 },
114 {
115 "type": "#singletype.yml/simple_record",
116 "id": "#link-to-clt1.cwl/in3"
117 },
118 {
119 "type": [
120 "string",
121 "#recursive.yml/sample_meta"
122 ],
123 "id": "#link-to-clt1.cwl/in4"
124 },
125 {
126 "type": [
127 "null",
128 "Any"
129 ],
130 "id": "#link-to-clt1.cwl/in5"
131 }
132 ],
133 "baseCommand": [
134 "echo"
135 ],
136 "arguments": [
137 "hello world"
138 ],
139 "id": "#link-to-clt1.cwl",
140 "stdout": "2cd5f434d33dce1a50ec686c741fba97b41d2544",
141 "hints": [
142 {
143 "class": "LoadListingRequirement",
144 "loadListing": "deep_listing"
145 },
146 {
147 "class": "NetworkAccess",
148 "networkAccess": true
149 }
150 ],
151 "outputs": [
152 {
153 "type": "File",
154 "outputBinding": {
155 "glob": "*.txt"
156 },
157 "id": "#link-to-clt1.cwl/out1"
158 },
159 {
160 "type": "#array.yml/study_meta_too",
161 "outputBinding": {
162 "outputEval": "$(inputs.in2)"
163 },
164 "id": "#link-to-clt1.cwl/out2"
165 },
166 {
167 "type": "File",
168 "id": "#link-to-clt1.cwl/out3",
169 "outputBinding": {
170 "glob": "2cd5f434d33dce1a50ec686c741fba97b41d2544"
171 }
172 }
173 ]
174 },
175 {
176 "class": "Workflow",
177 "inputs": [
178 {
179 "type": "#recursive.yml/file_with_sample_meta",
180 "id": "#main/in1"
181 },
182 {
183 "type": "#array.yml/study_meta_too",
184 "id": "#main/in2"
185 },
186 {
187 "type": "#singletype.yml/simple_record",
188 "id": "#main/in3"
189 },
190 {
191 "type": [
192 "string",
193 "#recursive.yml/sample_meta"
194 ],
195 "id": "#main/in4"
196 }
197 ],
198 "steps": [
199 {
200 "run": "#link-to-clt1.cwl",
201 "in": [
202 {
203 "source": "#main/in1",
204 "id": "#main/s1/in1"
205 },
206 {
207 "source": "#main/in2",
208 "id": "#main/s1/in2"
209 },
210 {
211 "source": "#main/in3",
212 "id": "#main/s1/in3"
213 },
214 {
215 "source": "#main/in4",
216 "id": "#main/s1/in4"
217 }
218 ],
219 "out": [
220 "#main/s1/out2"
221 ],
222 "id": "#main/s1"
223 }
224 ],
225 "outputs": [
226 {
227 "id": "#main/out1",
228 "type": "#array.yml/study_meta_too",
229 "outputSource": "#main/s1/out2"
230 }
231 ],
232 "requirements": [
233 {
234 "types": [
235 {
236 "$import": "#recursive.yml/sample_meta"
237 },
238 {
239 "$import": "#recursive.yml/file_with_sample_meta"
240 },
241 {
242 "$import": "#recursive.yml/info_with_sample_meta"
243 },
244 {
245 "$import": "#array.yml/sample_meta2"
246 },
247 {
248 "$import": "#array.yml/study_meta"
249 },
250 {
251 "$import": "#array.yml/study_meta_too"
252 },
253 {
254 "$import": "#singletype.yml/simple_record"
255 },
256 {
257 "name": "#main/user_type1",
258 "type": "record",
259 "fields": [
260 {
261 "name": "#main/user_type1/prop",
262 "type": "string"
263 }
264 ]
265 }
266 ],
267 "class": "SchemaDefRequirement"
268 }
269 ],
270 "id": "#main"
271 }
272 ],
273 "cwlVersion": "v1.2"
274 }