protvista-uniprot 4.4.6 → 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,15 +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
|
-
|
|
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
|
+
);
|
|
190
196
|
};
|
|
191
197
|
|
|
192
198
|
const AFMetaInfo = html`
|
|
@@ -307,8 +313,8 @@ class ProtvistaUniprotStructure extends LitElement {
|
|
|
307
313
|
) {
|
|
308
314
|
afData = processAFData(rawData[alphaFoldUrl] || []);
|
|
309
315
|
this.alphamissenseAvailable = rawData[alphaFoldUrl].some(
|
|
310
|
-
|
|
311
|
-
|
|
316
|
+
(data) => data.amAnnotationsUrl
|
|
317
|
+
);
|
|
312
318
|
}
|
|
313
319
|
const beaconsData = process3DBeaconsData(rawData[beaconsUrl] || []);
|
|
314
320
|
|
|
@@ -369,7 +375,10 @@ class ProtvistaUniprotStructure extends LitElement {
|
|
|
369
375
|
}) {
|
|
370
376
|
if (providersFrom3DBeacons.includes(source)) {
|
|
371
377
|
this.modelUrl = downloadLink;
|
|
378
|
+
// Reset the rest
|
|
372
379
|
this.structureId = undefined;
|
|
380
|
+
this.metaInfo = undefined;
|
|
381
|
+
this.colorTheme = 'alphafold';
|
|
373
382
|
} else {
|
|
374
383
|
this.structureId = id;
|
|
375
384
|
this.modelUrl = undefined;
|
|
@@ -501,7 +510,6 @@ class ProtvistaUniprotStructure extends LitElement {
|
|
|
501
510
|
${this.modelUrl
|
|
502
511
|
? html`<nightingale-structure
|
|
503
512
|
model-url=${this.modelUrl}
|
|
504
|
-
color-theme=${this.colorTheme}
|
|
505
513
|
></nightingale-structure>`
|
|
506
514
|
: html``}
|
|
507
515
|
</div>
|