@sjcrh/proteinpaint-server 2.210.1 → 2.211.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/dataset/termdb.test.js +7 -0
- package/package.json +3 -3
- package/routes/termdb.proteome.js +1 -1
- package/src/app.js +1322 -1460
package/dataset/termdb.test.js
CHANGED
|
@@ -74,6 +74,13 @@ function termdb_test_default() {
|
|
|
74
74
|
allowedTermTypes: ["geneVariant"],
|
|
75
75
|
displaySampleIds: () => true,
|
|
76
76
|
// allow to display sample-level data
|
|
77
|
+
/* the hg38-test gene db is a stub of ~11 genes, while the expression matrix of this
|
|
78
|
+
ds carries the real gene universe (topVariablyExpressedGenes answers ISG15, MXRA8, ...).
|
|
79
|
+
Without this, every one of those genes would be rejected as unknown to the genome before
|
|
80
|
+
its data is read -- see geneRefValidation.ts, which validates against the gene db.
|
|
81
|
+
geneVariant and isoformExpression stay validated: their fixtures are genes/isoforms that
|
|
82
|
+
the stub gene db does have */
|
|
83
|
+
skipGeneNameValidation: ["geneExpression"],
|
|
77
84
|
timeUnit: "years",
|
|
78
85
|
ageEndOffset: 274e-5,
|
|
79
86
|
// number of years to offset ending age of patients
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sjcrh/proteinpaint-server",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.211.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",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@sjcrh/proteinpaint-r": "2.207.1",
|
|
62
62
|
"@sjcrh/proteinpaint-rust": "2.209.0",
|
|
63
63
|
"@sjcrh/proteinpaint-shared": "2.210.1",
|
|
64
|
-
"@sjcrh/proteinpaint-types": "2.
|
|
64
|
+
"@sjcrh/proteinpaint-types": "2.211.0",
|
|
65
65
|
"@types/express": "^5.0.0",
|
|
66
66
|
"@types/express-session": "^1.18.1",
|
|
67
67
|
"better-sqlite3": "^12.4.1",
|
|
@@ -121,5 +121,5 @@
|
|
|
121
121
|
]
|
|
122
122
|
]
|
|
123
123
|
},
|
|
124
|
-
"_buildTime": "2026-09-
|
|
124
|
+
"_buildTime": "2026-09-24T02:12:34Z"
|
|
125
125
|
}
|
|
@@ -180,7 +180,7 @@ async function validate_query_proteome(ds) {
|
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
|
-
const geneIndexHint = q.db.prepare(
|
|
183
|
+
const geneIndexHint = q.db.prepare("SELECT 1 FROM sqlite_master WHERE type = ? AND name = ?").get("index", "proteome_abundance_gene") ? " INDEXED BY proteome_abundance_gene" : "";
|
|
184
184
|
q.find = async (arg) => {
|
|
185
185
|
const proteins = arg?.proteins;
|
|
186
186
|
if (!Array.isArray(proteins) || proteins.length == 0) throw "queries.proteome.find arg.proteins[] missing";
|