@sjcrh/proteinpaint-server 2.144.0 → 2.145.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.
@@ -213,6 +213,42 @@ function termdb_test_default() {
213
213
  // small list of terms for sunburst rings
214
214
  sunburst_twLst: [{ id: "sex", q: {} }]
215
215
  },
216
+ assayAvailability: {
217
+ // term used below must be annotated on samples rather than patients(root). otherwise matrix will pull wrong samples for geneVariant term
218
+ byDt: {
219
+ // snvindel, differentiating sample origin
220
+ 1: {
221
+ byOrigin: {
222
+ germline: {
223
+ term_id: "assayavailability_germline",
224
+ label: "Germline",
225
+ // human readable label of this origin
226
+ yes: { value: ["1"] },
227
+ no: { value: ["2"] }
228
+ },
229
+ somatic: {
230
+ term_id: "wgs_curated",
231
+ label: "Somatic",
232
+ yes: { value: ["1"] },
233
+ no: { value: ["0"] }
234
+ // the category doesn't exist in termdb but is still supplied since somatic.no{} is required
235
+ }
236
+ }
237
+ },
238
+ // fusion
239
+ 2: {
240
+ term_id: "assayavailability_fusion",
241
+ yes: { value: ["1"] },
242
+ no: { value: ["2"] }
243
+ },
244
+ // cnv
245
+ 4: {
246
+ term_id: "assayavailability_cnv",
247
+ yes: { value: ["1"] },
248
+ no: { value: ["2"] }
249
+ }
250
+ }
251
+ },
216
252
  queries: {
217
253
  snvindel: {
218
254
  forTrack: true,
@@ -312,42 +348,10 @@ function termdb_test_default() {
312
348
  WSImages: {
313
349
  type: "H&E",
314
350
  imageBySampleFolder: "files/hg38/TermdbTest/wsimages"
315
- }
316
- },
317
- assayAvailability: {
318
- // term used below must be annotated on samples rather than patients(root). otherwise matrix will pull wrong samples for geneVariant term
319
- byDt: {
320
- // snvindel, differentiating sample origin
321
- 1: {
322
- byOrigin: {
323
- germline: {
324
- term_id: "assayavailability_germline",
325
- label: "Germline",
326
- // human readable label of this origin
327
- yes: { value: ["1"] },
328
- no: { value: ["2"] }
329
- },
330
- somatic: {
331
- term_id: "wgs_curated",
332
- label: "Somatic",
333
- yes: { value: ["1"] },
334
- no: { value: ["0"] }
335
- // the category doesn't exist in termdb but is still supplied since somatic.no{} is required
336
- }
337
- }
338
- },
339
- // fusion
340
- 2: {
341
- term_id: "assayavailability_fusion",
342
- yes: { value: ["1"] },
343
- no: { value: ["2"] }
344
- },
345
- // cnv
346
- 4: {
347
- term_id: "assayavailability_cnv",
348
- yes: { value: ["1"] },
349
- no: { value: ["2"] }
350
- }
351
+ },
352
+ trackLst: {
353
+ jsonFile: "files/hg38/TermdbTest/trackLst/facet.json",
354
+ activeTracks: ["bw 1", "bed 1"]
351
355
  }
352
356
  }
353
357
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-server",
3
- "version": "2.144.0",
3
+ "version": "2.145.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",
@@ -63,9 +63,9 @@
63
63
  "@sjcrh/augen": "2.143.0",
64
64
  "@sjcrh/proteinpaint-python": "2.144.0",
65
65
  "@sjcrh/proteinpaint-r": "2.137.2-0",
66
- "@sjcrh/proteinpaint-rust": "2.143.0",
66
+ "@sjcrh/proteinpaint-rust": "2.145.0",
67
67
  "@sjcrh/proteinpaint-shared": "2.143.0",
68
- "@sjcrh/proteinpaint-types": "2.144.0",
68
+ "@sjcrh/proteinpaint-types": "2.145.0",
69
69
  "@types/express": "^5.0.0",
70
70
  "@types/express-session": "^1.18.1",
71
71
  "better-sqlite3": "^9.4.1",
@@ -48,7 +48,11 @@ async function runGrin2(genomes, req, res) {
48
48
  const pyInput = {
49
49
  genedb: path.join(serverconfig.tpmasterdir, g.genedb.dbfile),
50
50
  chromosomelist: {},
51
- lesion: ""
51
+ lesion: "",
52
+ devicePixelRatio: parsedRequest.devicePixelRatio || 2,
53
+ plot_width: parsedRequest.plot_width || 1e3,
54
+ plot_height: parsedRequest.plot_height || 400,
55
+ pngDotRadius: parsedRequest.pngDotRadius || 2
52
56
  };
53
57
  for (const c in g.majorchr) {
54
58
  if (ds.queries.singleSampleMutation?.discoPlot?.skipChrM) {
@@ -89,6 +93,7 @@ async function runGrin2(genomes, req, res) {
89
93
  const topGeneTable = resultData.topGeneTable || null;
90
94
  const totalProcessTime = downloadTimeToPrint + grin2AnalysisTimeToPrint;
91
95
  return res.json({
96
+ resultData,
92
97
  pngImg,
93
98
  topGeneTable,
94
99
  rustResult: parsedRustResult,