@sjcrh/proteinpaint-server 2.35.1 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-server",
3
- "version": "2.35.1",
3
+ "version": "2.36.0",
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",
@@ -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.slice(0, 20),
146
+ case_ids: caseLst, //.slice(0, 20),
143
147
  gene_ids: tempGetCGCgenes(genome),
144
148
  selection_size: Number(q.maxGenes)
145
149
  }