protvista-uniprot 4.4.5 → 4.4.6

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.6",
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,6 +181,7 @@ 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'],
@@ -360,6 +372,7 @@ class ProtvistaUniprotStructure extends LitElement {
360
372
  this.structureId = undefined;
361
373
  } else {
362
374
  this.structureId = id;
375
+ this.modelUrl = undefined;
363
376
  if (this.structureId.startsWith('AF-')) {
364
377
  this.metaInfo = AFMetaInfo;
365
378
  } else {