protvista-uniprot 4.5.2 → 4.5.4

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.
@@ -62113,7 +62113,7 @@ const gvt = [
62113
62113
  ["AlphaFill", "Predicted"],
62114
62114
  ["HEGELAB", "Modeling"],
62115
62115
  ["levylab", "Modeling"]
62116
- ]), xvt = (e) => e.uniProtKBCrossReferences.filter((t) => t.database === "PDB").sort((t, r) => t.id.localeCompare(r.id)).map(({ id: t, properties: r }) => {
62116
+ ]), xvt = (e) => e.uniProtKBCrossReferences ? e.uniProtKBCrossReferences.filter((t) => t.database === "PDB").sort((t, r) => t.id.localeCompare(r.id)).map(({ id: t, properties: r }) => {
62117
62117
  if (!r)
62118
62118
  return;
62119
62119
  const n = r.reduce((l, d) => (l[d.key] = d.value, l), {}), i = n.Method, a = n.Resolution, o = n.Chains;
@@ -62134,7 +62134,7 @@ const gvt = [
62134
62134
  };
62135
62135
  }).filter(
62136
62136
  (t) => t !== void 0
62137
- ), wvt = (e) => e.map((t) => ({
62137
+ ) : [], wvt = (e) => e.map((t) => ({
62138
62138
  id: t.modelEntityId,
62139
62139
  source: "AlphaFold",
62140
62140
  method: "Predicted",
@@ -62213,6 +62213,7 @@ let fR = class extends hw {
62213
62213
  return {
62214
62214
  accession: { type: String },
62215
62215
  structureId: { type: String },
62216
+ sequence: { type: String },
62216
62217
  data: { type: Object },
62217
62218
  loading: { type: Boolean },
62218
62219
  colorTheme: { type: String },
@@ -62226,9 +62227,9 @@ let fR = class extends hw {
62226
62227
  const i = xvt(n[e] || []);
62227
62228
  let a = [];
62228
62229
  const o = n[t]?.filter(
62229
- ({ sequence: c }) => n[e].sequence?.value === c
62230
+ ({ sequence: c }) => n[e]?.sequence?.value === c || this.sequence === c
62230
62231
  );
62231
- o.length && (a = wvt(o), this.alphamissenseAvailable = o.some(
62232
+ o?.length && (a = wvt(o), this.alphamissenseAvailable = o.some(
62232
62233
  (c) => c.amAnnotationsUrl
62233
62234
  ));
62234
62235
  const s = Svt(n[r] || []), u = [...i, ...a, ...s];