@sjcrh/proteinpaint-server 2.29.1 → 2.29.3

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/cards/index.json CHANGED
@@ -3,9 +3,6 @@
3
3
  {
4
4
  "gridarea": "col1",
5
5
  "sections": [
6
- {
7
- "id": "nestedCards"
8
- },
9
6
  {
10
7
  "id": "tracks",
11
8
  "name": "Tracks"
@@ -22,6 +19,9 @@
22
19
  {
23
20
  "id": "apps",
24
21
  "name": "Launch Apps"
22
+ },
23
+ {
24
+ "id": "nestedCards"
25
25
  }
26
26
  ]
27
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-server",
3
- "version": "2.29.1",
3
+ "version": "2.29.3",
4
4
  "description": "a genomics visualization tool for exploring a cohort's genotype and phenotype data",
5
5
  "main": "server.js",
6
6
  "bin": "start.js",
@@ -56,7 +56,7 @@
56
56
  },
57
57
  "dependencies": {
58
58
  "@sjcrh/augen": "2.27.0",
59
- "@sjcrh/proteinpaint-rust": "2.27.0",
59
+ "@sjcrh/proteinpaint-rust": "2.29.2",
60
60
  "better-sqlite3": "^7.5.3",
61
61
  "body-parser": "^1.15.2",
62
62
  "canvas": "~2.9.3",
@@ -64,12 +64,12 @@ function init({ genomes }) {
64
64
  const q = req.query // as getcategoriesRequest
65
65
  try {
66
66
  const g = genomes[req.query.genome]
67
- const ds = g.datasets[req.query.dslabel]
68
- const tdb = ds.cohort.termdb
69
-
70
67
  if (!g) throw 'invalid genome name'
68
+ const ds = g.datasets[req.query.dslabel]
71
69
  if (!ds) throw 'invalid dataset name'
70
+ const tdb = ds.cohort.termdb
72
71
  if (!tdb) throw 'invalid termdb object'
72
+
73
73
  await trigger_getcategories(q, res, tdb, ds, g) // as getcategoriesResponse
74
74
  } catch (e) {
75
75
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment