protvista-uniprot 4.3.2 → 4.3.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.
|
@@ -241,7 +241,9 @@ const Tm = {
|
|
|
241
241
|
)
|
|
242
242
|
];
|
|
243
243
|
let a;
|
|
244
|
-
const o = new Set(
|
|
244
|
+
const o = new Set(
|
|
245
|
+
t.flatMap(({ name: s }) => s)
|
|
246
|
+
);
|
|
245
247
|
return o.size && (o.size > 1 ? console.error(
|
|
246
248
|
`PTMeXchange PTM has a mixture of modifications: ${Array.from(
|
|
247
249
|
o
|
|
@@ -252,10 +254,10 @@ const Tm = {
|
|
|
252
254
|
${n ? `<h5 data-article-id="mod_res_large_scale#confidence-score">Confidence Score</h5><p>${n}</p>` : ""}
|
|
253
255
|
${i ? `<h5>Evidence</h5><ul class="no-bullet">${i.map((s) => {
|
|
254
256
|
const u = s === "Glue project" ? "PXD012174" : s;
|
|
255
|
-
return `<li title='${u}'
|
|
256
|
-
(<a href="https://proteomecentral.proteomexchange.org/dataset/${u}"
|
|
257
|
+
return `<li title='${u}'>${u}
|
|
258
|
+
(<a href="https://proteomecentral.proteomexchange.org/dataset/${u}" target="_blank">ProteomeXchange</a>)
|
|
257
259
|
</li>
|
|
258
|
-
${s === "Glue project" ? '<li title="publication"
|
|
260
|
+
${s === "Glue project" ? '<li title="publication">Publication: 31819260 (<a href="https://pubmed.ncbi.nlm.nih.gov/31819260" target="_blank">PubMed</a>)</li>' : ""}
|
|
259
261
|
`;
|
|
260
262
|
}).join("")}</ul>` : ""}`;
|
|
261
263
|
}, EBe = {
|
|
@@ -268,16 +270,16 @@ const Tm = {
|
|
|
268
270
|
185431: { build: "590", organism: "T Brucei" }
|
|
269
271
|
}, MBe = (e) => {
|
|
270
272
|
if (e.name?.toLowerCase() === "PubMed".toLowerCase())
|
|
271
|
-
return `${e.id} (<a href='${e.url}'
|
|
272
|
-
const t = ` <a href='${e.url}'
|
|
273
|
+
return `${e.id} (<a href='${e.url}' target='_blank'>${e.name}</a> <a href='${e.alternativeUrl}' target='_blank'>EuropePMC</a>)`;
|
|
274
|
+
const t = ` <a href='${e.url}' target='_blank'>${e.id}</a>`;
|
|
273
275
|
return e.name ? e.name.startsWith("Hpp") ? `${t} (${e.name.slice(3)})` : `${t} (${e.name})` : t;
|
|
274
276
|
}, vAe = (e) => e ? `
|
|
275
277
|
<ul class="no-bullet">${e.map((t) => {
|
|
276
278
|
const r = TBe.find((n) => n.name === t.code);
|
|
277
|
-
return r ? `<li title='${r.description}'
|
|
279
|
+
return r ? `<li title='${r.description}'>${r.shortDescription}: ${t.source ? MBe(t.source) : ""}</li>` : "";
|
|
278
280
|
}).join("")}</ul>
|
|
279
281
|
` : "", gAe = (e) => `<ul class="no-bullet">${e.map(
|
|
280
|
-
(t) => `<li
|
|
282
|
+
(t) => `<li>${t.name} ${t.url ? `<a href="${t.url}" target="_blank">${t.id}</a>` : `${t.name} ${t.id}`}</li>`
|
|
281
283
|
).join("")}</ul>`, $Be = (e, t) => {
|
|
282
284
|
if (!e) return "";
|
|
283
285
|
const r = e.flatMap(
|
|
@@ -286,7 +288,7 @@ const Tm = {
|
|
|
286
288
|
return `
|
|
287
289
|
<ul class="no-bullet">${n.map((a) => {
|
|
288
290
|
const o = a === "Glue project" ? "PXD012174" : a;
|
|
289
|
-
return `<li title='${o}'
|
|
291
|
+
return `<li title='${o}'>${o} (<a href="${i}${o}" target="_blank">ProteomeXchange</a>${a === "Glue project" ? ')</li><li title="publication">Publication: 31819260 (<a href="https://pubmed.ncbi.nlm.nih.gov/31819260" target="_blank">PubMed</a>)</li>' : ` <a href="https://db.systemsbiology.net/sbeams/cgi/PeptideAtlas/buildDetails?atlas_build_id=${EBe[t].build}" target="_blank">PeptideAtlas</a>)</li>`}`;
|
|
290
292
|
}).join("")}</ul>
|
|
291
293
|
`;
|
|
292
294
|
}, kBe = (e, t) => {
|
|
@@ -306,7 +308,9 @@ const Tm = {
|
|
|
306
308
|
const { peptide: r, begin: n } = e, i = Number(n) + t.position - 1, a = r.charAt(t.position - 1);
|
|
307
309
|
return t.name === "Phosphorylation" ? `${i} ${pAe(a)}` : t.name === "SUMOylation" ? `${i} ${mAe(a)}` : "";
|
|
308
310
|
}, yAe = (e, t) => {
|
|
309
|
-
const r = e.type === "PROTEOMICS_PTM" ? $Be(e.residuesToHighlight, t) : vAe(e.evidences), n = e.type === "PROTEOMICS_PTM" && e.residuesToHighlight.map(
|
|
311
|
+
const r = e.type === "PROTEOMICS_PTM" ? $Be(e.residuesToHighlight, t) : vAe(e.evidences), n = e.type === "PROTEOMICS_PTM" && e.residuesToHighlight.map(
|
|
312
|
+
(o) => Ene(e, o)
|
|
313
|
+
), i = e.type === "PROTEOMICS_PTM" && e.residuesToHighlight.flatMap(
|
|
310
314
|
({ dbReferences: o }) => o.map((s) => s.id)
|
|
311
315
|
);
|
|
312
316
|
let { description: a } = e;
|
|
@@ -330,20 +334,20 @@ const Tm = {
|
|
|
330
334
|
${e.unique ? `<h5>Unique</h5><p>${e.unique ? "Yes" : "No"}</p>` : ""}
|
|
331
335
|
${e.xrefs ? `<h5>Cross-references</h5>${gAe(e.xrefs)}` : ""}
|
|
332
336
|
${r ? `<h5>Evidence</h5>${r}` : ""}
|
|
333
|
-
${e.residuesToHighlight && i && !i.includes("Glue project") ? `<hr /><h5 data-article-id="mod_res_large_scale#what-is-the-goldsilverbronze-criterion">PTM statistical attributes</h5><ul class="no-bullet">${e.residuesToHighlight.map(
|
|
337
|
+
${e.residuesToHighlight && i && !i.includes("Glue project") ? `<hr /><h5 class="margin-bottom" data-article-id="mod_res_large_scale#what-is-the-goldsilverbronze-criterion">PTM statistical attributes</h5><ul class="no-bullet">${e.residuesToHighlight.map(
|
|
334
338
|
(o) => o.dbReferences.map(
|
|
335
339
|
(s) => `<li><b>${s.id}</b></li>
|
|
336
|
-
<li
|
|
340
|
+
<li class="text-indent-1"><b>${Ene(
|
|
337
341
|
e,
|
|
338
342
|
o
|
|
339
343
|
)}</b></li>
|
|
340
|
-
${s.properties["Pubmed ID"] ? `<li
|
|
341
|
-
${s.properties["Confidence score"] ? `<li
|
|
342
|
-
${s.properties["Sumo isoforms"] ? `<li
|
|
343
|
-
${s.properties["Organism part"] ? `<li
|
|
344
|
-
${s.properties["PSM Count (0.05 gFLR)"] ? `<li
|
|
345
|
-
${s.properties["Final site probability"] ? `<li
|
|
346
|
-
${s.properties["Universal Spectrum Id"] ? `<li
|
|
344
|
+
${s.properties["Pubmed ID"] ? `<li class="text-indent-2">PubMed ID: <a href="https://europepmc.org/article/MED/${s.properties["Pubmed ID"]}" target="_blank">${s.properties["Pubmed ID"]}</a></li>` : ""}
|
|
345
|
+
${s.properties["Confidence score"] ? `<li class="text-indent-2"><span data-article-id="mod_res_large_scale#confidence-score">Confidence score</span>: ${s.properties["Confidence score"]}</li>` : ""}
|
|
346
|
+
${s.properties["Sumo isoforms"] ? `<li class="text-indent-2">SUMO family member: ${s.properties["Sumo isoforms"]}</li>` : ""}
|
|
347
|
+
${s.properties["Organism part"] ? `<li class="text-indent-2">Organism part: ${s.properties["Organism part"]}</li>` : ""}
|
|
348
|
+
${s.properties["PSM Count (0.05 gFLR)"] ? `<li class="text-indent-2">PSM Count (0.05 gFLR): ${s.properties["PSM Count (0.05 gFLR)"]}</li>` : ""}
|
|
349
|
+
${s.properties["Final site probability"] ? `<li class="text-indent-2">Final site probability: ${s.properties["Final site probability"]}</li>` : ""}
|
|
350
|
+
${s.properties["Universal Spectrum Id"] ? `<li class="text-indent-2 nowrap">Universal Spectrum Id:
|
|
347
351
|
<a href="http://proteomecentral.proteomexchange.org/usi/?usi=${s.properties["Universal Spectrum Id"]}" target="_blank">View on ProteomeXchange</a>
|
|
348
352
|
</li>` : ""}
|
|
349
353
|
`
|
|
@@ -355,7 +359,7 @@ const Tm = {
|
|
|
355
359
|
}
|
|
356
360
|
}, IBe = (e) => `<ul>
|
|
357
361
|
${e.map(
|
|
358
|
-
(t) => `<li
|
|
362
|
+
(t) => `<li><a href='${t.source.url}' target='_blank'>
|
|
359
363
|
${t.source.id}
|
|
360
364
|
</a> (${t.start}-${t.end})</li>`
|
|
361
365
|
).join("")}
|
|
@@ -60207,10 +60211,21 @@ let cm = class extends p2(m2(vv)) {
|
|
|
60207
60211
|
font-weight: bold;
|
|
60208
60212
|
}
|
|
60209
60213
|
|
|
60214
|
+
.structure-viewer-message-content {
|
|
60215
|
+
white-space: pre-wrap;
|
|
60216
|
+
line-height: normal;
|
|
60217
|
+
}
|
|
60218
|
+
|
|
60210
60219
|
.structure-viewer-messages > button {
|
|
60211
|
-
font-size:
|
|
60220
|
+
font-size: 75%;
|
|
60212
60221
|
font-weight: bold;
|
|
60213
|
-
|
|
60222
|
+
position: absolute;
|
|
60223
|
+
top: -2px;
|
|
60224
|
+
right: 0px;
|
|
60225
|
+
border: none;
|
|
60226
|
+
background: transparent;
|
|
60227
|
+
cursor: pointer;
|
|
60228
|
+
padding: 0px 3px;
|
|
60214
60229
|
}
|
|
60215
60230
|
</style>
|
|
60216
60231
|
<div id="molstar-parent" class="structure-viewer-container">
|
|
@@ -60219,7 +60234,11 @@ let cm = class extends p2(m2(vv)) {
|
|
|
60219
60234
|
style="position: absolute; top: 0; left: 0; right: 0; bottom: 0"
|
|
60220
60235
|
></canvas>
|
|
60221
60236
|
${this.message ? uae`<div class="structure-viewer-messages">
|
|
60222
|
-
<span>${(e = this.message) === null || e === void 0 ? void 0 : e.title}
|
|
60237
|
+
<span>${(e = this.message) === null || e === void 0 ? void 0 : e.title}</span>:
|
|
60238
|
+
<span
|
|
60239
|
+
class="structure-viewer-message-content"
|
|
60240
|
+
.innerHTML=${(t = this.message) === null || t === void 0 ? void 0 : t.content}
|
|
60241
|
+
></span>
|
|
60223
60242
|
<button
|
|
60224
60243
|
type="button"
|
|
60225
60244
|
title="close message"
|
|
@@ -60297,23 +60316,28 @@ let cm = class extends p2(m2(vv)) {
|
|
|
60297
60316
|
this.message = null;
|
|
60298
60317
|
}
|
|
60299
60318
|
updateHighlight(e) {
|
|
60300
|
-
if (!e?.length || e.some((
|
|
60319
|
+
if (!e?.length || e.some((a) => !Number.isInteger(a.position))) return;
|
|
60301
60320
|
let t;
|
|
60302
|
-
if (this.isAF()) t = e.map((
|
|
60321
|
+
if (this.isAF()) t = e.map((a) => ({ start: a.position, end: a.position, entity: 1, chain: a.chain }));
|
|
60303
60322
|
else try {
|
|
60304
|
-
t = e.flatMap((
|
|
60305
|
-
var
|
|
60306
|
-
return Jpe(
|
|
60323
|
+
t = e.flatMap((a) => {
|
|
60324
|
+
var o;
|
|
60325
|
+
return Jpe(a.position, a.position, "PDB_UP", (o = this.selectedMolecule) === null || o === void 0 ? void 0 : o.mappings).filter((s) => s.chain === a.chain);
|
|
60307
60326
|
}).filter(Boolean);
|
|
60308
|
-
} catch (
|
|
60309
|
-
if (
|
|
60310
|
-
throw
|
|
60327
|
+
} catch (a) {
|
|
60328
|
+
if (a instanceof ME) return void this.showMessage("Error", a.message);
|
|
60329
|
+
throw a;
|
|
60311
60330
|
}
|
|
60312
60331
|
if (!t.length) return void this.showMessage("Error", "Residue outside of sequence range");
|
|
60313
|
-
const r = t.map((
|
|
60332
|
+
const r = t.map((a) => `${a.start}:${a.end}`).join(",");
|
|
60314
60333
|
this.highlight = r;
|
|
60315
|
-
const n =
|
|
60316
|
-
|
|
60334
|
+
const n = t.map((a, o) => {
|
|
60335
|
+
const s = e[o].position, u = a.start === a.end ? a.start : `${a.start}:${a.end}`;
|
|
60336
|
+
return `<span data-article-id="structure_section#description-of-structure-table-contents">Chain</span>: ${a.chain}, <span data-article-id="structure_section#description-of-structure-table-contents">Position</span>: ${s} <br /><b>${this["protein-accession"]}</b>: ${u}`;
|
|
60337
|
+
}).join("");
|
|
60338
|
+
this.showMessage(`${this["structure-id"]}`, n);
|
|
60339
|
+
const i = new CustomEvent("change", { detail: { highlight: r }, bubbles: !0, cancelable: !0 });
|
|
60340
|
+
this.dispatchEvent(i);
|
|
60317
60341
|
}
|
|
60318
60342
|
highlightChain() {
|
|
60319
60343
|
var e, t, r, n;
|
|
@@ -60328,7 +60352,7 @@ let cm = class extends p2(m2(vv)) {
|
|
|
60328
60352
|
if (a instanceof ME) return (t = ec(this, Es, "f")) === null || t === void 0 || t.clearHighlight(), void this.showMessage("Error", a.message);
|
|
60329
60353
|
throw a;
|
|
60330
60354
|
}
|
|
60331
|
-
i?.length ? (
|
|
60355
|
+
i?.length ? (n = ec(this, Es, "f")) === null || n === void 0 || n.highlight(i) : (r = ec(this, Es, "f")) === null || r === void 0 || r.clearHighlight();
|
|
60332
60356
|
}
|
|
60333
60357
|
};
|
|
60334
60358
|
Es = /* @__PURE__ */ new WeakMap(), J0([ZT({ type: String })], cm.prototype, "protein-accession", void 0), J0([ZT({ type: String })], cm.prototype, "structure-id", void 0), J0([ZT({ type: String })], cm.prototype, "custom-download-url", void 0), J0([ZT({ type: String })], cm.prototype, "color-theme", void 0), J0([lae()], cm.prototype, "selectedMolecule", void 0), J0([lae()], cm.prototype, "message", void 0), cm = J0([e$("nightingale-structure")], cm);
|