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/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.1",
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.4.0",
33
- "@nightingale-elements/nightingale-filter": "5.4.0",
34
- "@nightingale-elements/nightingale-interpro-track": "5.5.0",
35
- "@nightingale-elements/nightingale-linegraph-track": "5.4.0",
36
- "@nightingale-elements/nightingale-manager": "5.4.0",
37
- "@nightingale-elements/nightingale-navigation": "5.4.0",
38
- "@nightingale-elements/nightingale-sequence": "5.4.0",
39
- "@nightingale-elements/nightingale-sequence-heatmap": "5.4.0",
40
- "@nightingale-elements/nightingale-structure": "5.4.0",
41
- "@nightingale-elements/nightingale-track-canvas": "5.5.0",
42
- "@nightingale-elements/nightingale-variation": "5.5.0",
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.13.0",
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": "4.0.1"
49
+ "url-join": "5.0.0"
50
50
  },
51
51
  "devDependencies": {
52
- "@babel/core": "^7.14.3",
53
- "@babel/plugin-proposal-decorators": "^7.25.9",
54
- "@babel/plugin-transform-runtime": "^7.14.3",
55
- "@babel/preset-env": "^7.14.2",
56
- "@babel/preset-typescript": "^7.13.0",
57
- "@babel/runtime-corejs3": "^7.14.0",
58
- "@originjs/vite-plugin-commonjs": "^1.0.1",
59
- "@types/jest": "^29.5.14",
60
- "@types/url-join": "^4.0.0",
61
- "@typescript-eslint/eslint-plugin": "4.26.1",
62
- "@typescript-eslint/parser": "4.26.1",
63
- "babel-jest": "^29.7.0",
64
- "babel-loader": "^9.2.1",
65
- "concurrently": "^4.1.0",
66
- "css-loader": "^5.2.6",
67
- "eslint": "^7.27.0",
68
- "eslint-config-prettier": "^8.3.0",
69
- "jest": "^26.4.2",
70
- "npm-run-all": "^4.1.5",
71
- "style-loader": "^2.0.0",
72
- "svg-inline-loader": "^0.8.0",
73
- "typescript": "^5.6.3",
74
- "vite": "^6.0.7",
75
- "vite-plugin-dts": "^4.4.0",
76
- "vite-plugin-env-compatible": "^2.0.1",
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": "^1.6.2"
78
+ "vite-plugin-svgo": "1.6.2"
79
79
  },
80
80
  "jest": {
81
81
  "testRegex": "(/__tests__/.*|(\\.|/))spec\\.ts$",
@@ -0,0 +1,3 @@
1
+ {
2
+ "window.title": "${rootPath}${separator}[new-ptm-builds]"
3
+ }
@@ -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
- Array [
5
- Object {
4
+ [
5
+ {
6
6
  "category": "STRUCTURE_COVERAGE",
7
7
  "end": 0,
8
8
  "start": 0,
9
- "structures": Array [
10
- Object {
9
+ "structures": [
10
+ {
11
11
  "description": "Method: X-ray. Resolution: 1.50 A. ",
12
12
  "end": 0,
13
- "source": Object {
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
- Object {
22
+ {
23
23
  "category": "STRUCTURE_COVERAGE",
24
24
  "end": 711,
25
25
  "start": 672,
26
- "structures": Array [
27
- Object {
26
+ "structures": [
27
+ {
28
28
  "description": "Method: NMR. Chains: A=672-699. ",
29
29
  "end": 699,
30
- "source": Object {
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
- Object {
36
+ {
37
37
  "description": "Method: NMR. Chains: A=672-699. ",
38
38
  "end": 699,
39
- "source": Object {
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
- Object {
45
+ {
46
46
  "description": "Method: NMR. Chains: A=672-711. ",
47
47
  "end": 711,
48
- "source": Object {
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
- Object {
54
+ {
55
55
  "description": "Method: NMR. Chains: A=672-711. ",
56
56
  "end": 711,
57
- "source": Object {
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
- Array [
71
- Object {
70
+ [
71
+ {
72
72
  "category": "STRUCTURE_COVERAGE",
73
73
  "end": 0,
74
74
  "start": 0,
75
- "structures": Array [
76
- Object {
75
+ "structures": [
76
+ {
77
77
  "description": "Method: X-ray. Resolution: 1.50 A. ",
78
78
  "end": 0,
79
- "source": Object {
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
- Object {
88
+ {
89
89
  "category": "STRUCTURE_COVERAGE",
90
90
  "end": 699,
91
91
  "start": 672,
92
- "structures": Array [
93
- Object {
92
+ "structures": [
93
+ {
94
94
  "description": "Method: NMR. Chains: A=672-699. ",
95
95
  "end": 699,
96
- "source": Object {
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
- Object {
105
+ {
106
106
  "category": "STRUCTURE_COVERAGE",
107
107
  "end": 699,
108
108
  "start": 672,
109
- "structures": Array [
110
- Object {
109
+ "structures": [
110
+ {
111
111
  "description": "Method: NMR. Chains: A=672-699. ",
112
112
  "end": 699,
113
- "source": Object {
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
- Object {
122
+ {
123
123
  "category": "STRUCTURE_COVERAGE",
124
124
  "end": 711,
125
125
  "start": 672,
126
- "structures": Array [
127
- Object {
126
+ "structures": [
127
+ {
128
128
  "description": "Method: NMR. Chains: A=672-711. ",
129
129
  "end": 711,
130
- "source": Object {
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
- Object {
139
+ {
140
140
  "category": "STRUCTURE_COVERAGE",
141
141
  "end": 711,
142
142
  "start": 672,
143
- "structures": Array [
144
- Object {
143
+ "structures": [
144
+ {
145
145
  "description": "Method: NMR. Chains: A=672-711. ",
146
146
  "end": 711,
147
- "source": Object {
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('Failed transforming the data');
46
+ throw new Error(`Failed transforming the data: ${error}`);
47
47
  }
48
48
  };
49
49
 
@@ -110,7 +110,6 @@ const transformData = (data: ProteomicsPtm) => {
110
110
  ptm.position
111
111
  } - 1`
112
112
  );
113
- // eslint-disable-next-line no-continue
114
113
  continue;
115
114
  }
116
115
  const aa = feature.peptide[ptm.position - 1];
@@ -95,7 +95,6 @@ const transformData = (data) => {
95
95
  transformedData = mergeOverlappingIntervals(allFeatureStructures);
96
96
 
97
97
  transformedData.forEach((feature) => {
98
- /* eslint-disable no-param-reassign */
99
98
  feature.tooltipContent = formatTooltip(feature);
100
99
  });
101
100
  }
@@ -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 for="alphamissense" title=${this.alphamissenseAvailable
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
@@ -1,5 +1,4 @@
1
1
  import { LitElement, html, svg } 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 { frame } from 'timing-functions';