@sjcrh/proteinpaint-server 2.141.0 → 2.142.1
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 +4 -4
- package/routes/termdb.topVariablyExpressedGenes.js +6 -4
- package/src/app.js +15 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sjcrh/proteinpaint-server",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.142.1",
|
|
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,9 +62,9 @@
|
|
|
62
62
|
"@sjcrh/augen": "2.136.0",
|
|
63
63
|
"@sjcrh/proteinpaint-python": "2.139.1",
|
|
64
64
|
"@sjcrh/proteinpaint-r": "2.137.2-0",
|
|
65
|
-
"@sjcrh/proteinpaint-rust": "2.
|
|
66
|
-
"@sjcrh/proteinpaint-shared": "2.
|
|
67
|
-
"@sjcrh/proteinpaint-types": "2.
|
|
65
|
+
"@sjcrh/proteinpaint-rust": "2.142.0",
|
|
66
|
+
"@sjcrh/proteinpaint-shared": "2.142.1",
|
|
67
|
+
"@sjcrh/proteinpaint-types": "2.142.0",
|
|
68
68
|
"@types/express": "^5.0.0",
|
|
69
69
|
"@types/express-session": "^1.18.1",
|
|
70
70
|
"better-sqlite3": "^9.4.1",
|
|
@@ -83,8 +83,7 @@ function nativeValidateQuery(ds) {
|
|
|
83
83
|
samples.push(n);
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
|
|
87
|
-
return genes;
|
|
86
|
+
return await computeGenes4nativeDs(q, gE, samples);
|
|
88
87
|
};
|
|
89
88
|
}
|
|
90
89
|
function addTopVEarg(q) {
|
|
@@ -146,9 +145,9 @@ function addTopVEarg(q) {
|
|
|
146
145
|
}
|
|
147
146
|
q.arguments = arglst;
|
|
148
147
|
}
|
|
149
|
-
async function computeGenes4nativeDs(q,
|
|
148
|
+
async function computeGenes4nativeDs(q, gE, samples) {
|
|
150
149
|
const input_json = {
|
|
151
|
-
input_file:
|
|
150
|
+
input_file: gE.file,
|
|
152
151
|
samples: samples.join(","),
|
|
153
152
|
filter_extreme_values: q.filter_extreme_values,
|
|
154
153
|
num_genes: q.maxGenes,
|
|
@@ -158,6 +157,9 @@ async function computeGenes4nativeDs(q, matrixFile, samples) {
|
|
|
158
157
|
input_json["min_count"] = q.min_count;
|
|
159
158
|
input_json["min_total_count"] = q.min_total_count;
|
|
160
159
|
}
|
|
160
|
+
if (gE.newformat) {
|
|
161
|
+
input_json["newformat"] = true;
|
|
162
|
+
}
|
|
161
163
|
const rust_output = await run_rust("topGeneByExpressionVariance", JSON.stringify(input_json));
|
|
162
164
|
const rust_output_list = rust_output.split("\n");
|
|
163
165
|
let output_json;
|