@sjcrh/proteinpaint-server 2.50.0 → 2.51.1

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.50.0",
3
+ "version": "2.51.1",
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",
@@ -88,18 +88,8 @@ function getDataNative(D, ds) {
88
88
  throw "duplicate plot.name";
89
89
  nameSet.add(plot.name);
90
90
  }
91
- const _terms = [];
92
- for (const tid of D.termIds) {
93
- const t = ds.cohort.termdb.q.termjsonByOneid(tid);
94
- if (!t)
95
- throw "invalid term id from queries.singleCell.data.termIds[]";
96
- _terms.push(t);
97
- }
98
91
  D.get = async (q) => {
99
92
  try {
100
- const tid2cellvalue = {};
101
- for (const tid of D.termIds)
102
- tid2cellvalue[tid] = {};
103
93
  const plots = [];
104
94
  for (const plot of D.plots) {
105
95
  const tsvfile = path.join(serverconfig.tpmasterdir, plot.folder, q.sample + plot.fileSuffix);
@@ -124,16 +114,13 @@ function getDataNative(D, ds) {
124
114
  if (!Number.isFinite(x) || !Number.isFinite(y))
125
115
  throw "x/y not number";
126
116
  cells.push({ cellId, x, y, category });
127
- for (const tid of D.termIds) {
128
- tid2cellvalue[tid][cellId] = l[1];
129
- }
130
117
  }
131
118
  plots.push({ name: plot.name, cells, colorBy: plot.colorColumn?.name, colorMap: plot.colorColumn?.colorMap });
132
119
  }
133
120
  if (plots.length == 0) {
134
121
  return { nodata: true };
135
122
  }
136
- return { plots, terms: _terms, tid2cellvalue };
123
+ return { plots };
137
124
  } catch (e) {
138
125
  if (e.stack)
139
126
  console.log(e.stack);