@sjcrh/proteinpaint-server 2.118.3-1 → 2.118.3-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.118.3-1",
3
+ "version": "2.118.3-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",
@@ -65,11 +65,11 @@
65
65
  "typescript": "^5.6.3"
66
66
  },
67
67
  "dependencies": {
68
- "@sjcrh/augen": "2.118.3-1",
68
+ "@sjcrh/augen": "2.118.3-2",
69
69
  "@sjcrh/proteinpaint-python": "2.118.0",
70
70
  "@sjcrh/proteinpaint-rust": "2.117.0",
71
- "@sjcrh/proteinpaint-shared": "2.118.0",
72
- "@sjcrh/proteinpaint-types": "2.118.3-0",
71
+ "@sjcrh/proteinpaint-shared": "2.118.3-2",
72
+ "@sjcrh/proteinpaint-types": "2.118.3-2",
73
73
  "@types/express": "^5.0.0",
74
74
  "@types/express-session": "^1.18.1",
75
75
  "better-sqlite3": "^9.4.1",
@@ -27,6 +27,12 @@ function init({ genomes }) {
27
27
  if (!ds.queries?.singleCell?.DEgenes)
28
28
  throw "not supported on this dataset";
29
29
  result = await ds.queries.singleCell.DEgenes.get(q);
30
+ if (!result || !result.genes || !result?.genes?.length) {
31
+ result = {
32
+ status: 404,
33
+ error: !result ? "No data found." : "No differentially expressed genes found."
34
+ };
35
+ }
30
36
  } catch (e) {
31
37
  if (e.stack)
32
38
  console.log(e.stack);