@sjcrh/proteinpaint-server 2.41.0 → 2.41.1-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 +1 -1
- package/routes/termdb.cluster.ts +1 -1
- package/routes/termdb.singlecellSamples.ts +2 -2
- package/server.js +1 -1
- package/server.js.map +1 -1
package/package.json
CHANGED
package/routes/termdb.cluster.ts
CHANGED
|
@@ -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[
|
|
154
|
-
y = Number(l[
|
|
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'
|