@sjcrh/proteinpaint-server 2.214.0 → 2.216.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 +8 -8
- package/routes/profile.impressionDistribution.js +14 -12
- package/src/app.js +2435 -3001
- package/src/serverconfig.js +30 -1
- package/routes/brainImaging.js +0 -154
- package/routes/brainImagingSamples.js +0 -71
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sjcrh/proteinpaint-server",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.216.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",
|
|
@@ -57,12 +57,12 @@
|
|
|
57
57
|
"typescript": "^5.6.3"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@sjcrh/augen": "2.
|
|
61
|
-
"@sjcrh/proteinpaint-python": "2.
|
|
62
|
-
"@sjcrh/proteinpaint-r": "2.
|
|
63
|
-
"@sjcrh/proteinpaint-rust": "2.
|
|
64
|
-
"@sjcrh/proteinpaint-shared": "2.
|
|
65
|
-
"@sjcrh/proteinpaint-types": "2.
|
|
60
|
+
"@sjcrh/augen": "2.216.0",
|
|
61
|
+
"@sjcrh/proteinpaint-python": "2.216.0",
|
|
62
|
+
"@sjcrh/proteinpaint-r": "2.216.0",
|
|
63
|
+
"@sjcrh/proteinpaint-rust": "2.215.0",
|
|
64
|
+
"@sjcrh/proteinpaint-shared": "2.216.0",
|
|
65
|
+
"@sjcrh/proteinpaint-types": "2.216.0",
|
|
66
66
|
"@types/express": "^5.0.0",
|
|
67
67
|
"@types/express-session": "^1.18.1",
|
|
68
68
|
"better-sqlite3": "^12.4.1",
|
|
@@ -123,5 +123,5 @@
|
|
|
123
123
|
]
|
|
124
124
|
]
|
|
125
125
|
},
|
|
126
|
-
"_buildTime": "2026-
|
|
126
|
+
"_buildTime": "2026-10-03T02:08:16Z"
|
|
127
127
|
}
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
import { getData } from "../src/termdb.matrix.js";
|
|
2
|
+
import { genomes } from "../src/initGenomesDs.js";
|
|
3
|
+
import { hasProfileDs } from "../src/routes/profile.barchart2.ts";
|
|
4
|
+
const payload = {
|
|
5
|
+
// only set up when the profile ds is loaded, see profile.barchart2.ts
|
|
6
|
+
get init() {
|
|
7
|
+
return hasProfileDs(genomes) ? init : null;
|
|
8
|
+
},
|
|
9
|
+
request: { typeId: "ProfileImpressionDistributionRequest" },
|
|
10
|
+
response: { typeId: "ProfileImpressionDistributionResponse" }
|
|
11
|
+
};
|
|
2
12
|
const api = {
|
|
3
13
|
endpoint: "termdb/profileImpressionDistribution",
|
|
4
14
|
methods: {
|
|
5
|
-
get:
|
|
6
|
-
|
|
7
|
-
request: { typeId: "ProfileImpressionDistributionRequest" },
|
|
8
|
-
response: { typeId: "ProfileImpressionDistributionResponse" }
|
|
9
|
-
},
|
|
10
|
-
post: {
|
|
11
|
-
init,
|
|
12
|
-
request: { typeId: "ProfileImpressionDistributionRequest" },
|
|
13
|
-
response: { typeId: "ProfileImpressionDistributionResponse" }
|
|
14
|
-
}
|
|
15
|
+
get: payload,
|
|
16
|
+
post: payload
|
|
15
17
|
}
|
|
16
18
|
};
|
|
17
|
-
function init({ genomes }) {
|
|
19
|
+
function init({ genomes: genomes2 }) {
|
|
18
20
|
return async (req, res) => {
|
|
19
21
|
try {
|
|
20
|
-
const g =
|
|
22
|
+
const g = genomes2[req.query.genome];
|
|
21
23
|
if (!g) throw "invalid genome name";
|
|
22
24
|
const ds = g.datasets?.[req.query.dslabel];
|
|
23
25
|
const result = await getDistribution(req.query, ds);
|