-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathworkflowdisplay.yaml
More file actions
380 lines (352 loc) · 15.2 KB
/
workflowdisplay.yaml
File metadata and controls
380 lines (352 loc) · 15.2 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
name: classical_networking_workflow
displayname: STUFF
Views:
- name: Files Summary
displayname: Files Summary
viewname: filesummary
displaytype: datatable
parameters:
filename: nf_output/summaryresult.tsv
columns:
- title: "Visualize"
data:
- title: "Filename"
data: "Filename"
- title: "Vendor"
data: "Vendor"
- title: "Model"
data: "Model"
- title: "MS1s"
data: "MS1s"
- title: "MS2s"
data: "MS2s"
columnDefs: '[ {"targets": 0,"data": null,"render": function ( data, type, row, meta ) {
return `
<a target="_blank" href="https://dashboard.gnps2.org/?usi=mzspec:GNPS2:TASK-${task}-input_spectra/${row["Filename"]}">View LCMS Run</a>
`;}}]'
- name: Cluster Summary
displayname: Cluster Summary
viewname: clustersummary
displaytype: datatable_serverbig
parameters:
filename: nf_output/networking/clustersummary_with_network.tsv
columns:
- title: "View"
data:
- title: "Cluster"
data: "cluster index"
- title: "Parent mass"
data: "parent mass"
- title: "# spectra"
data: "number of spectra"
- title: "precursor charge"
data: "precursor charge"
- title: "RTMean (Min)"
data: "RTMean"
- title: "sum(precursor intensity)"
data: "sum(precursor intensity)"
- title: "Compound Name"
data: "Compound_Name"
- title: "Network Component"
data: "component"
columnDefs: '[ {"targets": 0,"data": null,"render": function ( data, type, row, meta ) {
var filterdict = {
type: "select",
param: row["cluster index"],
column: "#ClusterIdx"
};
return `
<a target="_blank" href="https://metabolomics-usi.gnps2.org/dashinterface/?usi1=mzspec:GNPS2:TASK-${task}-nf_output/clustering/specs_ms.mgf:scan:${row["cluster index"]}">View Spectrum</a>
<br>
<a target="_blank" href="/result?viewname=rawspectra&filter=${encodeURIComponent(JSON.stringify([filterdict]))}&task=${task}">View Raw Spectra in Cluster</a>
<br>
<a target="_blank" href="/dashboards/networkviewer?usi=mzdata:GNPS2:TASK-${task}-nf_output/networking/components/component_${row["component"]}.graphml&usi-mgf=mzdata:GNPS2:TASK-${task}-nf_output/clustering/specs_ms.mgf">View Network Component</a>
`;}},
{"targets": 8,"data": "component","render": function ( data, type, row, meta ) {
return `
${row["component"]}
<br>
<a target="_blank" href="https://multiplealignment.gnps2.org/setscreation/?task=${task}&component=${row["component"]}">View Component Alignment</a>
`;}}]'
- name: Library Match Results
displayname: Library Match Results
viewname: librarymatches
displaytype: datatable #datatable
parameters:
filename: nf_output/library/merged_results_with_gnps.tsv
columns:
- title: "View"
data:
- title: "#Scan#"
data: "#Scan#"
- title: "Compound_Name"
data: "Compound_Name"
- title: "Ion"
data: Ion_Source
- title: "Precursor m/z"
data: SpecMZ
- title: "Cosine"
data: MQScore
- title: "Shared Peaks"
data: SharedPeaks
- title: "MassDiff"
data: MassDiff
- title: "Adduct"
data: Adduct
- title: "SpectrumID"
data: SpectrumID
- title: "Smiles"
data: Smiles
- title: "Library Name"
data: LibraryName
- title: "Library Scan"
data: LibScan
columnDefs: '[ {"targets": 0,"data": null,"render": function ( data, type, row, meta ) {
if (row["SpectrumID"] && row["SpectrumID"].includes("CCMSLIB")) {
return `
<a target="_blank" href="https://metabolomics-usi.gnps2.org/dashinterface/?usi1=mzspec:GNPS2:TASK-${task}-nf_output/clustering/specs_ms.mgf:scan:${row["#Scan#"]}&usi2=mzspec:GNPS:GNPS-LIBRARY:accession:${row["SpectrumID"]}">View Mirror</a>
`;
}
return `
<a target="_blank" href="https://metabolomics-usi.gnps2.org/dashinterface/?usi1=mzspec:GNPS2:TASK-${task}-nf_output/clustering/specs_ms.mgf:scan:${row["#Scan#"]}&usi2=mzspec:GNPS2:TASK-${task}-input_libraries/${row["LibraryName"]}:scan:${row["LibScan"]}">View Mirror</a>
`;}},
{"targets": 2,"data": null,"render": function ( data, type, row, meta ) {
var name = row["Compound_Name"] || "";
var match = name.match(/LMFA\d{8}/);
if (match) {
return `<a target="_blank" href="https://wang-bioinformatics-lab.github.io/GNPS2_Documentation/html/library_linkout.html?accession=${match[0]}">${name}</a>`;
}
return name;
}},
{"targets": 10,"data": null,"render": function ( data, type, row, meta ) {
return `
<img src="https://structure.gnps2.org/structureimg?smiles=${encodeURIComponent(row["Smiles"])}"/>
`;}},
{"targets": [11, 12], "visible": false}]'
- name: Network Components List
displayname: Network Components List
viewname: networkcomponents
displaytype: datatable_serverbig
parameters:
filename: nf_output/networking/component_summary.tsv
columns:
- title: "View"
data:
- title: "Component Number"
data: "component_id"
- title: "Number of Nodes"
data: "number_of_nodes"
- title: "Number of Edges"
data: "number_of_edges"
columnDefs: '[ {"targets": 0,"data": null,"render": function ( data, type, row, meta ) {
return `
<a target="_blank" href="/dashboards/networkviewer?usi=mzdata:GNPS2:TASK-${task}-nf_output/networking/components/component_${row["component_id"]}.graphml&usi-mgf=mzdata:GNPS2:TASK-${task}-nf_output/clustering/specs_ms.mgf">View Network Component</a>
<br>
<a target="_blank" href="https://multiplealignment.gnps2.org/setscreation/?task=${task}&component=${row["component_id"]}">View Component Alignment</a>
`;}},]'
- name: Raw Spectra List
displayname: Raw Spectra List
viewname: rawspectra
displaytype: datatable_serverbig
parameters:
filename: nf_output/clustering/clusterinfo.tsv
columns:
- title: "View"
data:
- title: "Cluster"
data: "#ClusterIdx"
- title: "Filename"
data: "#Filename"
- title: "Scan"
data: "#Scan"
- title: "Parent Mass"
data: "#ParentMass"
- title: "Charge"
data: "#Charge"
- title: "RT"
data: "#RetTime"
- title: "PrecIntensity"
data: "#PrecIntensity"
columnDefs: '[ {"targets": 0,"data": null,"render": function ( data, type, row, meta ) {
return `
<a target="_blank" href="https://metabolomics-usi.gnps2.org/dashinterface/?usi1=mzspec:GNPS2:TASK-${task}-${row["#Filename"]}:scan:${row["#Scan"]}">View Original Spectrum</a>
<br>
<a target="_blank" href="https://metabolomics-usi.gnps2.org/dashinterface/?usi1=mzspec:GNPS2:TASK-${task}-${row["#Filename"]}:scan:${row["#Scan"]}&usi2=mzspec:GNPS2:TASK-${task}-nf_output/clustering/specs_ms.mgf:scan:${row["#ClusterIdx"]}">View Mirror</a>
<br>
<a target="_blank" href="https://dashboard.gnps2.org/?usi=mzspec:GNPS2:TASK-${task}-${row["#Filename"]}&xic_mz=${row["#ParentMass"]}&xic_rt=${row["#RetTime"]}">View LCMS Run</a>
`;}}]'
- name: Network Pairs List
displayname: Network Pairs List
viewname: pairslist
displaytype: datatable_serverbig
parameters:
filename: nf_output/networking/pairs_with_components.tsv
columns:
- title: "View"
data:
- title: "CLUSTERID1"
data: CLUSTERID1
- title: "CLUSTERID2"
data: CLUSTERID2
- title: "DeltaMZ"
data: DeltaMZ
- title: "Cosine"
data: Cosine
- title: "MatchedPeaks"
data: MatchedPeaks
- title: "ComponentIndex"
data: ComponentIndex
columnDefs: '[ {"targets": 0,"data": null,"render": function ( data, type, row, meta ) {
return `
<a target="_blank" href="https://metabolomics-usi.gnps2.org/dashinterface/?usi1=mzspec:GNPS2:TASK-${task}-nf_output/clustering/specs_ms.mgf:scan:${row["CLUSTERID1"]}&usi2=mzspec:GNPS2:TASK-${task}-nf_output/clustering/specs_ms.mgf:scan:${row["CLUSTERID2"]}">View Mirror</a>
`;}}]'
- name: section
displayname: Network Visualizations
viewname: section
displaytype: section
- name: Visualize Network in Browser
displayname: Visualize Full Network in Browser
viewname: visualizefullnetwork
displaytype: linkout
parameters:
baseurl: /dashboards/networkviewer
urlparam:
- usi:mzdata:GNPS2:TASK-[task]-nf_output/networking/network.graphml
- usi-mgf:mzdata:GNPS2:TASK-[task]-nf_output/clustering/specs_ms.mgf
- name: Visualize Network w/ Singletons in Browser
displayname: Visualize Full Network w/ Singletons in Browser
viewname: visualizefullsingletonnetwork
displaytype: linkout
parameters:
baseurl: /dashboards/networkviewer
urlparam:
- usi:mzdata:GNPS2:TASK-[task]-nf_output/networking/network_singletons.graphml
- usi-mgf:mzdata:GNPS2:TASK-[task]-nf_output/clustering/specs_ms.mgf
- name: Export Network in Cytoscape
displayname: Export Network in Cytoscape
viewname: visualizecytoscape
displaytype: linkout
parameters:
baseurl: https://cytoscape.gnps2.org/process
urlparam:
- task:[task]
- name: Export Network in Cytoscape with Singletons
displayname: Export Network in Cytoscape with Singletons
viewname: visualizecytoscapesingleton
displaytype: linkout
parameters:
baseurl: https://cytoscape.gnps2.org/process
urlparam:
- task:[task]
- override_path:nf_output/networking/network_singletons.graphml
- name: section
displayname: Downstream Analysis
viewname: section
displaytype: section
- name: Downstream Analysis - Run Transitive Alignments
displayname: Downstream Analysis - Run Transitive Alignments
viewname: downstreamtransitive
displaytype: linkout
parameters:
baseurl: /workflowinput
urlparam:
- workflowname:Transitive_alignment_workflow
hashparam:
- input_graphml:TASKLOCATION/[task]/nf_output/networking/network_singletons.graphml
- input_pairs:TASKLOCATION/[task]/nf_output/networking/merged_pairs.tsv
- input_spectra:TASKLOCATION/[task]/nf_output/clustering/specs_ms.mgf
- description:Downstream from [task] Classical Molecular Networking
- name: Downstream Analysis - Overlay Custom Network
displayname: Downstream Analysis - Overlay Custom Network
viewname: downstreamoverlay
displaytype: linkout
parameters:
baseurl: /workflowinput
urlparam:
- workflowname:gnps2_network_overlay_workflow
hashparam:
- input_graphml:TASKLOCATION/[task]/nf_output/networking/network_singletons.graphml
- input_mgf:TASKLOCATION/[task]/nf_output/clustering/specs_ms.mgf
- description:Downstream from [task] Classical Molecular Networking
# CMMC
- name: Downstream Analysis - CMMC Enrichment Analysis
displayname: Downstream Analysis - CMMC Enrichment Analysis
viewname: downstreamcmmc
displaytype: linkout
parameters:
baseurl: /workflowinput
urlparam:
- workflowname:cmmc_gnps_network_enrichment_workflow
hashparam:
- gnps2_graphml:TASKLOCATION/[task]/nf_output/networking/network_singletons.graphml
- gnps2_mgf:TASKLOCATION/[task]/nf_output/clustering/specs_ms.mgf
- networktype:CLASSICAL
- datasource:GNPS2
- description:Downstream from [task] Classical Molecular Networking
- name: Downstream Analysis - Feature Augment Network
displayname: Downstream Analysis - Feature Augment Network
viewname: downstreamfeatureaugment
displaytype: linkout
parameters:
baseurl: /workflowinput
urlparam:
- workflowname:feature_augmentation_workflow
hashparam:
- input_features:TASKLOCATION/[task]/nf_output/clustering/featuretable_reformatted_presence.csv
- input_spectra:TASKLOCATION/[task]/input_spectra
- description:Downstream from [task] Classical Molecular Networking
- name: PostNetworking - MassQL Interactive Analysis
displayname: PostNetworking - MassQL Interactive Analysis
viewname: massqlpostmn
displaytype: linkout
parameters:
baseurl: "https://massqlpostmn.gnps2.org"
urlparam:
- task_id:[task]
- name: ModiFinder - Localize Analog Modifications
displayname: ModiFinder - Localize Analog Modifications
viewname: high_throughput_modifinder
displaytype: linkout
parameters:
baseurl: /workflowinput
urlparam:
- workflowname:high_throughput_modifinder
hashparam:
- matches_path:TASKLOCATION/[task]/nf_output/modifinder_input.csv
- with_library_search:"0"
- name: PostNetworking - MassQL Interactive Analysis
displayname: PostNetworking - MassQL Interactive Analysis
viewname: massqlpostmn
displaytype: linkout
parameters:
baseurl: "https://massqlpostmn.gnps2.org"
urlparam:
- task_id:[task]
- name: section
displayname: Download Network Files
viewname: section
displaytype: section
- name: Download Network GraphML
displayname: Download Network GraphML
viewname: graphml
displaytype: download
parameters:
filename: nf_output/networking/network.graphml
- name: Download Network with Singletons GraphML
displayname: Download Network with Singletons GraphML
viewname: graphmlsingletons
displaytype: download
parameters:
filename: nf_output/networking/network_singletons.graphml
- name: Download Consensus MS/MS MGF
displayname: Download Consensus MS/MS MGF
viewname: specms
displaytype: download
parameters:
filename: nf_output/clustering/specs_ms.mgf
- name: Download Merged Metadata File
displayname: Download Merged Metadata File
viewname: metadatadownload
displaytype: download
parameters:
filename: nf_output/metadata/merged_metadata.tsvtsv