@sjcrh/proteinpaint-server 2.133.5 → 2.134.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sjcrh/proteinpaint-server",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.134.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "a genomics visualization tool for exploring a cohort's genotype and phenotype data",
|
|
6
6
|
"main": "src/app.js",
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"@sjcrh/proteinpaint-python": "2.133.0",
|
|
65
65
|
"@sjcrh/proteinpaint-r": "2.130.0",
|
|
66
66
|
"@sjcrh/proteinpaint-rust": "2.133.0",
|
|
67
|
-
"@sjcrh/proteinpaint-shared": "2.
|
|
68
|
-
"@sjcrh/proteinpaint-types": "2.
|
|
67
|
+
"@sjcrh/proteinpaint-shared": "2.134.0",
|
|
68
|
+
"@sjcrh/proteinpaint-types": "2.134.0",
|
|
69
69
|
"@types/express": "^5.0.0",
|
|
70
70
|
"@types/express-session": "^1.18.1",
|
|
71
71
|
"better-sqlite3": "^9.4.1",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FilterTermValuesPayload } from "#types/checkers";
|
|
2
2
|
import { getData, getSamplesPerFilter } from "../src/termdb.matrix.js";
|
|
3
3
|
const api = {
|
|
4
|
-
endpoint: "
|
|
4
|
+
endpoint: "filterTermValues",
|
|
5
5
|
methods: {
|
|
6
6
|
get: {
|
|
7
|
-
...
|
|
7
|
+
...FilterTermValuesPayload,
|
|
8
8
|
init
|
|
9
9
|
},
|
|
10
10
|
post: {
|
|
11
|
-
...
|
|
11
|
+
...FilterTermValuesPayload,
|
|
12
12
|
init
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -38,9 +38,11 @@ function getList(samplesPerFilter, filtersData, tw) {
|
|
|
38
38
|
const sampleValues = Array.from(new Set(data.map((sample) => sample[tw.$id]?.value)));
|
|
39
39
|
for (const value of values) {
|
|
40
40
|
value.value = value.label;
|
|
41
|
-
|
|
41
|
+
const label = value.label;
|
|
42
|
+
value.disabled = !sampleValues.includes(label);
|
|
42
43
|
}
|
|
43
44
|
values.unshift({ label: "", value: "" });
|
|
45
|
+
values.sort((a, b) => a.label.localeCompare(b.label));
|
|
44
46
|
return values;
|
|
45
47
|
}
|
|
46
48
|
async function getFilters(query, ds, genome, res) {
|