@sjcrh/proteinpaint-server 2.84.0 → 2.85.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.
Files changed (48) hide show
  1. package/package.json +4 -5
  2. package/routes/_template_.js +14 -11
  3. package/routes/brainImaging.js +5 -14
  4. package/routes/brainImagingSamples.js +3 -3
  5. package/routes/burden.js +27 -59
  6. package/routes/dataset.js +9 -17
  7. package/routes/dsdata.js +11 -14
  8. package/routes/dzimages.js +11 -16
  9. package/routes/gdc.maf.js +8 -23
  10. package/routes/gdc.mafBuild.js +9 -9
  11. package/routes/gdc.topMutatedGenes.js +7 -7
  12. package/routes/genelookup.js +16 -34
  13. package/routes/genesetEnrichment.js +18 -14
  14. package/routes/genesetOverrepresentation.js +9 -14
  15. package/routes/healthcheck.js +26 -32
  16. package/routes/hicdata.js +7 -28
  17. package/routes/hicgenome.js +6 -27
  18. package/routes/hicstat.js +4 -22
  19. package/routes/isoformlst.js +8 -11
  20. package/routes/ntseq.js +8 -11
  21. package/routes/pdomain.js +8 -11
  22. package/routes/sampledzimages.js +12 -12
  23. package/routes/samplewsimages.js +6 -10
  24. package/routes/snp.js +8 -10
  25. package/routes/termdb.DE.js +8 -10
  26. package/routes/termdb.boxplot.js +8 -9
  27. package/routes/termdb.categories.js +4 -45
  28. package/routes/termdb.cluster.js +9 -9
  29. package/routes/termdb.cohort.summary.js +5 -8
  30. package/routes/termdb.cohorts.js +3 -7
  31. package/routes/{termdb.getdescrstats.js → termdb.descrstats.js} +8 -45
  32. package/routes/termdb.numericcategories.js +51 -0
  33. package/routes/{termdb.getpercentile.js → termdb.percentile.js} +4 -46
  34. package/routes/{termdb.getrootterm.js → termdb.rootterm.js} +4 -24
  35. package/routes/{termdb.getSampleImages.js → termdb.sampleImages.js} +9 -9
  36. package/routes/termdb.singleSampleMutation.js +3 -7
  37. package/routes/termdb.singlecellDEgenes.js +8 -8
  38. package/routes/termdb.singlecellData.js +4 -8
  39. package/routes/termdb.singlecellSamples.js +8 -8
  40. package/routes/{termdb.gettermchildren.js → termdb.termchildren.js} +8 -28
  41. package/routes/termdb.termsbyids.js +9 -16
  42. package/routes/{termdb.getTopTermsByType.js → termdb.topTermsByType.js} +9 -10
  43. package/routes/termdb.topVariablyExpressedGenes.js +8 -8
  44. package/routes/termdb.violin.js +8 -46
  45. package/routes/tileserver.js +5 -10
  46. package/routes/wsimages.js +10 -9
  47. package/src/app.js +1286 -2148
  48. package/routes/termdb.getnumericcategories.js +0 -91
@@ -4,21 +4,17 @@ import path from "path";
4
4
  import serverconfig from "#src/serverconfig.js";
5
5
  import { CookieJar } from "tough-cookie";
6
6
  import { promisify } from "util";
7
+ import { wsImagesPayload } from "#types";
7
8
  const routePath = "wsimages";
8
9
  const api = {
9
10
  endpoint: `${routePath}`,
10
11
  methods: {
11
12
  get: {
12
- init,
13
- request: {
14
- typeId: "GetWSImagesRequest"
15
- },
16
- response: {
17
- typeId: "GetWSImagesResponse"
18
- }
13
+ ...wsImagesPayload,
14
+ init
19
15
  },
20
16
  post: {
21
- alternativeFor: "get",
17
+ ...wsImagesPayload,
22
18
  init
23
19
  }
24
20
  }
@@ -101,7 +97,12 @@ function init({ genomes }) {
101
97
  ]
102
98
  }
103
99
  }).json();
104
- res.status(200).json({ sessionId, slide_dimensions: getWsiImageResponse.slide_dimensions });
100
+ const payload = {
101
+ status: "ok",
102
+ sessionId,
103
+ slide_dimensions: getWsiImageResponse.slide_dimensions
104
+ };
105
+ res.status(200).json(payload);
105
106
  } catch (e) {
106
107
  console.log(e);
107
108
  res.send({