@@ -59,14 +59,31 @@ <h4>Parameters</h4>
59
59
< tr >
60
60
< td > url</ td >
61
61
< td > String</ td >
62
- < td > The Github URL to the workflow</ td >
62
+ < td > The URL of the repository. Either a Gitlab or Github URL, or any Git repository URL.</ td >
63
+ </ tr >
64
+ < tr >
65
+ < td > branch</ td >
66
+ < td > String</ td >
67
+ < td > The branch of the repository. Required if the URL is not from Gitlab or Github.</ td >
68
+ </ tr >
69
+ < tr >
70
+ < td > path</ td >
71
+ < td > String</ td >
72
+ < td > The path within the repository to the workflow file. Required if the URL is not from Gitlab or Github.</ td >
63
73
</ tr >
64
74
</ table >
65
75
< h4 > Input</ h4 >
66
76
< pre class ="highlight json ">
67
77
{
68
78
"url": "https://github.com/common-workflow-language/workflows/tree/master/workflows/compile/compile1.cwl"
69
79
}
80
+ </ pre >
81
+ < pre class ="highlight json ">
82
+ {
83
+ "url": "https://bitbucket.org/markrobinson96/workflows.git",
84
+ "branch": "master",
85
+ "path": "/workflows/make-to-cwl/dna.cwl"
86
+ }
70
87
</ pre >
71
88
< h4 > Success</ h4 >
72
89
< pre >
@@ -84,7 +101,7 @@ <h4>Error</h4>
84
101
85
102
< h3 id ="workflowDetails "> Get Workflow Details</ h3 >
86
103
< span class ="method get "> GET</ span >
87
- < pre > /workflows/:githubURL </ pre >
104
+ < pre > /workflows/:url </ pre >
88
105
< h4 > Parameters</ h4 >
89
106
< table class ="table ">
90
107
< tr >
@@ -93,9 +110,9 @@ <h4>Parameters</h4>
93
110
< th > Description</ th >
94
111
</ tr >
95
112
< tr >
96
- < td > githubURL </ td >
113
+ < td > url </ td >
97
114
< td > String</ td >
98
- < td > Partial github URL to the workflow (no "https://") </ td >
115
+ < td > Partial URL to the workflow eg "github.com/owner/repo/tree/branch/workflow.cwl" or "bitbucket.org/owner/repo.git/master/workflow.cwl </ td >
99
116
</ tr >
100
117
</ table >
101
118
< h4 > Success 200</ h4 >
@@ -106,14 +123,9 @@ <h4>Success 200</h4>
106
123
< th > Description</ th >
107
124
</ tr >
108
125
< tr >
109
- < td > retrievedFrom.owner </ td >
126
+ < td > retrievedFrom.repoUrl </ td >
110
127
< td > String</ td >
111
- < td > Github username or organisation name</ td >
112
- </ tr >
113
- < tr >
114
- < td > retrievedFrom.repoName</ td >
115
- < td > String</ td >
116
- < td > Github repository name</ td >
128
+ < td > URL of the Github repository</ td >
117
129
</ tr >
118
130
< tr >
119
131
< td > retrievedFrom.branch</ td >
@@ -128,7 +140,17 @@ <h4>Success 200</h4>
128
140
< tr >
129
141
< td > retrievedFrom.url</ td >
130
142
< td > URL</ td >
131
- < td > The full Github URL to the workflow</ td >
143
+ < td > The URL to the page on the site if type is not GENERIC, otherwise the same as repoUrl</ td >
144
+ </ tr >
145
+ < tr >
146
+ < td > retrievedFrom.rawUrl</ td >
147
+ < td > URL</ td >
148
+ < td > The URL directly to the file if type is not GENERIC, otherwise the same as repoUrl</ td >
149
+ </ tr >
150
+ < tr >
151
+ < td > retrievedFrom.type</ td >
152
+ < td > Enum</ td >
153
+ < td > One of GENERIC, GITHUB, GITLAB, BITBUCKET</ td >
132
154
</ tr >
133
155
< tr >
134
156
< td > retrievedOn</ td >
@@ -140,6 +162,11 @@ <h4>Success 200</h4>
140
162
< td > String</ td >
141
163
< td > The last commit ID on the branch</ td >
142
164
</ tr >
165
+ < tr >
166
+ < td > packedWorkflowID</ td >
167
+ < td > String</ td >
168
+ < td > The ID of the workflow within the file, if this is a packed CWL file (contains a < a href ="http://www.commonwl.org/draft-3/SchemaSalad.html#Document_graph "> document graph</ a > ).</ td >
169
+ </ tr >
143
170
< tr >
144
171
< td > label</ td >
145
172
< td > String</ td >
@@ -207,46 +234,39 @@ <h5>Example Response</h5>
207
234
< pre class ="highlight json ">
208
235
{
209
236
"retrievedFrom": {
210
- "owner": "common-workflow-language",
211
- "repoName": "workflows",
237
+ "repoUrl": "https://github.com/common-workflow-language/workflows.git",
212
238
"branch": "master",
213
239
"path": "workflows/lobSTR/lobSTR-workflow.cwl",
214
- "url": "https://github.com/common-workflow-language/workflows/tree/master/workflows/lobSTR/lobSTR-workflow.cwl"
240
+ "url": "https://github.com/common-workflow-language/workflows/blob/master/workflows/lobSTR/lobSTR-workflow.cwl",
241
+ "rawUrl": "https://raw.githubusercontent.com/common-workflow-language/workflows/master/workflows/lobSTR/lobSTR-workflow.cwl",
242
+ "type": "GITHUB"
215
243
},
216
- "retrievedOn": 1499175275743 ,
217
- "lastCommit": "920c6be45f08e979e715a0018f22c532b024074f ",
244
+ "retrievedOn": 1502714218616 ,
245
+ "lastCommit": "17b65ea19d81527090fded62ffa0e1ba3b25d561 ",
218
246
"label": "lobSTR-workflow.cwl",
219
247
"inputs": {
220
248
"reference": {
221
- "doc": "lobSTR's bwa reference files",
222
249
"type": "File"
223
250
},
224
251
"rg-sample": {
225
- "doc": "Use this in the read group SM tag",
226
252
"type": "String"
227
253
},
228
254
"p1": {
229
- "doc": "list of files containing the first end of paired end reads in fasta or fastq format",
230
- "type": "11a1d32ade317199b68e62aa6ce50b3e"
255
+ "type": "ee54066e73d068edfbf9ca5059e14acd"
231
256
},
232
257
"p2": {
233
- "doc": "list of files containing the second end of paired end reads in fasta or fastq format",
234
- "type": "f9505470accbbaf6b9e15db2123490aa"
258
+ "type": "79ab371b6d0fdbadbf9a4a89ef393353"
235
259
},
236
260
"output_prefix": {
237
- "doc": "prefix for output files. will output prefix.aligned.bam and prefix.aligned.stats",
238
261
"type": "String"
239
262
},
240
263
"rg-lib": {
241
- "doc": "Use this in the read group LB tag",
242
264
"type": "String"
243
265
},
244
266
"strinfo": {
245
- "doc": "File containing statistics for each STR.",
246
267
"type": "File"
247
268
},
248
269
"noise_model": {
249
- "doc": "File to read noise model parameters from (.stepmodel)",
250
270
"type": "File"
251
271
}
252
272
},
@@ -266,34 +286,145 @@ <h5>Example Response</h5>
266
286
},
267
287
"steps": {
268
288
"allelotype": {
269
- "doc": "Run lobSTR allelotype classifier.",
270
289
"run": "allelotype.cwl",
271
- "runType": "COMMANDLINETOOL"
290
+ "runType": "COMMANDLINETOOL",
291
+ "sources": {
292
+ "file:///data/git/3ec0d19076841a1140e71cc3a1b330a56099aac2/workflows/lobSTR/lobSTR-workflow.cwl#allelotype/bam": {
293
+ "sourceID": [
294
+ "samindex"
295
+ ],
296
+ "sourceIDs": [
297
+ "samindex"
298
+ ]
299
+ },
300
+ "allelotype": {
301
+ "sourceID": [
302
+ "strinfo"
303
+ ],
304
+ "sourceIDs": [
305
+ "strinfo"
306
+ ]
307
+ },
308
+ "file:///data/git/3ec0d19076841a1140e71cc3a1b330a56099aac2/workflows/lobSTR/lobSTR-workflow.cwl#allelotype/noise_model": {
309
+ "sourceID": [
310
+ "noise_model"
311
+ ],
312
+ "sourceIDs": [
313
+ "noise_model"
314
+ ]
315
+ },
316
+ "file:///data/git/3ec0d19076841a1140e71cc3a1b330a56099aac2/workflows/lobSTR/lobSTR-workflow.cwl#allelotype/reference": {
317
+ "sourceID": [
318
+ "reference"
319
+ ],
320
+ "sourceIDs": [
321
+ "reference"
322
+ ]
323
+ },
324
+ "file:///data/git/3ec0d19076841a1140e71cc3a1b330a56099aac2/workflows/lobSTR/lobSTR-workflow.cwl#allelotype/output_prefix": {
325
+ "sourceID": [
326
+ "output_prefix"
327
+ ],
328
+ "sourceIDs": [
329
+ "output_prefix"
330
+ ]
331
+ }
332
+ }
272
333
},
273
334
"samsort": {
274
- "doc": "Invoke 'samtools sort' (samtools 1.19)",
275
335
"run": "samtools-sort.cwl",
276
- "runType": "COMMANDLINETOOL"
336
+ "runType": "COMMANDLINETOOL",
337
+ "sources": {
338
+ "samsort": {
339
+ "sourceID": [
340
+ "lobSTR"
341
+ ],
342
+ "sourceIDs": [
343
+ "lobSTR"
344
+ ]
345
+ },
346
+ "file:///data/git/3ec0d19076841a1140e71cc3a1b330a56099aac2/workflows/lobSTR/lobSTR-workflow.cwl#samsort/output_name": {
347
+ "defaultVal": "\\\"aligned.sorted.bam\\\""
348
+ }
349
+ }
277
350
},
278
351
"lobSTR": {
279
352
"label": "lobSTR",
280
- "doc": "lobSTR is a tool for profiling Short Tandem Repeats (STRs) from high throughput sequencing data.",
281
353
"run": "lobSTR-tool.cwl",
282
- "runType": "COMMANDLINETOOL"
354
+ "runType": "COMMANDLINETOOL",
355
+ "sources": {
356
+ "lobSTR": {
357
+ "sourceID": [
358
+ "rg-lib"
359
+ ],
360
+ "sourceIDs": [
361
+ "rg-lib"
362
+ ]
363
+ },
364
+ "file:///data/git/3ec0d19076841a1140e71cc3a1b330a56099aac2/workflows/lobSTR/lobSTR-workflow.cwl#lobSTR/p1": {
365
+ "sourceID": [
366
+ "p1"
367
+ ],
368
+ "sourceIDs": [
369
+ "p1"
370
+ ]
371
+ },
372
+ "file:///data/git/3ec0d19076841a1140e71cc3a1b330a56099aac2/workflows/lobSTR/lobSTR-workflow.cwl#lobSTR/p2": {
373
+ "sourceID": [
374
+ "p2"
375
+ ],
376
+ "sourceIDs": [
377
+ "p2"
378
+ ]
379
+ },
380
+ "file:///data/git/3ec0d19076841a1140e71cc3a1b330a56099aac2/workflows/lobSTR/lobSTR-workflow.cwl#lobSTR/output_prefix": {
381
+ "sourceID": [
382
+ "output_prefix"
383
+ ],
384
+ "sourceIDs": [
385
+ "output_prefix"
386
+ ]
387
+ },
388
+ "file:///data/git/3ec0d19076841a1140e71cc3a1b330a56099aac2/workflows/lobSTR/lobSTR-workflow.cwl#lobSTR/rg-sample": {
389
+ "sourceID": [
390
+ "rg-sample"
391
+ ],
392
+ "sourceIDs": [
393
+ "rg-sample"
394
+ ]
395
+ },
396
+ "file:///data/git/3ec0d19076841a1140e71cc3a1b330a56099aac2/workflows/lobSTR/lobSTR-workflow.cwl#lobSTR/reference": {
397
+ "sourceID": [
398
+ "reference"
399
+ ],
400
+ "sourceIDs": [
401
+ "reference"
402
+ ]
403
+ }
404
+ }
283
405
},
284
406
"samindex": {
285
- "doc": "Invoke 'samtools index' to create a 'BAI' index (samtools 1.19)",
286
407
"run": "samtools-index.cwl",
287
- "runType": "COMMANDLINETOOL"
408
+ "runType": "COMMANDLINETOOL",
409
+ "sources": {
410
+ "samindex": {
411
+ "sourceID": [
412
+ "samsort"
413
+ ],
414
+ "sourceIDs": [
415
+ "samsort"
416
+ ]
417
+ }
418
+ }
288
419
}
289
420
},
290
- "dockerLink": "true ",
291
- "cwltoolVersion": " 1.0.20170622090721 ",
292
- "visualisationDot": "digraph workflow {\n graph [\n bgcolor = \"#eeeeee\"\n color = \"black\"\n fontsize = \"10\"\n labeljust = \"left\"\n clusterrank = \"local\"\n ranksep = \"0.22\"\n nodesep = \"0.05\"\n ]\n node [\n fontname = \"Helvetica\"\n fontsize = \"10\"\n fontcolor = \"black\"\n shape = \"record\"\n height = \"0\"\n width = \"0\"\n color = \"black\"\n fillcolor = \"lightgoldenrodyellow\"\n style = \"filled\"\n ];\n edge [\n fontname=\"Helvetica\"\n fontsize=\"8\"\n fontcolor=\"black\"\n color=\"black\"\n arrowsize=\"0.7\"\n ];\n subgraph cluster_inputs {\n rank = \"same\";\n style = \"dashed\";\n label = \"Workflow Inputs\";\n \"lobSTR-workflow.cwl#output_prefix\" [fillcolor=\"#94DDF4\",label=\"output_prefix\"];\n \"lobSTR-workflow.cwl#reference\" [fillcolor=\"#94DDF4\",label=\"reference\"];\n \"lobSTR-workflow.cwl#p2\" [fillcolor=\"#94DDF4\",label=\"p2\"];\n \"lobSTR-workflow.cwl#p2\" [fillcolor=\"#94DDF4\",label=\"p2\"];\n \"lobSTR-workflow.cwl#strinfo\" [fillcolor=\"#94DDF4\",label=\"strinfo\"];\n \"lobSTR-workflow.cwl#p1\" [fillcolor=\"#94DDF4\",label=\"p1\"];\n \"lobSTR-workflow.cwl#p1\" [fillcolor=\"#94DDF4\",label=\"p1\"];\n \"lobSTR-workflow.cwl#rg-lib\" [fillcolor=\"#94DDF4\",label=\"rg-lib\"];\n \"lobSTR-workflow.cwl#noise_model\" [fillcolor=\"#94DDF4\",label=\"noise_model\"];\n \"lobSTR-workflow.cwl#rg-sample\" [fillcolor=\"#94DDF4\",label=\"rg-sample\"];\n }\n subgraph cluster_outputs {\n rank = \"same\";\n style = \"dashed\";\n label = \"Workflow Outputs\";\n \"lobSTR-workflow.cwl#bam_stats\" [fillcolor=\"#94DDF4\",label=\"bam_stats\"];\n \"lobSTR-workflow.cwl#vcf_stats\" [fillcolor=\"#94DDF4\",label=\"vcf_stats\"];\n \"lobSTR-workflow.cwl#vcf\" [fillcolor=\"#94DDF4\",label=\"vcf\"];\n \"lobSTR-workflow.cwl#bam\" [fillcolor=\"#94DDF4\",label=\"bam\"];\n }\n \"lobSTR-workflow.cwl#allelotype\" [label=\"allelotype\"];\n \"lobSTR-workflow.cwl#samindex\" [label=\"samindex\"];\n \"lobSTR-workflow.cwl#samsort\" [label=\"samsort\"];\n \"lobSTR-workflow.cwl#lobSTR\" [label=\"lobSTR\"];\n}\n",
293
- "robundle ": "/robundle/ github.com/common-workflow-language/workflows/tree /master/workflows/lobSTR/lobSTR-workflow.cwl",
294
- "visualisationXdot ": "/graph/xdot /github.com/common-workflow-language/workflows/tree /master/workflows/lobSTR/lobSTR-workflow.cwl",
295
- "visualisationPng ": "/graph/png/ github.com/common-workflow-language/workflows/tree /master/workflows/lobSTR/lobSTR-workflow.cwl",
296
- "visualisationSvg ": "/graph/svg /github.com/common-workflow-language/workflows/tree /master/workflows/lobSTR/lobSTR-workflow.cwl"
421
+ "dockerLink": "https://hub.docker.com/r/rabix/lobstr ",
422
+ "cwltoolVersion": "1.0.20170810192106 ",
423
+ "visualisationDot": "digraph workflow {\n graph [\n bgcolor = \"#eeeeee\"\n color = \"black\"\n fontsize = \"10\"\n labeljust = \"left\"\n clusterrank = \"local\"\n ranksep = \"0.22\"\n nodesep = \"0.05\"\n ]\n node [\n fontname = \"Helvetica\"\n fontsize = \"10\"\n fontcolor = \"black\"\n shape = \"record\"\n height = \"0\"\n width = \"0\"\n color = \"black\"\n fillcolor = \"lightgoldenrodyellow\"\n style = \"filled\"\n ];\n edge [\n fontname=\"Helvetica\"\n fontsize=\"8\"\n fontcolor=\"black\"\n color=\"black\"\n arrowsize=\"0.7\"\n ];\n subgraph cluster_inputs {\n rank = \"same\";\n style = \"dashed\";\n label = \"Workflow Inputs\";\n \"p2\" [fillcolor=\"#94DDF4\",label=\"p2\"];\n \"p2\" [fillcolor=\"#94DDF4\",label=\"p2\"];\n \"output_prefix\" [fillcolor=\"#94DDF4\",label=\"output_prefix\"];\n \"reference\" [fillcolor=\"#94DDF4\",label=\"reference\"];\n \"noise_model\" [fillcolor=\"#94DDF4\",label=\"noise_model\"];\n \"strinfo\" [fillcolor=\"#94DDF4\",label=\"strinfo\"];\n \"p1\" [fillcolor=\"#94DDF4\",label=\"p1\"];\n \"p1\" [fillcolor=\"#94DDF4\",label=\"p1\"];\n \"rg-lib\" [fillcolor=\"#94DDF4\",label=\"rg-lib\"];\n \"rg-sample\" [fillcolor=\"#94DDF4\",label=\"rg-sample\"];\n }\n subgraph cluster_outputs {\n rank = \"same\";\n style = \"dashed\";\n labelloc = \"b\";\n label = \"Workflow Outputs\";\n \"bam\" [fillcolor=\"#94DDF4\",label=\"bam\"];\n \"vcf\" [fillcolor=\"#94DDF4\",label=\"vcf\"];\n \"bam_stats\" [fillcolor=\"#94DDF4\",label=\"bam_stats\"];\n \"vcf_stats\" [fillcolor=\"#94DDF4\",label=\"vcf_stats\"];\n }\n \"allelotype\" [label=\"allelotype\"];\n \"samsort\" [label=\"samsort\"];\n \"lobSTR\" [label=\"lobSTR\"];\n \"samindex\" [label=\"samindex\"];\n \"strinfo\" -> \"allelotype\" [label=\"strinfo\"];\n \"reference\" -> \"allelotype\" [label=\"reference\"];\n \"output_prefix\" -> \"allelotype\" [label=\"output_prefix\"];\n \"noise_model\" -> \"allelotype\" [label=\"noise_model\"];\n \"samindex\" -> \"allelotype\" [label=\"bam\"];\n \"lobSTR\" -> \"samsort\" [label=\"input\"];\n \"default1\" -> \"samsort\" [label=\"output_name\"];\n \"default1\" [label=\"\\\"aligned.sorted.bam\\\"\", fillcolor=\"#D5AEFC\"];\n \"rg-lib\" -> \"lobSTR\" [label=\"rg-lib\"];\n \"rg-sample\" -> \"lobSTR\" [label=\"rg-sample\"];\n \"p2\" -> \"lobSTR\" [label=\"p2\"];\n \"p1\" -> \"lobSTR\" [label=\"p1\"];\n \"reference\" -> \"lobSTR\" [label=\"reference\"];\n \"output_prefix\" -> \"lobSTR\" [label=\"output_prefix\"];\n \"samsort\" -> \"samindex\" [label=\"input\"];\n \"samindex\" -> \"bam\";\n \"allelotype\" -> \"vcf\";\n \"lobSTR\" -> \"bam_stats\";\n \"allelotype\" -> \"vcf_stats\";\n}\n",
424
+ "visualisationPng ": "/graph/png/ github.com/common-workflow-language/workflows/blob /master/workflows/lobSTR/lobSTR-workflow.cwl",
425
+ "visualisationSvg ": "/graph/svg /github.com/common-workflow-language/workflows/blob /master/workflows/lobSTR/lobSTR-workflow.cwl",
426
+ "roBundle ": "/robundle/ github.com/common-workflow-language/workflows/blob /master/workflows/lobSTR/lobSTR-workflow.cwl",
427
+ "visualisationXdot ": "/graph/xdot /github.com/common-workflow-language/workflows/blob /master/workflows/lobSTR/lobSTR-workflow.cwl"
297
428
}
298
429
</ pre >
299
430
@@ -454,7 +585,7 @@ <h5>Example Responses</h5>
454
585
< h4 > Finished 303</ h4 >
455
586
< pre >
456
587
HTTP/1.1 303 See Other
457
- Location: /workflows/:githubURL
588
+ Location: /workflows/:url
458
589
</ pre >
459
590
460
591
< h2 > Examples</ h2 >
0 commit comments