@sjcrh/proteinpaint-server 2.123.0 → 2.124.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.
@@ -5,6 +5,9 @@ copyDataFilesFromRepo2Tp();
5
5
  function termdb_test_default() {
6
6
  return {
7
7
  isMds3: true,
8
+ isSupportedChartOverride: {
9
+ runChart: () => true
10
+ },
8
11
  cohort: {
9
12
  massNav: {
10
13
  tabs: {
@@ -123,16 +126,6 @@ function termdb_test_default() {
123
126
  ]
124
127
  }
125
128
  },
126
- customTwQByType: {
127
- // dataset-specific termsetting configs on certain term types
128
- geneVariant: {
129
- default: { cnvGainCutoff: 0.1, cnvLossCutoff: -0.1, cnvMaxLength: 0 },
130
- byGene: {
131
- // key is term.name, thus possible to use non-gene names e.g. C19MC
132
- MYCN: { cnvGainCutoff: 0.5, cnvLossCutoff: -0.1, cnvMaxLength: 0 }
133
- }
134
- }
135
- },
136
129
  variant2samples: {
137
130
  variantkey: "ssm_id",
138
131
  // required, tells client to return ssm_id for identifying variants
package/genome/hg38.js CHANGED
@@ -14,6 +14,19 @@ var hg38_default = {
14
14
  termdb: {
15
15
  isGeneSetTermdb: true
16
16
  }
17
+ },
18
+ analysisGenesetGroups: [
19
+ { label: "-", value: "-" },
20
+ { label: "BP: subset of GO", value: "BP: subset of GO" },
21
+ { label: "MF: subset of GO", value: "MF: subset of GO" },
22
+ { label: "CC: subset of GO", value: "CC: subset of GO" },
23
+ { label: "WikiPathways subset of CP", value: "WikiPathways subset of CP" },
24
+ { label: "REACTOME subset of CP", value: "REACTOME subset of CP" },
25
+ { label: "H: hallmark gene sets", value: "H: hallmark gene sets" }
26
+ ],
27
+ geneORAparam: {
28
+ minCutoff: 15,
29
+ maxCutoff: 500
17
30
  }
18
31
  }
19
32
  },
@@ -13,6 +13,14 @@ const genome = {
13
13
  termdb: {
14
14
  isGeneSetTermdb: true
15
15
  }
16
+ },
17
+ analysisGenesetGroups: [
18
+ { label: "-", value: "-" },
19
+ { label: "H: hallmark gene sets", value: "H: hallmark gene sets" }
20
+ ],
21
+ geneORAparam: {
22
+ minCutoff: 0,
23
+ maxCutoff: 500
16
24
  }
17
25
  }
18
26
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-server",
3
- "version": "2.123.0",
3
+ "version": "2.124.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",
@@ -68,9 +68,9 @@
68
68
  "@sjcrh/augen": "2.121.0",
69
69
  "@sjcrh/proteinpaint-python": "2.118.0",
70
70
  "@sjcrh/proteinpaint-r": "2.123.0",
71
- "@sjcrh/proteinpaint-rust": "2.123.0",
72
- "@sjcrh/proteinpaint-shared": "2.121.0",
73
- "@sjcrh/proteinpaint-types": "2.123.0",
71
+ "@sjcrh/proteinpaint-rust": "2.124.0",
72
+ "@sjcrh/proteinpaint-shared": "2.124.0",
73
+ "@sjcrh/proteinpaint-types": "2.124.0",
74
74
  "@types/express": "^5.0.0",
75
75
  "@types/express-session": "^1.18.1",
76
76
  "better-sqlite3": "^9.4.1",
@@ -42,13 +42,7 @@ async function run_genesetOverrepresentation_analysis(q, genomes) {
42
42
  const rust_output = await run_rust("genesetORA", JSON.stringify(gene_overrepresentation_input_type));
43
43
  const time2 = (/* @__PURE__ */ new Date()).valueOf();
44
44
  console.log("Time taken to run rust gene over representation pipeline:", time2 - time1, "ms");
45
- let result;
46
- for (const line of rust_output.split("\n")) {
47
- if (line.startsWith("pathway_p_values:")) {
48
- result = JSON.parse(line.replace("pathway_p_values:", ""));
49
- } else {
50
- }
51
- }
45
+ const result = JSON.parse(rust_output);
52
46
  return result;
53
47
  }
54
48
  export {
package/routes/genomes.js CHANGED
@@ -93,7 +93,11 @@ function clientcopy_genome(genomename, genomes) {
93
93
  if (g.termdbs) {
94
94
  g2.termdbs = {};
95
95
  for (const k in g.termdbs) {
96
- g2.termdbs[k] = { label: g.termdbs[k].label };
96
+ g2.termdbs[k] = {
97
+ label: g.termdbs[k].label,
98
+ analysisGenesetGroups: g.termdbs[k].analysisGenesetGroups,
99
+ geneORAparam: g.termdbs[k].geneORAparam
100
+ };
97
101
  }
98
102
  }
99
103
  for (const dsname in g.datasets) {
@@ -89,8 +89,6 @@ function make(q, req, res, ds, genome) {
89
89
  c.regression = tdb.regression;
90
90
  if (ds.assayAvailability)
91
91
  c.assayAvailability = ds.assayAvailability;
92
- if (ds.customTwQByType)
93
- c.customTwQByType = ds.customTwQByType;
94
92
  if (ds.cohort.correlationVolcano)
95
93
  c.correlationVolcano = ds.cohort.correlationVolcano;
96
94
  c.requiredAuth = authApi.getRequiredCredForDsEmbedder(q.dslabel, q.embedder);