protvista-uniprot 4.4.4 → 4.4.5
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
|
@@ -164,17 +164,17 @@ const processAFData = (data: PredictionData[]): ProcessedStructureData[] =>
|
|
|
164
164
|
}));
|
|
165
165
|
|
|
166
166
|
const process3DBeaconsData = (data: BeaconsData): ProcessedStructureData[] => {
|
|
167
|
-
const otherStructures = data
|
|
167
|
+
const otherStructures = data?.structures?.filter(({ summary }) =>
|
|
168
168
|
providersFrom3DBeacons.includes(summary.provider)
|
|
169
169
|
);
|
|
170
|
-
return otherStructures
|
|
170
|
+
return otherStructures?.map(({ summary }) => ({
|
|
171
171
|
id: summary['model_identifier'],
|
|
172
172
|
source: summary.provider,
|
|
173
173
|
positions: `${summary['uniprot_start']}-${summary['uniprot_end']}`,
|
|
174
174
|
protvistaFeatureId: summary['model_identifier'],
|
|
175
175
|
downloadLink: summary['model_url'],
|
|
176
176
|
sourceDBLink: summary['model_page_url'],
|
|
177
|
-
}));
|
|
177
|
+
})) || [];
|
|
178
178
|
};
|
|
179
179
|
|
|
180
180
|
const AFMetaInfo = html`
|
|
@@ -294,6 +294,9 @@ class ProtvistaUniprotStructure extends LitElement {
|
|
|
294
294
|
rawData[pdbUrl].sequence?.value === rawData[alphaFoldUrl]?.[0]?.sequence
|
|
295
295
|
) {
|
|
296
296
|
afData = processAFData(rawData[alphaFoldUrl] || []);
|
|
297
|
+
this.alphamissenseAvailable = rawData[alphaFoldUrl].some(
|
|
298
|
+
(data) => data.amAnnotationsUrl
|
|
299
|
+
);
|
|
297
300
|
}
|
|
298
301
|
const beaconsData = process3DBeaconsData(rawData[beaconsUrl] || []);
|
|
299
302
|
|
|
@@ -304,9 +307,6 @@ class ProtvistaUniprotStructure extends LitElement {
|
|
|
304
307
|
if (!data || !data.length) return;
|
|
305
308
|
|
|
306
309
|
this.data = data;
|
|
307
|
-
this.alphamissenseAvailable = rawData[alphaFoldUrl]?.some(
|
|
308
|
-
(data) => data.amAnnotationsUrl
|
|
309
|
-
);
|
|
310
310
|
}
|
|
311
311
|
|
|
312
312
|
disconnectedCallback() {
|