@sjcrh/proteinpaint-server 2.35.2-0 → 2.36.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.topVariablyExpressedGenes.ts +5 -1
- package/server.js +1 -1
- package/server.js.map +1 -1
package/package.json
CHANGED
|
@@ -31,7 +31,11 @@ function init({ genomes }) {
|
|
|
31
31
|
const ds = genome.datasets?.[q.dslabel]
|
|
32
32
|
if (!ds) throw 'invalid dslabel'
|
|
33
33
|
if (!ds.queries?.topVariablyExpressedGenes) throw 'not supported on dataset'
|
|
34
|
+
|
|
35
|
+
const t: number = new Date().getTime()
|
|
34
36
|
const genes = await ds.queries.topVariablyExpressedGenes.getGenes(q)
|
|
37
|
+
if (serverconfig.debugmode) console.log('topVariablyExpressedGenes', new Date().getTime() - t, 'ms')
|
|
38
|
+
|
|
35
39
|
res.send({ genes } as TermdbTopVariablyExpressedGenesResponse)
|
|
36
40
|
} catch (e: any) {
|
|
37
41
|
res.send({ status: 'error', error: e.message || e })
|
|
@@ -139,7 +143,7 @@ function gdcValidateQuery(ds: any, genome: any) {
|
|
|
139
143
|
// limit the case_ids length, and restrict pool to CGC genes, otherwise the request times out !!!
|
|
140
144
|
// must revert asap
|
|
141
145
|
return {
|
|
142
|
-
case_ids: caseLst
|
|
146
|
+
case_ids: caseLst, //.slice(0, 20),
|
|
143
147
|
gene_ids: tempGetCGCgenes(genome),
|
|
144
148
|
selection_size: Number(q.maxGenes)
|
|
145
149
|
}
|