@sjcrh/proteinpaint-server 2.81.3 → 2.81.4-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-server",
3
- "version": "2.81.3",
3
+ "version": "2.81.4-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",
@@ -37,6 +37,12 @@ function init({ genomes }) {
37
37
  if (q.dataType == TermTypes.GENE_EXPRESSION || q.dataType == TermTypes.METABOLITE_INTENSITY) {
38
38
  if (!ds.queries?.[q.dataType])
39
39
  throw `no ${q.dataType} data on this dataset`;
40
+ if (!q.terms)
41
+ throw `missing gene list`;
42
+ if (!Array.isArray(q.terms))
43
+ throw `gene list is not an array`;
44
+ if (q.terms.length < 3)
45
+ throw `A minimum of three genes is required for clustering. Please refresh this page to clear this error.`;
40
46
  result = await getResult(q, ds);
41
47
  } else {
42
48
  throw "unknown q.dataType " + q.dataType;