protvista-uniprot 4.4.7 → 4.4.8
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
|
@@ -178,16 +178,21 @@ const process3DBeaconsData = (data: BeaconsData): ProcessedStructureData[] => {
|
|
|
178
178
|
const otherStructures = data?.structures?.filter(({ summary }) =>
|
|
179
179
|
providersFrom3DBeacons.includes(summary.provider)
|
|
180
180
|
);
|
|
181
|
-
return
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
181
|
+
return (
|
|
182
|
+
otherStructures?.map(({ summary }) => ({
|
|
183
|
+
id: summary['model_identifier'],
|
|
184
|
+
source: summary.provider,
|
|
185
|
+
method: sourceMethods.get(summary.provider),
|
|
186
|
+
positions: `${summary['uniprot_start']}-${summary['uniprot_end']}`,
|
|
187
|
+
protvistaFeatureId: summary['model_identifier'],
|
|
188
|
+
downloadLink: summary['model_url'],
|
|
189
|
+
// isoform.io does not have a model page url. Link to their homepage instead.
|
|
190
|
+
sourceDBLink:
|
|
191
|
+
summary.provider === 'isoform.io'
|
|
192
|
+
? 'https://www.isoform.io/home'
|
|
193
|
+
: summary['model_page_url'],
|
|
194
|
+
})) || []
|
|
195
|
+
);
|
|
191
196
|
};
|
|
192
197
|
|
|
193
198
|
const AFMetaInfo = html`
|
|
@@ -308,8 +313,8 @@ class ProtvistaUniprotStructure extends LitElement {
|
|
|
308
313
|
) {
|
|
309
314
|
afData = processAFData(rawData[alphaFoldUrl] || []);
|
|
310
315
|
this.alphamissenseAvailable = rawData[alphaFoldUrl].some(
|
|
311
|
-
|
|
312
|
-
|
|
316
|
+
(data) => data.amAnnotationsUrl
|
|
317
|
+
);
|
|
313
318
|
}
|
|
314
319
|
const beaconsData = process3DBeaconsData(rawData[beaconsUrl] || []);
|
|
315
320
|
|
|
@@ -370,8 +375,10 @@ class ProtvistaUniprotStructure extends LitElement {
|
|
|
370
375
|
}) {
|
|
371
376
|
if (providersFrom3DBeacons.includes(source)) {
|
|
372
377
|
this.modelUrl = downloadLink;
|
|
378
|
+
// Reset the rest
|
|
373
379
|
this.structureId = undefined;
|
|
374
380
|
this.metaInfo = undefined;
|
|
381
|
+
this.colorTheme = 'alphafold';
|
|
375
382
|
} else {
|
|
376
383
|
this.structureId = id;
|
|
377
384
|
this.modelUrl = undefined;
|
|
@@ -503,7 +510,6 @@ class ProtvistaUniprotStructure extends LitElement {
|
|
|
503
510
|
${this.modelUrl
|
|
504
511
|
? html`<nightingale-structure
|
|
505
512
|
model-url=${this.modelUrl}
|
|
506
|
-
color-theme=${this.colorTheme}
|
|
507
513
|
></nightingale-structure>`
|
|
508
514
|
: html``}
|
|
509
515
|
</div>
|