protvista-uniprot 4.2.0 → 4.3.0

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.
Files changed (32) hide show
  1. package/README.md +8 -2
  2. package/dist/protvista-uniprot.mjs +41399 -28456
  3. package/dist/protvista-uniprot.mjs.map +1 -1
  4. package/dist/types/adapters/types/interpro.d.ts +1 -1
  5. package/dist/types/config.d.ts +1 -1
  6. package/dist/types/index.d.ts +3 -3
  7. package/dist/types/tooltips/interpro-tooltip.d.ts +3 -0
  8. package/dist/types/tooltips/{ptmTooltip.d.ts → ptm-tooltip.d.ts} +1 -1
  9. package/package.json +4 -4
  10. package/src/adapters/feature-adapter.ts +1 -1
  11. package/src/adapters/interpro-adapter.ts +21 -42
  12. package/src/adapters/proteomics-adapter.ts +6 -3
  13. package/src/adapters/ptm-exchange-adapter.ts +7 -2
  14. package/src/adapters/rna-editing-adapter.ts +1 -1
  15. package/src/adapters/structure-adapter.ts +1 -1
  16. package/src/adapters/types/interpro.ts +1 -1
  17. package/src/adapters/variation-adapter.ts +1 -1
  18. package/src/config.ts +60 -60
  19. package/src/index.ts +3 -3
  20. package/src/protvista-uniprot.ts +8 -8
  21. package/src/styles/protvista-styles.ts +1 -1
  22. package/src/tooltips/{featureTooltip.ts → feature-tooltip.ts} +8 -12
  23. package/src/tooltips/interpro-tooltip.ts +43 -0
  24. package/src/tooltips/{ptmTooltip.ts → ptm-tooltip.ts} +6 -1
  25. package/src/tooltips/{variationTooltip.ts → variation-tooltip.ts} +1 -1
  26. package/src/.vscode/settings.json +0 -3
  27. /package/dist/types/tooltips/{featureTooltip.d.ts → feature-tooltip.d.ts} +0 -0
  28. /package/dist/types/tooltips/{rnaEditingTooltip.d.ts → rna-editing-tooltip.d.ts} +0 -0
  29. /package/dist/types/tooltips/{structureTooltip.d.ts → structure-tooltip.d.ts} +0 -0
  30. /package/dist/types/tooltips/{variationTooltip.d.ts → variation-tooltip.d.ts} +0 -0
  31. /package/src/tooltips/{rnaEditingTooltip.ts → rna-editing-tooltip.ts} +0 -0
  32. /package/src/tooltips/{structureTooltip.ts → structure-tooltip.ts} +0 -0
@@ -33,7 +33,7 @@ export const sumoylate = (aa: string) => {
33
33
  return '';
34
34
  };
35
35
 
36
- const formatTooltip = (ptms: PTM[], aa: string, confidenceScore: string): string => {
36
+ const formatTooltip = (title: string, ptms: PTM[], aa: string, confidenceScore: string): string => {
37
37
  const evidences = [
38
38
  ...ptms.flatMap(({ dbReferences }) =>
39
39
  dbReferences?.flatMap(({ id }) => [id])
@@ -55,6 +55,11 @@ const formatTooltip = (ptms: PTM[], aa: string, confidenceScore: string): string
55
55
  }
56
56
 
57
57
  return `
58
+ ${
59
+ title
60
+ ? `<h4>${title}</h4><hr />`
61
+ : ''
62
+ }
58
63
  <h5>Description</h5><p>${
59
64
  modification === 'Phosphorylation' ? phosphorylate(aa) : sumoylate(aa)
60
65
  }</p>
@@ -7,7 +7,7 @@ import {
7
7
  } from '@nightingale-elements/nightingale-variation';
8
8
  import groupBy from 'lodash-es/groupBy';
9
9
 
10
- import { formatXrefs, getEvidenceFromCodes } from './featureTooltip';
10
+ import { formatXrefs, getEvidenceFromCodes } from './feature-tooltip';
11
11
 
12
12
  const getDiseaseAssociations = (associations: Association[]): string =>
13
13
  associations
@@ -1,3 +0,0 @@
1
- {
2
- "window.title": "${rootPath}${separator}[new-ptm-builds]"
3
- }