@sjcrh/proteinpaint-server 2.126.0 → 2.126.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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sjcrh/proteinpaint-server",
|
|
3
|
-
"version": "2.126.
|
|
3
|
+
"version": "2.126.2",
|
|
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,10 +62,10 @@
|
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@sjcrh/augen": "2.121.0",
|
|
64
64
|
"@sjcrh/proteinpaint-python": "2.118.0",
|
|
65
|
-
"@sjcrh/proteinpaint-r": "2.126.
|
|
66
|
-
"@sjcrh/proteinpaint-rust": "2.126.
|
|
65
|
+
"@sjcrh/proteinpaint-r": "2.126.2",
|
|
66
|
+
"@sjcrh/proteinpaint-rust": "2.126.2",
|
|
67
67
|
"@sjcrh/proteinpaint-shared": "2.126.0",
|
|
68
|
-
"@sjcrh/proteinpaint-types": "2.126.
|
|
68
|
+
"@sjcrh/proteinpaint-types": "2.126.1",
|
|
69
69
|
"@types/express": "^5.0.0",
|
|
70
70
|
"@types/express-session": "^1.18.1",
|
|
71
71
|
"better-sqlite3": "^9.4.1",
|
|
@@ -3,7 +3,6 @@ import fs from "fs";
|
|
|
3
3
|
import path from "path";
|
|
4
4
|
import serverconfig from "#src/serverconfig.js";
|
|
5
5
|
import { run_python } from "@sjcrh/proteinpaint-python";
|
|
6
|
-
import { run_rust } from "@sjcrh/proteinpaint-rust";
|
|
7
6
|
import { mayLog } from "#src/helpers.ts";
|
|
8
7
|
const api = {
|
|
9
8
|
endpoint: "genesetEnrichment",
|
|
@@ -55,21 +54,14 @@ async function run_genesetEnrichment_analysis(q, genomes) {
|
|
|
55
54
|
db: genomes[q.genome].termdbs.msigdb.cohort.db.connection.name,
|
|
56
55
|
// For now msigdb has been added, but later databases other than msigdb may be used
|
|
57
56
|
geneset_group: q.geneSetGroup,
|
|
57
|
+
cachedir: cachedir_gsea,
|
|
58
|
+
geneset_name: q.geneset_name,
|
|
59
|
+
pickle_file: q.pickle_file,
|
|
60
|
+
num_permutations: q.num_permutations,
|
|
58
61
|
genedb: path.join(serverconfig.tpmasterdir, genomes[q.genome].genedb.dbfile),
|
|
59
62
|
filter_non_coding_genes: q.filter_non_coding_genes
|
|
60
63
|
};
|
|
61
|
-
|
|
62
|
-
if (q.method == "blitzgsea") {
|
|
63
|
-
genesetenrichment_input.cachedir = cachedir_gsea;
|
|
64
|
-
genesetenrichment_input.pickle_file = q.pickle_file;
|
|
65
|
-
genesetenrichment_input.geneset_name = q.geneset_name;
|
|
66
|
-
genesetenrichment_input.num_permutations = q.num_permutations;
|
|
67
|
-
gsea_output = await run_python("gsea.py", "/" + JSON.stringify(genesetenrichment_input));
|
|
68
|
-
} else if (q.method == "cerno") {
|
|
69
|
-
gsea_output = await run_rust("cerno", JSON.stringify(genesetenrichment_input));
|
|
70
|
-
} else {
|
|
71
|
-
throw "Unknown method:" + q.method;
|
|
72
|
-
}
|
|
64
|
+
const gsea_output = await run_python("gsea.py", "/" + JSON.stringify(genesetenrichment_input));
|
|
73
65
|
let result;
|
|
74
66
|
let data_found = false;
|
|
75
67
|
let image_found = false;
|
package/routes/termdb.cluster.js
CHANGED
|
@@ -36,7 +36,7 @@ function init({ genomes }) {
|
|
|
36
36
|
const ds = g.datasets[q.dslabel];
|
|
37
37
|
if (!ds)
|
|
38
38
|
throw "invalid dataset name";
|
|
39
|
-
if (!ds.__gdc?.doneCaching)
|
|
39
|
+
if (ds.label === "GDC" && !ds.__gdc?.doneCaching)
|
|
40
40
|
throw "The server has not finished caching the case IDs: try again in about 2 minutes.";
|
|
41
41
|
if ([TermTypes.GENE_EXPRESSION, TermTypes.METABOLITE_INTENSITY, NUMERIC_DICTIONARY_TERM].includes(q.dataType)) {
|
|
42
42
|
if (!ds.queries?.[q.dataType] && q.dataType !== NUMERIC_DICTIONARY_TERM)
|
|
@@ -179,7 +179,7 @@ function gdcValidateQuery(ds, genome) {
|
|
|
179
179
|
);
|
|
180
180
|
return serverconfig.features.gdcGenes;
|
|
181
181
|
}
|
|
182
|
-
if (!ds.__gdc?.doneCaching) {
|
|
182
|
+
if (ds.label === "GDC" && !ds.__gdc?.doneCaching) {
|
|
183
183
|
throw "The server has not finished caching the case IDs: try again in about 2 minutes.";
|
|
184
184
|
}
|
|
185
185
|
const { host, headers } = ds.getHostHeaders(q);
|