protvista-uniprot 4.3.1 → 4.3.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/dist/protvista-uniprot.mjs +45356 -62030
- package/dist/protvista-uniprot.mjs.map +1 -1
- package/package.json +40 -40
- package/src/.vscode/settings.json +3 -0
- package/src/adapters/__tests__/__snapshots__/structure-adapter.spec.ts.snap +36 -36
- package/src/adapters/interpro-adapter.ts +3 -3
- package/src/adapters/ptm-exchange-adapter.ts +0 -1
- package/src/adapters/structure-adapter.ts +0 -1
- package/src/adapters/variation-graph-adapter.ts +0 -2
- package/src/protvista-uniprot-structure.ts +3 -2
- package/src/protvista-uniprot.ts +0 -1
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.3.
|
|
4
|
+
"version": "4.3.2",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
7
7
|
"src"
|
|
@@ -29,53 +29,53 @@
|
|
|
29
29
|
"author": "Xavier Watkins <xwatkins@ebi.ac.uk>",
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@nightingale-elements/nightingale-colored-sequence": "5.
|
|
33
|
-
"@nightingale-elements/nightingale-filter": "5.
|
|
34
|
-
"@nightingale-elements/nightingale-interpro-track": "5.
|
|
35
|
-
"@nightingale-elements/nightingale-linegraph-track": "5.
|
|
36
|
-
"@nightingale-elements/nightingale-manager": "5.
|
|
37
|
-
"@nightingale-elements/nightingale-navigation": "5.
|
|
38
|
-
"@nightingale-elements/nightingale-sequence": "5.
|
|
39
|
-
"@nightingale-elements/nightingale-sequence-heatmap": "5.
|
|
40
|
-
"@nightingale-elements/nightingale-structure": "5.
|
|
41
|
-
"@nightingale-elements/nightingale-track-canvas": "5.
|
|
42
|
-
"@nightingale-elements/nightingale-variation": "5.
|
|
32
|
+
"@nightingale-elements/nightingale-colored-sequence": "5.6.0",
|
|
33
|
+
"@nightingale-elements/nightingale-filter": "5.6.0",
|
|
34
|
+
"@nightingale-elements/nightingale-interpro-track": "5.6.0",
|
|
35
|
+
"@nightingale-elements/nightingale-linegraph-track": "5.6.0",
|
|
36
|
+
"@nightingale-elements/nightingale-manager": "5.6.0",
|
|
37
|
+
"@nightingale-elements/nightingale-navigation": "5.6.0",
|
|
38
|
+
"@nightingale-elements/nightingale-sequence": "5.6.0",
|
|
39
|
+
"@nightingale-elements/nightingale-sequence-heatmap": "5.6.0",
|
|
40
|
+
"@nightingale-elements/nightingale-structure": "5.6.0",
|
|
41
|
+
"@nightingale-elements/nightingale-track-canvas": "5.6.0",
|
|
42
|
+
"@nightingale-elements/nightingale-variation": "5.6.0",
|
|
43
43
|
"color-hash": "2.0.2",
|
|
44
|
-
"core-js": "3.
|
|
44
|
+
"core-js": "3.42.0",
|
|
45
45
|
"lit": "3.1.3",
|
|
46
46
|
"lodash-es": "4.17.21",
|
|
47
47
|
"protvista-datatable": "3.8.22",
|
|
48
48
|
"timing-functions": "2.0.1",
|
|
49
|
-
"url-join": "
|
|
49
|
+
"url-join": "5.0.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@babel/core": "
|
|
53
|
-
"@babel/plugin-proposal-decorators": "
|
|
54
|
-
"@babel/plugin-transform-runtime": "
|
|
55
|
-
"@babel/preset-env": "
|
|
56
|
-
"@babel/preset-typescript": "
|
|
57
|
-
"@babel/runtime-corejs3": "
|
|
58
|
-
"@
|
|
59
|
-
"@
|
|
60
|
-
"@types/
|
|
61
|
-
"@typescript-eslint/eslint-plugin": "
|
|
62
|
-
"@typescript-eslint/parser": "
|
|
63
|
-
"babel-jest": "
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"typescript": "
|
|
74
|
-
"vite": "
|
|
75
|
-
"vite-plugin-dts": "
|
|
76
|
-
"vite-plugin-env-compatible": "
|
|
52
|
+
"@babel/core": "7.27.1",
|
|
53
|
+
"@babel/plugin-proposal-decorators": "7.27.1",
|
|
54
|
+
"@babel/plugin-transform-runtime": "7.27.1",
|
|
55
|
+
"@babel/preset-env": "7.27.1",
|
|
56
|
+
"@babel/preset-typescript": "7.27.1",
|
|
57
|
+
"@babel/runtime-corejs3": "7.27.1",
|
|
58
|
+
"@eslint/js": "9.25.1",
|
|
59
|
+
"@originjs/vite-plugin-commonjs": "1.0.3",
|
|
60
|
+
"@types/jest": "29.5.14",
|
|
61
|
+
"@typescript-eslint/eslint-plugin": "8.31.1",
|
|
62
|
+
"@typescript-eslint/parser": "8.31.1",
|
|
63
|
+
"babel-jest": "29.7.0",
|
|
64
|
+
"eslint": "9.25.1",
|
|
65
|
+
"eslint-config-prettier": "10.1.2",
|
|
66
|
+
"eslint-plugin-prettier": "5.2.6",
|
|
67
|
+
"globals": "16.0.0",
|
|
68
|
+
"jest": "29.7.0",
|
|
69
|
+
"npm-run-all": "4.1.5",
|
|
70
|
+
"rollup-plugin-visualizer": "5.14.0",
|
|
71
|
+
"svg-inline-loader": "0.8.2",
|
|
72
|
+
"typescript": "5.8.3",
|
|
73
|
+
"typescript-eslint": "8.31.1",
|
|
74
|
+
"vite": "6.3.4",
|
|
75
|
+
"vite-plugin-dts": "4.5.3",
|
|
76
|
+
"vite-plugin-env-compatible": "2.0.1",
|
|
77
77
|
"vite-plugin-html": "3.2.2",
|
|
78
|
-
"vite-plugin-svgo": "
|
|
78
|
+
"vite-plugin-svgo": "1.6.2"
|
|
79
79
|
},
|
|
80
80
|
"jest": {
|
|
81
81
|
"testRegex": "(/__tests__/.*|(\\.|/))spec\\.ts$",
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`structure data should merge Overlapping Intervals 1`] = `
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
[
|
|
5
|
+
{
|
|
6
6
|
"category": "STRUCTURE_COVERAGE",
|
|
7
7
|
"end": 0,
|
|
8
8
|
"start": 0,
|
|
9
|
-
"structures":
|
|
10
|
-
|
|
9
|
+
"structures": [
|
|
10
|
+
{
|
|
11
11
|
"description": "Method: X-ray. Resolution: 1.50 A. ",
|
|
12
12
|
"end": 0,
|
|
13
|
-
"source":
|
|
13
|
+
"source": {
|
|
14
14
|
"id": "1AAP",
|
|
15
15
|
"url": "http://www.ebi.ac.uk/pdbe-srv/view/entry/1AAP",
|
|
16
16
|
},
|
|
@@ -19,42 +19,42 @@ Array [
|
|
|
19
19
|
],
|
|
20
20
|
"type": "PDBE_COVER",
|
|
21
21
|
},
|
|
22
|
-
|
|
22
|
+
{
|
|
23
23
|
"category": "STRUCTURE_COVERAGE",
|
|
24
24
|
"end": 711,
|
|
25
25
|
"start": 672,
|
|
26
|
-
"structures":
|
|
27
|
-
|
|
26
|
+
"structures": [
|
|
27
|
+
{
|
|
28
28
|
"description": "Method: NMR. Chains: A=672-699. ",
|
|
29
29
|
"end": 699,
|
|
30
|
-
"source":
|
|
30
|
+
"source": {
|
|
31
31
|
"id": "1AMB",
|
|
32
32
|
"url": "http://www.ebi.ac.uk/pdbe-srv/view/entry/1AMB",
|
|
33
33
|
},
|
|
34
34
|
"start": 672,
|
|
35
35
|
},
|
|
36
|
-
|
|
36
|
+
{
|
|
37
37
|
"description": "Method: NMR. Chains: A=672-699. ",
|
|
38
38
|
"end": 699,
|
|
39
|
-
"source":
|
|
39
|
+
"source": {
|
|
40
40
|
"id": "1AMC",
|
|
41
41
|
"url": "http://www.ebi.ac.uk/pdbe-srv/view/entry/1AMC",
|
|
42
42
|
},
|
|
43
43
|
"start": 672,
|
|
44
44
|
},
|
|
45
|
-
|
|
45
|
+
{
|
|
46
46
|
"description": "Method: NMR. Chains: A=672-711. ",
|
|
47
47
|
"end": 711,
|
|
48
|
-
"source":
|
|
48
|
+
"source": {
|
|
49
49
|
"id": "1AML",
|
|
50
50
|
"url": "http://www.ebi.ac.uk/pdbe-srv/view/entry/1AML",
|
|
51
51
|
},
|
|
52
52
|
"start": 672,
|
|
53
53
|
},
|
|
54
|
-
|
|
54
|
+
{
|
|
55
55
|
"description": "Method: NMR. Chains: A=672-711. ",
|
|
56
56
|
"end": 711,
|
|
57
|
-
"source":
|
|
57
|
+
"source": {
|
|
58
58
|
"id": "1BA4",
|
|
59
59
|
"url": "http://www.ebi.ac.uk/pdbe-srv/view/entry/1BA4",
|
|
60
60
|
},
|
|
@@ -67,16 +67,16 @@ Array [
|
|
|
67
67
|
`;
|
|
68
68
|
|
|
69
69
|
exports[`structure data should turn structures into features 1`] = `
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
[
|
|
71
|
+
{
|
|
72
72
|
"category": "STRUCTURE_COVERAGE",
|
|
73
73
|
"end": 0,
|
|
74
74
|
"start": 0,
|
|
75
|
-
"structures":
|
|
76
|
-
|
|
75
|
+
"structures": [
|
|
76
|
+
{
|
|
77
77
|
"description": "Method: X-ray. Resolution: 1.50 A. ",
|
|
78
78
|
"end": 0,
|
|
79
|
-
"source":
|
|
79
|
+
"source": {
|
|
80
80
|
"id": "1AAP",
|
|
81
81
|
"url": "http://www.ebi.ac.uk/pdbe-srv/view/entry/1AAP",
|
|
82
82
|
},
|
|
@@ -85,15 +85,15 @@ Array [
|
|
|
85
85
|
],
|
|
86
86
|
"type": "PDBE_COVER",
|
|
87
87
|
},
|
|
88
|
-
|
|
88
|
+
{
|
|
89
89
|
"category": "STRUCTURE_COVERAGE",
|
|
90
90
|
"end": 699,
|
|
91
91
|
"start": 672,
|
|
92
|
-
"structures":
|
|
93
|
-
|
|
92
|
+
"structures": [
|
|
93
|
+
{
|
|
94
94
|
"description": "Method: NMR. Chains: A=672-699. ",
|
|
95
95
|
"end": 699,
|
|
96
|
-
"source":
|
|
96
|
+
"source": {
|
|
97
97
|
"id": "1AMB",
|
|
98
98
|
"url": "http://www.ebi.ac.uk/pdbe-srv/view/entry/1AMB",
|
|
99
99
|
},
|
|
@@ -102,15 +102,15 @@ Array [
|
|
|
102
102
|
],
|
|
103
103
|
"type": "PDBE_COVER",
|
|
104
104
|
},
|
|
105
|
-
|
|
105
|
+
{
|
|
106
106
|
"category": "STRUCTURE_COVERAGE",
|
|
107
107
|
"end": 699,
|
|
108
108
|
"start": 672,
|
|
109
|
-
"structures":
|
|
110
|
-
|
|
109
|
+
"structures": [
|
|
110
|
+
{
|
|
111
111
|
"description": "Method: NMR. Chains: A=672-699. ",
|
|
112
112
|
"end": 699,
|
|
113
|
-
"source":
|
|
113
|
+
"source": {
|
|
114
114
|
"id": "1AMC",
|
|
115
115
|
"url": "http://www.ebi.ac.uk/pdbe-srv/view/entry/1AMC",
|
|
116
116
|
},
|
|
@@ -119,15 +119,15 @@ Array [
|
|
|
119
119
|
],
|
|
120
120
|
"type": "PDBE_COVER",
|
|
121
121
|
},
|
|
122
|
-
|
|
122
|
+
{
|
|
123
123
|
"category": "STRUCTURE_COVERAGE",
|
|
124
124
|
"end": 711,
|
|
125
125
|
"start": 672,
|
|
126
|
-
"structures":
|
|
127
|
-
|
|
126
|
+
"structures": [
|
|
127
|
+
{
|
|
128
128
|
"description": "Method: NMR. Chains: A=672-711. ",
|
|
129
129
|
"end": 711,
|
|
130
|
-
"source":
|
|
130
|
+
"source": {
|
|
131
131
|
"id": "1AML",
|
|
132
132
|
"url": "http://www.ebi.ac.uk/pdbe-srv/view/entry/1AML",
|
|
133
133
|
},
|
|
@@ -136,15 +136,15 @@ Array [
|
|
|
136
136
|
],
|
|
137
137
|
"type": "PDBE_COVER",
|
|
138
138
|
},
|
|
139
|
-
|
|
139
|
+
{
|
|
140
140
|
"category": "STRUCTURE_COVERAGE",
|
|
141
141
|
"end": 711,
|
|
142
142
|
"start": 672,
|
|
143
|
-
"structures":
|
|
144
|
-
|
|
143
|
+
"structures": [
|
|
144
|
+
{
|
|
145
145
|
"description": "Method: NMR. Chains: A=672-711. ",
|
|
146
146
|
"end": 711,
|
|
147
|
-
"source":
|
|
147
|
+
"source": {
|
|
148
148
|
"id": "1BA4",
|
|
149
149
|
"url": "http://www.ebi.ac.uk/pdbe-srv/view/entry/1BA4",
|
|
150
150
|
},
|
|
@@ -24,9 +24,9 @@ const transformData = (data: InterProProteinSearch): TransformedInterPro => {
|
|
|
24
24
|
|
|
25
25
|
const end = proteins[0].entry_protein_locations
|
|
26
26
|
? Math.max(
|
|
27
|
-
...proteins[0].entry_protein_locations?.map((location) =>
|
|
27
|
+
...(proteins[0].entry_protein_locations?.map((location) =>
|
|
28
28
|
Math.max(...location.fragments.map((fragment) => fragment.end))
|
|
29
|
-
)
|
|
29
|
+
) || [])
|
|
30
30
|
)
|
|
31
31
|
: '';
|
|
32
32
|
|
|
@@ -43,7 +43,7 @@ const transformData = (data: InterProProteinSearch): TransformedInterPro => {
|
|
|
43
43
|
};
|
|
44
44
|
});
|
|
45
45
|
} catch (error) {
|
|
46
|
-
throw new Error(
|
|
46
|
+
throw new Error(`Failed transforming the data: ${error}`);
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
|
|
@@ -12,12 +12,10 @@ const transformData = (data) => {
|
|
|
12
12
|
for (const { start, association } of variants) {
|
|
13
13
|
const index = +start;
|
|
14
14
|
// skip if the variant is outside of bounds
|
|
15
|
-
// eslint-disable-next-line no-continue
|
|
16
15
|
if (index < 1 || index > data.sequence.length) continue;
|
|
17
16
|
|
|
18
17
|
total[index] += 1;
|
|
19
18
|
|
|
20
|
-
// eslint-disable-next-line no-continue
|
|
21
19
|
if (!association) continue;
|
|
22
20
|
const hasDisease = association.find(
|
|
23
21
|
(association) => association.disease === true
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { LitElement, html, svg, TemplateResult, css, nothing } from 'lit';
|
|
2
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
3
2
|
import { customElement } from 'lit/decorators.js';
|
|
4
3
|
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
|
|
5
4
|
import NightingaleStructure, {
|
|
@@ -338,7 +337,9 @@ class ProtvistaUniprotStructure extends LitElement {
|
|
|
338
337
|
@click=${(e) => this.toggleColorTheme(e)}
|
|
339
338
|
disabled=${this.alphamissenseAvailable ? nothing : 'true'}
|
|
340
339
|
/>
|
|
341
|
-
<label
|
|
340
|
+
<label
|
|
341
|
+
for="alphamissense"
|
|
342
|
+
title=${this.alphamissenseAvailable
|
|
342
343
|
? ''
|
|
343
344
|
: 'Color by pathogenicity is disabled as there are no AlphaMissense predictions available for this model'}
|
|
344
345
|
>Pathogenicity
|
package/src/protvista-uniprot.ts
CHANGED