@sjcrh/proteinpaint-server 2.41.0 → 2.41.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.41.0",
3
+ "version": "2.41.1",
4
4
  "description": "a genomics visualization tool for exploring a cohort's genotype and phenotype data",
5
5
  "main": "server.js",
6
6
  "bin": "start.js",
@@ -58,9 +58,9 @@
58
58
  "dependencies": {
59
59
  "@sjcrh/augen": "2.35.0",
60
60
  "@sjcrh/proteinpaint-rust": "2.40.6",
61
- "better-sqlite3": "^7.5.3",
61
+ "better-sqlite3": "^9.4.1",
62
62
  "body-parser": "^1.15.2",
63
- "canvas": "~2.9.3",
63
+ "canvas": "~2.11.2",
64
64
  "compression": "^1.6.2",
65
65
  "cookie-parser": "^1.4.5",
66
66
  "d3": "^7.6.1",
@@ -162,7 +162,7 @@ export async function validate_query_geneExpression(ds: any, genome: any) {
162
162
  }
163
163
 
164
164
  async function validateNative(q: GeneExpressionQueryNative, ds: any, genome: any) {
165
- q.file = path.join(serverconfig.tpmasterdir, q.file)
165
+ if (!q.file.startsWith(serverconfig.tpmasterdir)) q.file = path.join(serverconfig.tpmasterdir, q.file)
166
166
  if (!q.samples) q.samples = []
167
167
  await utils.validate_tabixfile(q.file)
168
168
  q.nochr = await utils.tabix_is_nochr(q.file, null, genome)
@@ -150,8 +150,8 @@ function validateDataNative(D: SingleCellDataNative, ds: any) {
150
150
  // each line is a cell
151
151
  const l = lines[i].split('\t')
152
152
  const cellId = l[0],
153
- x = Number(l[4]), // FIXME standardize, or define idx in plot
154
- y = Number(l[5])
153
+ x = Number(l[plot.coordsColumns.x]), // FIXME standardize, or define idx in plot
154
+ y = Number(l[plot.coordsColumns.y])
155
155
  const category = l[plot.colorColumn?.index] || ''
156
156
  if (!cellId) throw 'cell id missing'
157
157
  if (!Number.isFinite(x) || !Number.isFinite(y)) throw 'x/y not number'