protvista-uniprot 4.5.1 → 4.5.2

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.5.1",
4
+ "version": "4.5.2",
5
5
  "files": [
6
6
  "dist",
7
7
  "src"
@@ -65,16 +65,15 @@ const getPTMEvidence = (ptms, taxId) => {
65
65
  dbReferences.map((ref) => ref.id)
66
66
  );
67
67
  const uniqueIds = [...new Set(ids.flat())];
68
- // Urls in the payload are not relevant. For 'Glue project' dataset, Dataset ID and publication reference is hardcoded. Need to be checked in 2024 if it still exists in the payload
68
+ // For 'Glue project' dataset (PXD012174), publication reference is hardcoded.
69
69
  const proteomexchange =
70
70
  'https://proteomecentral.proteomexchange.org/dataset/';
71
71
  return `
72
72
  <ul class="no-bullet">${uniqueIds
73
73
  .map((id) => {
74
- const datasetID = id === 'Glue project' ? 'PXD012174' : id;
75
- return `<li title='${datasetID}'>${datasetID}&nbsp;(<a href="${proteomexchange}${datasetID}" target="_blank">ProteomeXchange</a>${
76
- id === 'Glue project'
77
- ? `)</li><li title="publication">Publication:&nbsp;31819260&nbsp;(<a href="https://pubmed.ncbi.nlm.nih.gov/31819260" target="_blank">PubMed</a>)</li>`
74
+ return `<li title='${id}'>${id}&nbsp;(<a href="${proteomexchange}${id}" target="_blank">ProteomeXchange</a>${
75
+ id === 'PXD012174'
76
+ ? `&nbsp;<a href="https://www.ebi.ac.uk/pride/archive/projects/${id}" target="_blank">PRIDE</a>)</li><li title="publication">Publication:&nbsp;31819260&nbsp;(<a href="https://pubmed.ncbi.nlm.nih.gov/31819260" target="_blank">PubMed</a>)</li>`
78
77
  : `&nbsp;<a href="https://db.systemsbiology.net/sbeams/cgi/PeptideAtlas/buildDetails?atlas_build_id=${taxIdToPeptideAtlasBuildData[taxId].build}" target="_blank">PeptideAtlas</a>)</li>`
79
78
  }`;
80
79
  })
@@ -202,7 +201,7 @@ const formatTooltip = (feature, taxId?: string) => {
202
201
  ${
203
202
  feature.residuesToHighlight &&
204
203
  dataset &&
205
- !dataset.includes('Glue project')
204
+ !dataset.includes('PXD012174') // Exclude 'Glue project' dataset as it is from PRIDE and it doesn't have PTM statistical attributes
206
205
  ? `<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">${feature.residuesToHighlight
207
206
  .map((ptm) =>
208
207
  ptm.dbReferences
@@ -1,3 +0,0 @@
1
- {
2
- "window.title": "${rootPath}${separator}[new-ptm-builds]"
3
- }