generated from Wang-Bioinformatics-Lab/Nextflow_Workflow_Template
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathworkflowdisplay.yaml
More file actions
104 lines (102 loc) · 4.69 KB
/
workflowdisplay.yaml
File metadata and controls
104 lines (102 loc) · 4.69 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
name: librarysearch_workflow
displayname: STUFF
Views:
- name: Search Results List
displayname: Search Results List
viewname: summarylist
displaytype: datatable_serverbig #datatable
parameters:
filename: nf_output/merged_results_with_gnps.tsv
columns:
- title: "View Spectra"
data:
- title: "Use ModiFinder"
data:
- title: "Query Scan"
data: "#Scan#"
- title: "Query File"
data: SpectrumFile
- title: "Name"
data: Compound_Name
- title: "Ion"
data: Ion_Source
- title: "Precursor m/z"
data: SpecMZ
- title: "Similarity Score"
data: MQScore
- title: "Shared Peaks"
data: SharedPeaks
- title: "MassDiff"
data: MassDiff
- 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}-inputspectra/${row["SpectrumFile"]}: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}-inputspectra/${row["SpectrumFile"]}:scan:${row["#Scan#"]}&usi2=mzspec:GNPS2:TASK-${task}-input_libraries/${row["LibraryName"]}:scan:${row["LibScan"]}">View Mirror</a>
`;}},
{
"targets": 1, "data": null, "render": function ( data, type, row, meta ) {
return row["Smiles"]? `<a target="_blank" href="https://modifinder.gnps2.org/?USI1=mzspec:GNPS:GNPS-LIBRARY:accession:${row["SpectrumID"]}&USI2=mzspec:GNPS2:TASK-${task}-inputspectra/${row["SpectrumFile"]}:scan:${row["#Scan#"]}&SMILES1=${row["Smiles"]}">Check on ModiFinder</a>` : `<p>Unknown Structure</p>`;
}},
{"targets": 11,"data": null,"render": function ( data, type, row, meta ) {
return `
<img src="https://structure.gnps2.org/structureimg?smiles=${row["Smiles"]}"/>
`;}},
{"targets": [10, 11], "visible": false}]'
- name: Search Results Top 1 List
displayname: Search Results Top 1 List
viewname: summarylist1
displaytype: datatable_serverbig #datatable
parameters:
filename: nf_output/merged_results_with_gnps_top1.tsv
columns:
- title: "View Spectra"
data:
- title: "Use ModiFinder"
data:
- title: "Query Scan"
data: "#Scan#"
- title: "Query File"
data: SpectrumFile
- title: "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: "SpectrumID"
data: SpectrumID
- title: "Smiles"
data: Smiles
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}-inputspectra/${row["SpectrumFile"]}:scan:${row["#Scan#"]}&usi2=mzspec:GNPS:GNPS-LIBRARY:accession:${row["SpectrumID"]}">View Mirror</a>
`;}},
{
"targets": 1, "data": null, "render": function ( data, type, row, meta ) {
return row["Smiles"]? `<a target="_blank" href="https://modifinder.gnps2.org/?USI1=mzspec:GNPS:GNPS-LIBRARY:accession:${row["SpectrumID"]}&USI2=mzspec:GNPS2:TASK-${task}-inputspectra/${row["SpectrumFile"]}:scan:${row["#Scan#"]}&SMILES1=${row["Smiles"]}">Check on ModiFinder</a>` : `<p>Unknown Structure</p>`;
}},
{"targets": 11,"data": null,"render": function ( data, type, row, meta ) {
return `
<img src="https://structure.gnps2.org/structureimg?smiles=${row["Smiles"]}"/>
`;}},
]'