@sjcrh/proteinpaint-server 2.183.0 → 2.183.2-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.183.0",
|
|
3
|
+
"version": "2.183.2-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",
|
|
@@ -62,11 +62,11 @@
|
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"@sjcrh/augen": "2.181.1",
|
|
65
|
-
"@sjcrh/proteinpaint-python": "2.183.0",
|
|
65
|
+
"@sjcrh/proteinpaint-python": "2.183.2-0",
|
|
66
66
|
"@sjcrh/proteinpaint-r": "2.181.0",
|
|
67
67
|
"@sjcrh/proteinpaint-rust": "2.183.0",
|
|
68
68
|
"@sjcrh/proteinpaint-shared": "2.183.0",
|
|
69
|
-
"@sjcrh/proteinpaint-types": "2.183.
|
|
69
|
+
"@sjcrh/proteinpaint-types": "2.183.1",
|
|
70
70
|
"@types/express": "^5.0.0",
|
|
71
71
|
"@types/express-session": "^1.18.1",
|
|
72
72
|
"better-sqlite3": "^12.4.1",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { termdbTopVariablyExpressedGenesPayload } from "#types/checkers";
|
|
2
2
|
import { run_rust } from "@sjcrh/proteinpaint-rust";
|
|
3
3
|
import serverconfig from "#src/serverconfig.js";
|
|
4
|
-
import {
|
|
4
|
+
import { mayLimitSamples } from "#src/mds3.filter.js";
|
|
5
5
|
import { makeFilter } from "#src/mds3.gdc.js";
|
|
6
6
|
import { cachedFetch } from "#src/utils.js";
|
|
7
7
|
import { joinUrl } from "#shared/joinUrl.js";
|
|
@@ -58,14 +58,13 @@ function nativeValidateQuery(ds) {
|
|
|
58
58
|
addTopVEarg(ds.queries.topVariablyExpressedGenes);
|
|
59
59
|
ds.queries.topVariablyExpressedGenes.getGenes = async (q) => {
|
|
60
60
|
const samples = [];
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
61
|
+
const param = { filter: q.filter, filter0: q.filter0 };
|
|
62
|
+
const limitSamples = await mayLimitSamples(param, gE.samples, ds);
|
|
63
|
+
if (limitSamples) {
|
|
64
|
+
for (const sid of limitSamples) {
|
|
65
|
+
const n = ds.cohort.termdb.q.id2sampleName(sid);
|
|
66
|
+
if (!n) throw "sample id cannot convert to string name";
|
|
67
|
+
samples.push(n);
|
|
69
68
|
}
|
|
70
69
|
} else {
|
|
71
70
|
for (const i of gE.samples) {
|