protvista-uniprot 4.5.0 → 4.5.1

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.
@@ -94632,23 +94632,24 @@ const C8t = (e, t, r) => {
94632
94632
  }
94633
94633
  }
94634
94634
  return [];
94635
- }, P8t = (e) => {
94636
- const t = e?.[0]?.cifUrl;
94637
- return t?.length ? t.replace("-model", "-confidence").replace(".cif", ".json") : null;
94638
- }, E8t = async (e) => {
94635
+ }, P8t = (e) => e.cifUrl?.replace("-model", "-confidence").replace(".cif", ".json"), E8t = async (e) => {
94639
94636
  try {
94640
94637
  return (await fetch(e)).json();
94641
94638
  } catch (t) {
94642
94639
  console.error("Could not load AlphaFold confidence", t);
94643
94640
  }
94644
94641
  }, M8t = async (e, t) => {
94645
- const r = P8t(e);
94646
- if (!r)
94647
- return;
94648
- if ((e?.filter(
94649
- ({ sequence: i }) => t.sequence.sequence === i
94650
- )).length)
94651
- return (await E8t(r))?.confidenceCategory.join("");
94642
+ const r = e?.filter(
94643
+ ({ sequence: n }) => t.sequence.sequence === n
94644
+ );
94645
+ if (r.length === 1) {
94646
+ const n = P8t(
94647
+ r[0]
94648
+ );
94649
+ return n ? (await E8t(n))?.confidenceCategory.join("") : void 0;
94650
+ } else r.length > 1 && console.warn(
94651
+ `Found more than one matches (${r.length}) for AlphaFold confidence adapter against protein sequence: ${t.sequence}`
94652
+ );
94652
94653
  }, $8t = 0, yAe = 0.1132, bAe = 0.2264, _Ae = 0.3395, xAe = 0.4527, wAe = 0.5895, SAe = 0.7264, AAe = 0.8632, k8t = 1, z9e = /\s*\n\s*/, G9e = /^(.)(\d+)(.),(.+),(\w+)$/, I8t = [
94653
94654
  { min: $8t, max: yAe, code: "H" },
94654
94655
  { min: yAe, max: bAe, code: "V" },