@sjcrh/proteinpaint-server 2.70.4-2 → 2.71.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 +14 -15
- package/package.json +1 -4
- package/routes/gdc.topMutatedGenes.js +1 -0
- package/routes/termdb.config.js +0 -5
- package/src/app.js +279 -692
- package/routes/sampletiaimages.js +0 -51
- package/routes/tiaimages.js +0 -83
- package/routes/tileserver.js +0 -40
package/dataset/termdb.test.js
CHANGED
|
@@ -194,39 +194,38 @@ var termdb_test_default = {
|
|
|
194
194
|
topVariablyExpressedGenes: { src: "native" }
|
|
195
195
|
},
|
|
196
196
|
assayAvailability: {
|
|
197
|
-
//
|
|
197
|
+
// term used below must be annotated on samples rather than patients(root). otherwise matrix will pull wrong samples for geneVariant term
|
|
198
198
|
byDt: {
|
|
199
199
|
// snvindel, differentiating sample origin
|
|
200
200
|
1: {
|
|
201
201
|
byOrigin: {
|
|
202
202
|
germline: {
|
|
203
|
-
term_id: "
|
|
203
|
+
term_id: "assayavailability_germline",
|
|
204
204
|
label: "Germline",
|
|
205
205
|
// human readable label of this origin
|
|
206
|
-
yes: { value: ["
|
|
207
|
-
no: { value: ["
|
|
206
|
+
yes: { value: ["1"] },
|
|
207
|
+
no: { value: ["2"] }
|
|
208
208
|
},
|
|
209
209
|
somatic: {
|
|
210
|
-
term_id: "
|
|
210
|
+
term_id: "wgs_curated",
|
|
211
211
|
label: "Somatic",
|
|
212
|
-
yes: { value: ["
|
|
213
|
-
no: { value: ["
|
|
212
|
+
yes: { value: ["1"] },
|
|
213
|
+
no: { value: ["0"] }
|
|
214
|
+
// the category doesn't exist in termdb but is still supplied since somatic.no{} is required
|
|
214
215
|
}
|
|
215
216
|
}
|
|
216
217
|
},
|
|
217
218
|
// fusion
|
|
218
219
|
2: {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
no: { value: ["Asian Ancestry", "Multi-Ancestry-Admixed"] }
|
|
220
|
+
term_id: "assayavailability_fusion",
|
|
221
|
+
yes: { value: ["1"] },
|
|
222
|
+
no: { value: ["2"] }
|
|
223
223
|
},
|
|
224
224
|
// cnv
|
|
225
225
|
4: {
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
no: { value: ["Asian Ancestry", "Multi-Ancestry-Admixed"] }
|
|
226
|
+
term_id: "assayavailability_cnv",
|
|
227
|
+
yes: { value: ["1"] },
|
|
228
|
+
no: { value: ["2"] }
|
|
230
229
|
}
|
|
231
230
|
}
|
|
232
231
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sjcrh/proteinpaint-server",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.71.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",
|
|
@@ -44,7 +44,6 @@
|
|
|
44
44
|
"@babel/preset-typescript": "^7.21.4",
|
|
45
45
|
"@babel/register": "^7.14.5",
|
|
46
46
|
"@types/node": "^20.11.24",
|
|
47
|
-
"@types/qs": "^6.9.15",
|
|
48
47
|
"@typescript-eslint/eslint-plugin": "^5.60.0",
|
|
49
48
|
"babel-loader": "^8.2.2",
|
|
50
49
|
"esbuild": "^0.19.12",
|
|
@@ -63,7 +62,6 @@
|
|
|
63
62
|
"dependencies": {
|
|
64
63
|
"@sjcrh/augen": "2.46.0",
|
|
65
64
|
"@sjcrh/proteinpaint-rust": "2.61.1",
|
|
66
|
-
"axios": "^1.7.2",
|
|
67
65
|
"better-sqlite3": "^9.4.1",
|
|
68
66
|
"body-parser": "^1.15.2",
|
|
69
67
|
"canvas": "~2.11.2",
|
|
@@ -83,7 +81,6 @@
|
|
|
83
81
|
"minimatch": "^3.1.2",
|
|
84
82
|
"node-fetch": "^2.6.1",
|
|
85
83
|
"partjson": "^0.58.2",
|
|
86
|
-
"qs": "^6.12.3",
|
|
87
84
|
"tiny-async-pool": "^1.2.0",
|
|
88
85
|
"typedoc-plugin-missing-exports": "^2.0.1"
|
|
89
86
|
},
|
|
@@ -218,6 +218,7 @@ const queryV2 = {
|
|
|
218
218
|
}
|
|
219
219
|
};
|
|
220
220
|
if (q.filter0) {
|
|
221
|
+
variables.ssmCase.content.push(JSON.parse(JSON.stringify(q.filter0)));
|
|
221
222
|
variables.caseFilters.content.push(JSON.parse(JSON.stringify(q.filter0)));
|
|
222
223
|
variables.geneCaseFilter.content.push(JSON.parse(JSON.stringify(q.filter0)));
|
|
223
224
|
variables.cnvLossFilters.content.push(JSON.parse(JSON.stringify(q.filter0)));
|
package/routes/termdb.config.js
CHANGED
|
@@ -182,11 +182,6 @@ function addNonDictionaryQueries(c, ds, genome) {
|
|
|
182
182
|
type: q.DZImages.type
|
|
183
183
|
};
|
|
184
184
|
}
|
|
185
|
-
if (q.TiaImages) {
|
|
186
|
-
q2.TiaImages = {
|
|
187
|
-
type: q.TiaImages.type
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
185
|
if (q.singleSampleGbtk) {
|
|
191
186
|
q2.singleSampleGbtk = {};
|
|
192
187
|
for (const k in q.singleSampleGbtk) {
|