protvista-uniprot 4.4.5 → 4.4.7

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": "4.4.5",
4
+ "version": "4.4.7",
5
5
  "files": [
6
6
  "dist",
7
7
  "src"
@@ -32,6 +32,17 @@ const providersFrom3DBeacons = [
32
32
  'levylab',
33
33
  ];
34
34
 
35
+ const sourceMethods = new Map([
36
+ ['SWISS-MODEL', 'Modeling'],
37
+ ['ModelArchive', 'Modeling'],
38
+ ['PED', 'Modeling'],
39
+ ['SASBDB', 'SAS'],
40
+ ['isoform.io', 'Predicted'],
41
+ ['AlphaFill', 'Predicted'],
42
+ ['HEGELAB', 'Modeling'],
43
+ ['levylab', 'Modeling'],
44
+ ]);
45
+
35
46
  type UniProtKBData = {
36
47
  uniProtKBCrossReferences: UniProtKBCrossReference[];
37
48
  sequence: Sequence;
@@ -170,10 +181,12 @@ const process3DBeaconsData = (data: BeaconsData): ProcessedStructureData[] => {
170
181
  return otherStructures?.map(({ summary }) => ({
171
182
  id: summary['model_identifier'],
172
183
  source: summary.provider,
184
+ method: sourceMethods.get(summary.provider),
173
185
  positions: `${summary['uniprot_start']}-${summary['uniprot_end']}`,
174
186
  protvistaFeatureId: summary['model_identifier'],
175
187
  downloadLink: summary['model_url'],
176
- sourceDBLink: summary['model_page_url'],
188
+ // isoform.io does not have a model page url. Link to their homepage instead.
189
+ sourceDBLink: summary.provider === 'isoform.io' ? 'https://www.isoform.io/home' : summary['model_page_url'],
177
190
  })) || [];
178
191
  };
179
192
 
@@ -358,8 +371,10 @@ class ProtvistaUniprotStructure extends LitElement {
358
371
  if (providersFrom3DBeacons.includes(source)) {
359
372
  this.modelUrl = downloadLink;
360
373
  this.structureId = undefined;
374
+ this.metaInfo = undefined;
361
375
  } else {
362
376
  this.structureId = id;
377
+ this.modelUrl = undefined;
363
378
  if (this.structureId.startsWith('AF-')) {
364
379
  this.metaInfo = AFMetaInfo;
365
380
  } else {