@sjcrh/proteinpaint-server 2.133.4 → 2.134.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/genome/hg38.js CHANGED
@@ -61,7 +61,6 @@ var hg38_default = {
61
61
  categories: {
62
62
  coding: { color: "#004D99", label: "Coding gene" },
63
63
  nonCoding: { color: "#008833", label: "Noncoding gene" },
64
- problem: { color: "#CC3300", label: "Problem" },
65
64
  pseudo: { color: "#CC00CC", label: "Pseudogene" }
66
65
  },
67
66
  type: "bedj",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-server",
3
- "version": "2.133.4",
3
+ "version": "2.134.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",
@@ -64,8 +64,8 @@
64
64
  "@sjcrh/proteinpaint-python": "2.133.0",
65
65
  "@sjcrh/proteinpaint-r": "2.130.0",
66
66
  "@sjcrh/proteinpaint-rust": "2.133.0",
67
- "@sjcrh/proteinpaint-shared": "2.132.1-2",
68
- "@sjcrh/proteinpaint-types": "2.133.4",
67
+ "@sjcrh/proteinpaint-shared": "2.134.0",
68
+ "@sjcrh/proteinpaint-types": "2.134.0",
69
69
  "@types/express": "^5.0.0",
70
70
  "@types/express-session": "^1.18.1",
71
71
  "better-sqlite3": "^9.4.1",
@@ -1,14 +1,14 @@
1
- import { ProfileFiltersPayload } from "#types/checkers";
1
+ import { FilterTermValuesPayload } from "#types/checkers";
2
2
  import { getData, getSamplesPerFilter } from "../src/termdb.matrix.js";
3
3
  const api = {
4
- endpoint: "profileFilters",
4
+ endpoint: "filterTermValues",
5
5
  methods: {
6
6
  get: {
7
- ...ProfileFiltersPayload,
7
+ ...FilterTermValuesPayload,
8
8
  init
9
9
  },
10
10
  post: {
11
- ...ProfileFiltersPayload,
11
+ ...FilterTermValuesPayload,
12
12
  init
13
13
  }
14
14
  }
@@ -38,9 +38,11 @@ function getList(samplesPerFilter, filtersData, tw) {
38
38
  const sampleValues = Array.from(new Set(data.map((sample) => sample[tw.$id]?.value)));
39
39
  for (const value of values) {
40
40
  value.value = value.label;
41
- value.disabled = !sampleValues.includes(value.label);
41
+ const label = value.label;
42
+ value.disabled = !sampleValues.includes(label);
42
43
  }
43
44
  values.unshift({ label: "", value: "" });
45
+ values.sort((a, b) => a.label.localeCompare(b.label));
44
46
  return values;
45
47
  }
46
48
  async function getFilters(query, ds, genome, res) {
@@ -3,7 +3,6 @@ import qs from "qs";
3
3
  import path from "path";
4
4
  import { CookieJar } from "tough-cookie";
5
5
  import { promisify } from "util";
6
- import { PredictionOverlayType } from "#types";
7
6
  import { wsImagesPayload } from "#types/checkers";
8
7
  import SessionManager from "../src/wsisessions/SessionManager.ts";
9
8
  import { ShardManager } from "#src/sharding/ShardManager.ts";
@@ -121,7 +120,7 @@ async function getSessionId(ds, sampleId, cookieJar, getCookieString, setCookie,
121
120
  }).json();
122
121
  const overlay = {
123
122
  layerNumber,
124
- predictionOverlayType: PredictionOverlayType.PREDICTION
123
+ predictionOverlayType: "Prediction"
125
124
  };
126
125
  overlays.push(overlay);
127
126
  }
@@ -148,7 +147,7 @@ async function getSessionId(ds, sampleId, cookieJar, getCookieString, setCookie,
148
147
  }).json();
149
148
  const overlay = {
150
149
  layerNumber,
151
- predictionOverlayType: PredictionOverlayType.UNCERTAINTY
150
+ predictionOverlayType: "Uncertainty"
152
151
  };
153
152
  overlays.push(overlay);
154
153
  }