protvista-uniprot 2.12.2 → 2.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "protvista-uniprot",
|
|
3
3
|
"description": "ProtVista tool for the UniProt website",
|
|
4
|
-
"version": "2.12.
|
|
4
|
+
"version": "2.12.3",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
7
7
|
"src"
|
|
@@ -29,24 +29,24 @@
|
|
|
29
29
|
"data-loader": "^2.9.1",
|
|
30
30
|
"file-saver": "^2.0.2",
|
|
31
31
|
"lit-element": "^2.2.0",
|
|
32
|
-
"protvista-coloured-sequence": "3.8.
|
|
33
|
-
"protvista-datatable": "3.8.
|
|
34
|
-
"protvista-feature-adapter": "3.8.
|
|
35
|
-
"protvista-filter": "3.8.
|
|
36
|
-
"protvista-interpro-adapter": "3.8.
|
|
37
|
-
"protvista-interpro-track": "3.8.
|
|
38
|
-
"protvista-manager": "3.8.
|
|
39
|
-
"protvista-navigation": "3.8.
|
|
40
|
-
"protvista-proteomics-adapter": "3.8.
|
|
41
|
-
"protvista-sequence": "3.8.
|
|
42
|
-
"protvista-structure": "3.8.
|
|
43
|
-
"protvista-structure-adapter": "3.8.
|
|
44
|
-
"protvista-tooltip": "3.8.
|
|
45
|
-
"protvista-track": "3.8.
|
|
46
|
-
"protvista-variation": "3.8.
|
|
47
|
-
"protvista-variation-adapter": "3.8.
|
|
48
|
-
"protvista-variation-graph": "3.8.
|
|
49
|
-
"protvista-zoomable": "3.8.
|
|
32
|
+
"protvista-coloured-sequence": "3.8.22",
|
|
33
|
+
"protvista-datatable": "3.8.22",
|
|
34
|
+
"protvista-feature-adapter": "3.8.22",
|
|
35
|
+
"protvista-filter": "3.8.22",
|
|
36
|
+
"protvista-interpro-adapter": "3.8.22",
|
|
37
|
+
"protvista-interpro-track": "3.8.22",
|
|
38
|
+
"protvista-manager": "3.8.22",
|
|
39
|
+
"protvista-navigation": "3.8.22",
|
|
40
|
+
"protvista-proteomics-adapter": "3.8.22",
|
|
41
|
+
"protvista-sequence": "3.8.22",
|
|
42
|
+
"protvista-structure": "3.8.22",
|
|
43
|
+
"protvista-structure-adapter": "3.8.22",
|
|
44
|
+
"protvista-tooltip": "3.8.22",
|
|
45
|
+
"protvista-track": "3.8.22",
|
|
46
|
+
"protvista-variation": "3.8.22",
|
|
47
|
+
"protvista-variation-adapter": "3.8.22",
|
|
48
|
+
"protvista-variation-graph": "3.8.22",
|
|
49
|
+
"protvista-zoomable": "3.8.22",
|
|
50
50
|
"timing-functions": "^2.0.1",
|
|
51
51
|
"url-join": "^4.0.1"
|
|
52
52
|
},
|
|
@@ -91,9 +91,7 @@ const convertPtmExchangePtms = (
|
|
|
91
91
|
console.log('PTM has no confidence score');
|
|
92
92
|
} else if (confidenceScores.size > 1) {
|
|
93
93
|
console.error(
|
|
94
|
-
`PTM has a mixture of confidence scores: ${Array.from(
|
|
95
|
-
confidenceScores
|
|
96
|
-
)}`
|
|
94
|
+
`PTM has a mixture of confidence scores: ${Array.from(confidenceScores)}`
|
|
97
95
|
);
|
|
98
96
|
} else {
|
|
99
97
|
[confidenceScore] = confidenceScores;
|
|
@@ -101,22 +99,26 @@ const convertPtmExchangePtms = (
|
|
|
101
99
|
|
|
102
100
|
const tooltip = `
|
|
103
101
|
<h5>Description</h5><p>${phosphorylate(aa)}</p>
|
|
104
|
-
${
|
|
102
|
+
${
|
|
103
|
+
confidenceScore
|
|
104
|
+
? `<h5 data-article-id="mod_res_large_scale#confidence-score">Confidence Score</h5><p>${confidenceScore}</p>`
|
|
105
|
+
: ''
|
|
106
|
+
}
|
|
105
107
|
${
|
|
106
108
|
evidences
|
|
107
109
|
? `<h5>Evidence</h5><ul>${evidences
|
|
108
|
-
.map(
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
(<a href="https://www.ebi.ac.uk/pride/archive/projects/${id}" style="color:#FFF" target="_blank">PRIDE</a>)
|
|
110
|
+
.map((id) => {
|
|
111
|
+
const datasetID = id === 'Glue project' ? 'PXD012174' : id;
|
|
112
|
+
return `<li title='${datasetID}' style="padding: .25rem 0">${datasetID}
|
|
113
|
+
(<a href="https://proteomecentral.proteomexchange.org/dataset/${datasetID}" style="color:#FFF" target="_blank">ProteomeXchange</a>)
|
|
113
114
|
</li>
|
|
114
|
-
${
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
115
|
+
${
|
|
116
|
+
id === 'Glue project'
|
|
117
|
+
? `<li title="publication" style="padding: .25rem 0">Publication: 31819260 (<a href="https://pubmed.ncbi.nlm.nih.gov/31819260" style="color:#FFF" target="_blank">PubMed</a>)</li>`
|
|
118
|
+
: ''
|
|
119
|
+
}
|
|
120
|
+
`;
|
|
121
|
+
})
|
|
120
122
|
.join('')}</ul>`
|
|
121
123
|
: ''
|
|
122
124
|
}
|
|
@@ -139,7 +141,7 @@ export const transformData = (data: ProteomicsPtm) => {
|
|
|
139
141
|
|
|
140
142
|
const absolutePositionToPtms: Record<number, { ptms: PTM[]; aa: string }> =
|
|
141
143
|
{};
|
|
142
|
-
|
|
144
|
+
|
|
143
145
|
if (features) {
|
|
144
146
|
for (const feature of features) {
|
|
145
147
|
for (const ptm of feature.ptms) {
|
|
@@ -167,12 +169,12 @@ export const transformData = (data: ProteomicsPtm) => {
|
|
|
167
169
|
}
|
|
168
170
|
}
|
|
169
171
|
}
|
|
170
|
-
|
|
172
|
+
|
|
171
173
|
return Object.entries(absolutePositionToPtms).map(
|
|
172
174
|
([absolutePosition, { ptms, aa }]) =>
|
|
173
175
|
convertPtmExchangePtms(ptms, aa, +absolutePosition)
|
|
174
176
|
);
|
|
175
|
-
}
|
|
177
|
+
}
|
|
176
178
|
}
|
|
177
|
-
return [];
|
|
179
|
+
return [];
|
|
178
180
|
};
|