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.
- package/README.md +8 -2
- package/dist/protvista-uniprot.mjs +41399 -28456
- package/dist/protvista-uniprot.mjs.map +1 -1
- package/dist/types/adapters/types/interpro.d.ts +1 -1
- package/dist/types/config.d.ts +1 -1
- package/dist/types/index.d.ts +3 -3
- package/dist/types/tooltips/interpro-tooltip.d.ts +3 -0
- package/dist/types/tooltips/{ptmTooltip.d.ts → ptm-tooltip.d.ts} +1 -1
- package/package.json +4 -4
- package/src/adapters/feature-adapter.ts +1 -1
- package/src/adapters/interpro-adapter.ts +21 -42
- package/src/adapters/proteomics-adapter.ts +6 -3
- package/src/adapters/ptm-exchange-adapter.ts +7 -2
- package/src/adapters/rna-editing-adapter.ts +1 -1
- package/src/adapters/structure-adapter.ts +1 -1
- package/src/adapters/types/interpro.ts +1 -1
- package/src/adapters/variation-adapter.ts +1 -1
- package/src/config.ts +60 -60
- package/src/index.ts +3 -3
- package/src/protvista-uniprot.ts +8 -8
- package/src/styles/protvista-styles.ts +1 -1
- package/src/tooltips/{featureTooltip.ts → feature-tooltip.ts} +8 -12
- package/src/tooltips/interpro-tooltip.ts +43 -0
- package/src/tooltips/{ptmTooltip.ts → ptm-tooltip.ts} +6 -1
- package/src/tooltips/{variationTooltip.ts → variation-tooltip.ts} +1 -1
- package/src/.vscode/settings.json +0 -3
- /package/dist/types/tooltips/{featureTooltip.d.ts → feature-tooltip.d.ts} +0 -0
- /package/dist/types/tooltips/{rnaEditingTooltip.d.ts → rna-editing-tooltip.d.ts} +0 -0
- /package/dist/types/tooltips/{structureTooltip.d.ts → structure-tooltip.d.ts} +0 -0
- /package/dist/types/tooltips/{variationTooltip.d.ts → variation-tooltip.d.ts} +0 -0
- /package/src/tooltips/{rnaEditingTooltip.ts → rna-editing-tooltip.ts} +0 -0
- /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 './
|
|
10
|
+
import { formatXrefs, getEvidenceFromCodes } from './feature-tooltip';
|
|
11
11
|
|
|
12
12
|
const getDiseaseAssociations = (associations: Association[]): string =>
|
|
13
13
|
associations
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|