@sjcrh/proteinpaint-types 2.187.0 → 2.188.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.
Files changed (66) hide show
  1. package/dist/aiProjectSelectedWSImages.js +1 -1
  2. package/dist/brainImaging.js +1 -1
  3. package/dist/{chunk-TWNJZBZK.js → chunk-2VJRTZE2.js} +4 -0
  4. package/dist/{chunk-DII56MJ7.js → chunk-AGMCAWBR.js} +23 -1
  5. package/dist/{chunk-OCH5BJCV.js → chunk-BZVFHGN3.js} +3 -3
  6. package/dist/{chunk-IIWTMQJZ.js → chunk-DDKGTDDB.js} +19 -7
  7. package/dist/{chunk-FRXRNCDV.js → chunk-DI4Q26E7.js} +2 -0
  8. package/dist/{chunk-T2HQMRX7.js → chunk-DUCWIRPX.js} +26 -6
  9. package/dist/{chunk-EBSBUEOG.js → chunk-G4MMYXP6.js} +3 -3
  10. package/dist/{chunk-VCEWZVLZ.js → chunk-IS74WYQF.js} +7 -3
  11. package/dist/{chunk-FEMYT7FL.js → chunk-JDF7A2LY.js} +3 -3
  12. package/dist/{chunk-RY4Y5ESC.js → chunk-JEQGBUK2.js} +7 -7
  13. package/dist/{chunk-AYTV7V46.js → chunk-LC6KLHCJ.js} +23 -23
  14. package/dist/{chunk-VWLYQ33F.js → chunk-LQYSPLDQ.js} +7 -7
  15. package/dist/{chunk-I3QGRA7O.js → chunk-MKYLCBTP.js} +16 -16
  16. package/dist/{chunk-DVMD6CBJ.js → chunk-MNT3GF7M.js} +12 -8
  17. package/dist/{chunk-46DTJOK5.js → chunk-MVB7LQS5.js} +7 -7
  18. package/dist/chunk-QNH3PKJK.js +343 -0
  19. package/dist/{chunk-F2QRI6B2.js → chunk-SDZIGJY3.js} +7 -7
  20. package/dist/{chunk-W2Z4RFLX.js → chunk-SZZXZZKO.js} +7 -7
  21. package/dist/{chunk-SGMHY5K7.js → chunk-TEXOICIS.js} +40 -40
  22. package/dist/{chunk-MMNSJ72P.js → chunk-TQQWSHFM.js} +7 -7
  23. package/dist/{chunk-F5IWKWVX.js → chunk-ULKGA7YY.js} +17 -9
  24. package/dist/{chunk-DPJUULKQ.js → chunk-V3JDD3ZG.js} +11 -19
  25. package/dist/{chunk-V5NAE7YA.js → chunk-VJB6F2HL.js} +32 -6
  26. package/dist/{chunk-NKV3NWPF.js → chunk-X5E72ZXA.js} +7 -7
  27. package/dist/{chunk-KVE2NBC6.js → chunk-YW5G4M5D.js} +50 -24
  28. package/dist/{chunk-HG2TK6UO.js → chunk-ZMDZYG5B.js} +7 -7
  29. package/dist/correlationVolcano.js +1 -1
  30. package/dist/deleteWSITileSelection.js +1 -1
  31. package/dist/genesetEnrichment.js +1 -1
  32. package/dist/grin2.js +1 -1
  33. package/dist/index.js +58 -38
  34. package/dist/samplewsimages.js +3 -1
  35. package/dist/saveWSIAnnotation.js +1 -1
  36. package/dist/termdb.DE.js +1 -1
  37. package/dist/termdb.categories.js +1 -1
  38. package/dist/termdb.chat.js +13 -9
  39. package/dist/termdb.chat2.js +5 -3
  40. package/dist/termdb.cluster.js +1 -1
  41. package/dist/termdb.dapVolcano.js +11 -0
  42. package/dist/termdb.descrstats.js +1 -1
  43. package/dist/termdb.diffMeth.js +1 -1
  44. package/dist/termdb.dmr.js +1 -1
  45. package/dist/termdb.numericcategories.js +1 -1
  46. package/dist/termdb.percentile.js +1 -1
  47. package/dist/termdb.runChart.js +3 -1
  48. package/dist/termdb.singlecellDEgenes.js +1 -1
  49. package/dist/termdb.singlecellSamples.js +1 -1
  50. package/dist/termdb.termsbyids.js +1 -1
  51. package/dist/termdb.topTermsByType.js +1 -1
  52. package/dist/termdb.topVariablyExpressedGenes.js +1 -1
  53. package/dist/termdb.violinBox.js +7 -1
  54. package/package.json +4 -4
  55. package/src/dataset.ts +17 -10
  56. package/src/index.ts +1 -0
  57. package/src/routes/aiProjectSelectedWSImages.ts +9 -1
  58. package/src/routes/deleteWSITileSelection.ts +1 -2
  59. package/src/routes/genesetEnrichment.ts +2 -0
  60. package/src/routes/saveWSIAnnotation.ts +2 -1
  61. package/src/routes/termdb.DE.ts +9 -7
  62. package/src/routes/termdb.chat2.ts +7 -2
  63. package/src/routes/termdb.dapVolcano.ts +35 -0
  64. package/src/routes/termdb.singlecellSamples.ts +1 -1
  65. package/src/routes/termdb.topVariablyExpressedGenes.ts +3 -5
  66. package/src/terms/proteomeAbundance.ts +1 -1
@@ -2,7 +2,7 @@ import {
2
2
  termdbCategoriesPayload,
3
3
  validCategoriesRequest,
4
4
  validCategoriesResponse
5
- } from "./chunk-RY4Y5ESC.js";
5
+ } from "./chunk-JEQGBUK2.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  termdbCategoriesPayload,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ChatPayload
3
- } from "./chunk-FRXRNCDV.js";
3
+ } from "./chunk-DI4Q26E7.js";
4
4
  import {
5
5
  __toESM,
6
6
  require_lib
@@ -56,7 +56,7 @@ var validChatRequest = (input) => {
56
56
  const $io25 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "isoformExpression" === input3.type && (void 0 === input3.child_types || Array.isArray(input3.child_types) && input3.child_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.hashtmldetail || "boolean" === typeof input3.hashtmldetail) && (void 0 === input3.included_types || Array.isArray(input3.included_types) && input3.included_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.isleaf || "boolean" === typeof input3.isleaf) && (void 0 === input3.values || "object" === typeof input3.values && null !== input3.values && false === Array.isArray(input3.values) && $io5(input3.values)) && (void 0 === input3.skipValuesBuild || "boolean" === typeof input3.skipValuesBuild) && (void 0 === input3.valueConversion || "object" === typeof input3.valueConversion && null !== input3.valueConversion && $io7(input3.valueConversion)) && (void 0 === input3.continuousColorScale || "object" === typeof input3.continuousColorScale && null !== input3.continuousColorScale && $io15(input3.continuousColorScale)) && (void 0 === input3.unit || "string" === typeof input3.unit) && (void 0 === input3.bins || "object" === typeof input3.bins && null !== input3.bins && $io16(input3.bins)) && (void 0 === input3.kind || "isoform" === input3.kind) && "string" === typeof input3.isoform && (void 0 === input3.gene || "string" === typeof input3.gene) && (void 0 === input3.chr || "string" === typeof input3.chr) && (void 0 === input3.start || "number" === typeof input3.start) && (void 0 === input3.stop || "number" === typeof input3.stop);
57
57
  const $io26 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "isoformExpression" === input3.type && (void 0 === input3.child_types || Array.isArray(input3.child_types) && input3.child_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.hashtmldetail || "boolean" === typeof input3.hashtmldetail) && (void 0 === input3.included_types || Array.isArray(input3.included_types) && input3.included_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.isleaf || "boolean" === typeof input3.isleaf) && (void 0 === input3.values || "object" === typeof input3.values && null !== input3.values && false === Array.isArray(input3.values) && $io5(input3.values)) && (void 0 === input3.skipValuesBuild || "boolean" === typeof input3.skipValuesBuild) && (void 0 === input3.valueConversion || "object" === typeof input3.valueConversion && null !== input3.valueConversion && $io7(input3.valueConversion)) && (void 0 === input3.continuousColorScale || "object" === typeof input3.continuousColorScale && null !== input3.continuousColorScale && $io15(input3.continuousColorScale)) && (void 0 === input3.unit || "string" === typeof input3.unit) && (void 0 === input3.bins || "object" === typeof input3.bins && null !== input3.bins && $io16(input3.bins)) && (void 0 === input3.kind || "coord" === input3.kind) && (void 0 === input3.isoform || "string" === typeof input3.isoform) && (void 0 === input3.gene || "string" === typeof input3.gene) && "string" === typeof input3.chr && "number" === typeof input3.start && "number" === typeof input3.stop;
58
58
  const $io27 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "metaboliteIntensity" === input3.type && (void 0 === input3.child_types || Array.isArray(input3.child_types) && input3.child_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.hashtmldetail || "boolean" === typeof input3.hashtmldetail) && (void 0 === input3.included_types || Array.isArray(input3.included_types) && input3.included_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.isleaf || "boolean" === typeof input3.isleaf) && (void 0 === input3.values || "object" === typeof input3.values && null !== input3.values && false === Array.isArray(input3.values) && $io5(input3.values)) && (void 0 === input3.skipValuesBuild || "boolean" === typeof input3.skipValuesBuild) && (void 0 === input3.valueConversion || "object" === typeof input3.valueConversion && null !== input3.valueConversion && $io7(input3.valueConversion)) && (void 0 === input3.continuousColorScale || "object" === typeof input3.continuousColorScale && null !== input3.continuousColorScale && $io15(input3.continuousColorScale)) && (void 0 === input3.unit || "string" === typeof input3.unit) && "string" === typeof input3.metabolite && (void 0 === input3.bins || "object" === typeof input3.bins && null !== input3.bins && $io16(input3.bins));
59
- const $io28 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "proteomeAbundance" === input3.type && (void 0 === input3.child_types || Array.isArray(input3.child_types) && input3.child_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.hashtmldetail || "boolean" === typeof input3.hashtmldetail) && (void 0 === input3.included_types || Array.isArray(input3.included_types) && input3.included_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.isleaf || "boolean" === typeof input3.isleaf) && (void 0 === input3.values || "object" === typeof input3.values && null !== input3.values && false === Array.isArray(input3.values) && $io5(input3.values)) && (void 0 === input3.skipValuesBuild || "boolean" === typeof input3.skipValuesBuild) && (void 0 === input3.valueConversion || "object" === typeof input3.valueConversion && null !== input3.valueConversion && $io7(input3.valueConversion)) && (void 0 === input3.continuousColorScale || "object" === typeof input3.continuousColorScale && null !== input3.continuousColorScale && $io15(input3.continuousColorScale)) && (void 0 === input3.unit || "string" === typeof input3.unit) && "string" === typeof input3.protein && (void 0 === input3.bins || "object" === typeof input3.bins && null !== input3.bins && $io16(input3.bins)) && ("object" === typeof input3.proteomeDetails && null !== input3.proteomeDetails && ("string" === typeof input3.proteomeDetails.organism && "string" === typeof input3.proteomeDetails.assay && "string" === typeof input3.proteomeDetails.cohort));
59
+ const $io28 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "proteomeAbundance" === input3.type && (void 0 === input3.child_types || Array.isArray(input3.child_types) && input3.child_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.hashtmldetail || "boolean" === typeof input3.hashtmldetail) && (void 0 === input3.included_types || Array.isArray(input3.included_types) && input3.included_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.isleaf || "boolean" === typeof input3.isleaf) && (void 0 === input3.values || "object" === typeof input3.values && null !== input3.values && false === Array.isArray(input3.values) && $io5(input3.values)) && (void 0 === input3.skipValuesBuild || "boolean" === typeof input3.skipValuesBuild) && (void 0 === input3.valueConversion || "object" === typeof input3.valueConversion && null !== input3.valueConversion && $io7(input3.valueConversion)) && (void 0 === input3.continuousColorScale || "object" === typeof input3.continuousColorScale && null !== input3.continuousColorScale && $io15(input3.continuousColorScale)) && (void 0 === input3.unit || "string" === typeof input3.unit) && "string" === typeof input3.protein && (void 0 === input3.bins || "object" === typeof input3.bins && null !== input3.bins && $io16(input3.bins)) && ("object" === typeof input3.dataTypeDetails && null !== input3.dataTypeDetails && ("string" === typeof input3.dataTypeDetails.organism && "string" === typeof input3.dataTypeDetails.assay && "string" === typeof input3.dataTypeDetails.cohort));
60
60
  const $io30 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "date" === input3.type && (void 0 === input3.child_types || Array.isArray(input3.child_types) && input3.child_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.hashtmldetail || "boolean" === typeof input3.hashtmldetail) && (void 0 === input3.included_types || Array.isArray(input3.included_types) && input3.included_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.isleaf || "boolean" === typeof input3.isleaf) && (void 0 === input3.values || "object" === typeof input3.values && null !== input3.values && false === Array.isArray(input3.values) && $io5(input3.values)) && (void 0 === input3.skipValuesBuild || "boolean" === typeof input3.skipValuesBuild) && (void 0 === input3.valueConversion || "object" === typeof input3.valueConversion && null !== input3.valueConversion && $io7(input3.valueConversion)) && (void 0 === input3.continuousColorScale || "object" === typeof input3.continuousColorScale && null !== input3.continuousColorScale && $io15(input3.continuousColorScale)) && (void 0 === input3.unit || "string" === typeof input3.unit) && (void 0 === input3.bins || "object" === typeof input3.bins && null !== input3.bins && $io16(input3.bins));
61
61
  const $io31 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "ssGSEA" === input3.type && (void 0 === input3.child_types || Array.isArray(input3.child_types) && input3.child_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.hashtmldetail || "boolean" === typeof input3.hashtmldetail) && (void 0 === input3.included_types || Array.isArray(input3.included_types) && input3.included_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.isleaf || "boolean" === typeof input3.isleaf) && (void 0 === input3.values || "object" === typeof input3.values && null !== input3.values && false === Array.isArray(input3.values) && $io5(input3.values)) && (void 0 === input3.skipValuesBuild || "boolean" === typeof input3.skipValuesBuild) && (void 0 === input3.valueConversion || "object" === typeof input3.valueConversion && null !== input3.valueConversion && $io7(input3.valueConversion)) && (void 0 === input3.continuousColorScale || "object" === typeof input3.continuousColorScale && null !== input3.continuousColorScale && $io15(input3.continuousColorScale)) && (void 0 === input3.unit || "string" === typeof input3.unit) && (void 0 === input3.genes || Array.isArray(input3.genes) && input3.genes.every((elem) => "string" === typeof elem)) && (void 0 === input3.bins || "object" === typeof input3.bins && null !== input3.bins && $io16(input3.bins));
62
62
  const $io32 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "dnaMethylation" === input3.type && (void 0 === input3.child_types || Array.isArray(input3.child_types) && input3.child_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.hashtmldetail || "boolean" === typeof input3.hashtmldetail) && (void 0 === input3.included_types || Array.isArray(input3.included_types) && input3.included_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.isleaf || "boolean" === typeof input3.isleaf) && (void 0 === input3.values || "object" === typeof input3.values && null !== input3.values && false === Array.isArray(input3.values) && $io5(input3.values)) && (void 0 === input3.skipValuesBuild || "boolean" === typeof input3.skipValuesBuild) && (void 0 === input3.valueConversion || "object" === typeof input3.valueConversion && null !== input3.valueConversion && $io7(input3.valueConversion)) && (void 0 === input3.continuousColorScale || "object" === typeof input3.continuousColorScale && null !== input3.continuousColorScale && $io15(input3.continuousColorScale)) && (void 0 === input3.unit || "string" === typeof input3.unit) && "string" === typeof input3.chr && "number" === typeof input3.start && "number" === typeof input3.stop && ("gene" === input3.genomicFeatureType || "promoter" === input3.genomicFeatureType || "region" === input3.genomicFeatureType || "enhancer" === input3.genomicFeatureType) && (void 0 === input3.bins || "object" === typeof input3.bins && null !== input3.bins && $io16(input3.bins));
@@ -1666,14 +1666,14 @@ var validChatRequest = (input) => {
1666
1666
  path: _path2 + ".bins",
1667
1667
  expected: "(PresetNumericBins | undefined)",
1668
1668
  value: input3.bins
1669
- }), ("object" === typeof input3.proteomeDetails && null !== input3.proteomeDetails || $report(_exceptionable2, {
1670
- path: _path2 + ".proteomeDetails",
1669
+ }), ("object" === typeof input3.dataTypeDetails && null !== input3.dataTypeDetails || $report(_exceptionable2, {
1670
+ path: _path2 + ".dataTypeDetails",
1671
1671
  expected: "ProteomeDetails",
1672
- value: input3.proteomeDetails
1673
- })) && $vo29(input3.proteomeDetails, _path2 + ".proteomeDetails", _exceptionable2) || $report(_exceptionable2, {
1674
- path: _path2 + ".proteomeDetails",
1672
+ value: input3.dataTypeDetails
1673
+ })) && $vo29(input3.dataTypeDetails, _path2 + ".dataTypeDetails", _exceptionable2) || $report(_exceptionable2, {
1674
+ path: _path2 + ".dataTypeDetails",
1675
1675
  expected: "ProteomeDetails",
1676
- value: input3.proteomeDetails
1676
+ value: input3.dataTypeDetails
1677
1677
  })].every((flag) => flag);
1678
1678
  const $vo29 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.organism || $report(_exceptionable2, {
1679
1679
  path: _path2 + ".organism",
@@ -3542,7 +3542,7 @@ var validChatResponse = (input) => {
3542
3542
  const __is = (input2) => {
3543
3543
  const $io0 = (input3) => "text" === input3.type && "string" === typeof input3.text;
3544
3544
  const $io1 = (input3) => "html" === input3.type && "string" === typeof input3.html;
3545
- const $io2 = (input3) => "plot" === input3.type && ("object" === typeof input3.plot && null !== input3.plot && true);
3545
+ const $io2 = (input3) => "plot" === input3.type && ("object" === typeof input3.plot && null !== input3.plot && true) && (void 0 === input3.msg || "string" === typeof input3.msg);
3546
3546
  const $iu0 = (input3) => (() => {
3547
3547
  if ("text" === input3.type)
3548
3548
  return $io0(input3);
@@ -3587,6 +3587,10 @@ var validChatResponse = (input) => {
3587
3587
  path: _path2 + ".plot",
3588
3588
  expected: "object",
3589
3589
  value: input3.plot
3590
+ }), void 0 === input3.msg || "string" === typeof input3.msg || $report(_exceptionable2, {
3591
+ path: _path2 + ".msg",
3592
+ expected: "(string | undefined)",
3593
+ value: input3.msg
3590
3594
  })].every((flag) => flag);
3591
3595
  const $vo3 = (input3, _path2, _exceptionable2 = true) => true;
3592
3596
  const $vu0 = (input3, _path2, _exceptionable2 = true) => (() => {
@@ -1,13 +1,15 @@
1
1
  import {
2
2
  validChatRequest,
3
3
  validChatResponse
4
- } from "./chunk-DVMD6CBJ.js";
4
+ } from "./chunk-MNT3GF7M.js";
5
5
  import {
6
- ChatPayload
7
- } from "./chunk-FRXRNCDV.js";
6
+ ChatPayload,
7
+ createAmbiguousPoints
8
+ } from "./chunk-DI4Q26E7.js";
8
9
  import "./chunk-YNHC5SXO.js";
9
10
  export {
10
11
  ChatPayload,
12
+ createAmbiguousPoints,
11
13
  validChatRequest,
12
14
  validChatResponse
13
15
  };
@@ -2,7 +2,7 @@ import {
2
2
  termdbClusterPayload,
3
3
  validTermdbClusterRequest,
4
4
  validTermdbClusterResponse
5
- } from "./chunk-SGMHY5K7.js";
5
+ } from "./chunk-TEXOICIS.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  termdbClusterPayload,
@@ -0,0 +1,11 @@
1
+ import {
2
+ dapVolcanoPayload,
3
+ validDapVolcanoRequest,
4
+ validDapVolcanoResponse
5
+ } from "./chunk-QNH3PKJK.js";
6
+ import "./chunk-YNHC5SXO.js";
7
+ export {
8
+ dapVolcanoPayload,
9
+ validDapVolcanoRequest,
10
+ validDapVolcanoResponse
11
+ };
@@ -2,7 +2,7 @@ import {
2
2
  descrStatsPayload,
3
3
  validDescrStatsRequest,
4
4
  validDescrStatsResponse
5
- } from "./chunk-MMNSJ72P.js";
5
+ } from "./chunk-TQQWSHFM.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  descrStatsPayload,
@@ -2,7 +2,7 @@ import {
2
2
  diffMethPayload,
3
3
  validDiffMethRequest,
4
4
  validDiffMethResponse
5
- } from "./chunk-FEMYT7FL.js";
5
+ } from "./chunk-JDF7A2LY.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  diffMethPayload,
@@ -2,7 +2,7 @@ import {
2
2
  TermdbDmrPayload,
3
3
  validTermdbDmrRequest,
4
4
  validTermdbDmrResponse
5
- } from "./chunk-46DTJOK5.js";
5
+ } from "./chunk-MVB7LQS5.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  TermdbDmrPayload,
@@ -2,7 +2,7 @@ import {
2
2
  numericCategoriesPayload,
3
3
  validNumericCategoriesRequest,
4
4
  validNumericCategoriesResponse
5
- } from "./chunk-VWLYQ33F.js";
5
+ } from "./chunk-LQYSPLDQ.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  numericCategoriesPayload,
@@ -2,7 +2,7 @@ import {
2
2
  percentilePayload,
3
3
  validPercentileRequest,
4
4
  validPercentileResponse
5
- } from "./chunk-I3QGRA7O.js";
5
+ } from "./chunk-MKYLCBTP.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  percentilePayload,
@@ -1,10 +1,12 @@
1
1
  import {
2
+ isRunChartSuccess,
2
3
  runChartPayload,
3
4
  validRunChartRequest,
4
5
  validRunChartResponse
5
- } from "./chunk-TWNJZBZK.js";
6
+ } from "./chunk-2VJRTZE2.js";
6
7
  import "./chunk-YNHC5SXO.js";
7
8
  export {
9
+ isRunChartSuccess,
8
10
  runChartPayload,
9
11
  validRunChartRequest,
10
12
  validRunChartResponse
@@ -2,7 +2,7 @@ import {
2
2
  termdbSingleCellDEgenesPayload,
3
3
  validTermdbSingleCellDEgenesRequest,
4
4
  validTermdbSingleCellDEgenesResponse
5
- } from "./chunk-OCH5BJCV.js";
5
+ } from "./chunk-BZVFHGN3.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  termdbSingleCellDEgenesPayload,
@@ -2,7 +2,7 @@ import {
2
2
  termdbSingleCellSamplesPayload,
3
3
  validTermdbSingleCellSamplesRequest,
4
4
  validTermdbSingleCellSamplesResponse
5
- } from "./chunk-VCEWZVLZ.js";
5
+ } from "./chunk-IS74WYQF.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  termdbSingleCellSamplesPayload,
@@ -2,7 +2,7 @@ import {
2
2
  termsByIdsPayload,
3
3
  validTermsByIdsRequest,
4
4
  validTermsByIdsResponse
5
- } from "./chunk-F2QRI6B2.js";
5
+ } from "./chunk-SDZIGJY3.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  termsByIdsPayload,
@@ -2,7 +2,7 @@ import {
2
2
  termdbTopTermsByTypePayload,
3
3
  validTermdbTopTermsByTypeRequest,
4
4
  validTermdbTopTermsByTypeResponse
5
- } from "./chunk-AYTV7V46.js";
5
+ } from "./chunk-LC6KLHCJ.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  termdbTopTermsByTypePayload,
@@ -2,7 +2,7 @@ import {
2
2
  termdbTopVariablyExpressedGenesPayload,
3
3
  validTermdbTopVariablyExpressedGenesRequest,
4
4
  validTermdbTopVariablyExpressedGenesResponse
5
- } from "./chunk-DPJUULKQ.js";
5
+ } from "./chunk-V3JDD3ZG.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  termdbTopVariablyExpressedGenesPayload,
@@ -1,10 +1,16 @@
1
1
  import {
2
+ isBoxPlotResponse,
3
+ isErrorResponse,
4
+ isViolinResponse,
2
5
  validViolinBoxRequest,
3
6
  validViolinBoxResponse,
4
7
  violinBoxPayload
5
- } from "./chunk-IIWTMQJZ.js";
8
+ } from "./chunk-DDKGTDDB.js";
6
9
  import "./chunk-YNHC5SXO.js";
7
10
  export {
11
+ isBoxPlotResponse,
12
+ isErrorResponse,
13
+ isViolinResponse,
8
14
  validViolinBoxRequest,
9
15
  validViolinBoxResponse,
10
16
  violinBoxPayload
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.187.0",
3
+ "version": "2.188.0",
4
4
  "type": "module",
5
5
  "description": "Shared type definitions between ProteinPaint server and client code",
6
6
  "main": "src/index.ts",
@@ -11,12 +11,12 @@
11
11
  "./checkers": "./dist/index.js"
12
12
  },
13
13
  "imports": {
14
- "#shared": "@sjcrh/proteinpaint-shared"
14
+ "#shared": "@sjcrh/proteinpaint-shared",
15
+ "#shared/devTs": "@sjcrh/proteinpaint-shared/devTs"
15
16
  },
16
17
  "scripts": {
17
18
  "generate": "node dev.mjs",
18
- "predev": "tsx emitCheckers.ts",
19
- "dev": "node --watch-path=src --watch-path=checkers dev.mjs",
19
+ "dev": "node --watch-path=src/routes dev.mjs",
20
20
  "prepare": "ts-patch install",
21
21
  "build": "./build.sh",
22
22
  "prepack": "./build.sh",
package/src/dataset.ts CHANGED
@@ -499,9 +499,8 @@ export type GeneArgumentEntry = {
499
499
  }
500
500
 
501
501
  type TopVariablyExpressedGenesQuery = {
502
- /** Denotes either gdc specific data requests or common
503
- * data request processing */
504
- src: 'gdcapi' | 'native' | string
502
+ /** ds supplied getter. if not, dynamically adds one during launch */
503
+ getGenes?: (f: any) => void
505
504
  /** Specifies the dom element rendered in the menu */
506
505
  arguments?: GeneArgumentEntry[]
507
506
  }
@@ -717,6 +716,7 @@ type ProteomeCohortConfig = {
717
716
  prior: { d0: number; s0sq: number }
718
717
  controlFilter: ProteomeFilter[]
719
718
  caseFilter: ProteomeFilter[]
719
+ DAPfile?: string
720
720
  }
721
721
 
722
722
  type ProteomeAssayConfig = {
@@ -875,8 +875,7 @@ type GDCSingleCellPlot = {
875
875
  colorColumns: ColorColumn[]
876
876
  coordsColumns: { x: number; y: number }
877
877
  /** if true the plot is shown by default. otherwise hidden
878
- * Will not be needed when the singleCellPlot is depreciated.
879
- */
878
+ * Will not be needed when the singleCellPlot is deprecated.*/
880
879
  selected?: boolean
881
880
  }
882
881
 
@@ -914,8 +913,15 @@ type SingleCellPlot = {
914
913
  /** list of columns in tabular text file that define cell categories and can be used to color the cells in the plot. must have categorical values
915
914
  */
916
915
  colorColumns: ColorColumn[]
917
- /** if true the plot is shown by default. otherwise hidden */
916
+ /** if true the plot is shown by default. otherwise hidden.
917
+ * Old implementation. Maybe deleted when singleCellPlot is deprecated.*/
918
918
  selected?: boolean
919
+ /** Plot is a meta analysis result and treated differently in the UI */
920
+ isMetaResult?: boolean
921
+ /** optional for meta analysis result plots. May define the "sampleId" for the
922
+ * server requests. If not provided, the file name or the plot name with the
923
+ * spaces replaced with '_' is used. */
924
+ sampleId?: string
919
925
  }
920
926
  export type SingleCellDataNative = SingleCellDataBase & {
921
927
  src: 'native'
@@ -1092,8 +1098,7 @@ type Mds3Queries = {
1092
1098
  /** Used to create the top mutated genes UI in the gene
1093
1099
  * set edit ui and data requests. */
1094
1100
  topMutatedGenes?: TopMutatedGenes
1095
- /** Used to create the top variably expressed UI in the gene
1096
- * set edit ui. Also used for data requests */
1101
+ /** get top variably expressed genes */
1097
1102
  topVariablyExpressedGenes?: TopVariablyExpressedGenesQuery
1098
1103
  metaboliteIntensity?: {
1099
1104
  src: 'native'
@@ -1103,7 +1108,7 @@ type Mds3Queries = {
1103
1108
  singleCell?: SingleCellQuery
1104
1109
  singleSampleGenomeQuantification?: SingleSampleGenomeQuantification
1105
1110
  singleSampleGbtk?: SingleSampleGbtk
1106
- /** depreciated. replaced by WSImages */
1111
+ /** deprecated. replaced by WSImages */
1107
1112
  DZImages?: DZImages
1108
1113
  WSImages?: WSImages
1109
1114
  images?: Images
@@ -1135,7 +1140,7 @@ type Images = {
1135
1140
  folder: string
1136
1141
  }
1137
1142
 
1138
- /** Depreciated. deep zoom image shown via openseadragon, with precomputed tiles.
1143
+ /** Deprecated. deep zoom image shown via openseadragon, with precomputed tiles.
1139
1144
  * this is replaced by WSImages and should not be used anymore */
1140
1145
  export type DZImages = {
1141
1146
  // type of the image, e.g. H&E
@@ -1248,6 +1253,8 @@ type DataDownloadCatch = {
1248
1253
 
1249
1254
  type ScatterPlotsEntry = {
1250
1255
  name: string
1256
+ description?: string
1257
+ descriptionShort?: string
1251
1258
  dimension: number
1252
1259
  file: string
1253
1260
  coordsColumns?: { x: number; y: number; z?: number }
package/src/index.ts CHANGED
@@ -44,6 +44,7 @@ export * from './routes/termdb.cluster.ts'
44
44
  export * from './routes/termdb.cohort.summary.ts'
45
45
  export * from './routes/termdb.cohorts.ts'
46
46
  export * from './routes/termdb.DE.ts'
47
+ export * from './routes/termdb.dapVolcano.ts'
47
48
  export * from './routes/termdb.diffMeth.ts'
48
49
  export * from './routes/termdb.descrstats.ts'
49
50
  export * from './routes/termdb.dmr.ts'
@@ -1,5 +1,6 @@
1
1
  import type { RoutePayload } from './routeApi.ts'
2
2
  import type { WSImage } from './samplewsimages.ts'
3
+ import type { FlagStatus } from '#shared/devTs'
3
4
 
4
5
  export type AiProjectSelectedWSImagesRequest = {
5
6
  genome: string
@@ -13,16 +14,23 @@ export type AiProjectSelectedWSImagesResponse = {
13
14
  wsimages: WSImage[]
14
15
  }
15
16
 
17
+ export interface FlagPredictionInfo {
18
+ flag: FlagStatus
19
+ timestamp: string
20
+ }
21
+
16
22
  // TODO move to another class
17
23
  export interface TileSelection {
18
24
  zoomCoordinates: [number, number]
19
25
  class?: string
26
+ flag: FlagStatus
27
+ id: string
28
+ timestamp: string
20
29
  }
21
30
 
22
31
  export interface Annotation extends TileSelection {
23
32
  class: string
24
33
  status: number
25
- timestamp: string
26
34
  }
27
35
 
28
36
  export interface Prediction extends TileSelection {
@@ -6,8 +6,7 @@ export type DeleteWSITileSelectionRequest = {
6
6
  dslabel: string
7
7
  projectId: number
8
8
  tileSelection: TileSelection
9
- predictionClassId: string
10
- tileSelectionType: number
9
+ classID: number
11
10
  wsimage: string
12
11
  }
13
12
 
@@ -38,6 +38,8 @@ export type GenesetEnrichmentRequest = {
38
38
  num_permutations?: number
39
39
  /** Method used for GSEA blitzgsea/cerno */
40
40
  method: 'blitzgsea' | 'cerno'
41
+ /** DAP-specific parameters: organism/assay/cohort identify the DAP file */
42
+ dapParams?: { organism: string; assay: string; cohort: string }
41
43
  }
42
44
 
43
45
  type blitzgsea_geneset_attributes = {
@@ -1,9 +1,10 @@
1
+ import type { TileSelection } from '../index.ts'
1
2
  import type { RoutePayload } from './routeApi.ts'
2
3
 
3
4
  export type SaveWSIAnnotationRequest = {
4
5
  genome: string
5
6
  dslabel: string
6
- coordinates: [number, number]
7
+ tileSelection: TileSelection
7
8
  classId: number
8
9
  projectId: number
9
10
  wsimage: string
@@ -7,9 +7,9 @@ export type DERequest = {
7
7
  dslabel: string
8
8
  /* Object containing two arrays of RNA seq count for DE analysis */
9
9
  samplelst: any //{number[]; number[];}
10
- /** Relative cpm cutoff for filtering a gene compared to all samples and genes in dataset */
10
+ /** Minimum count per sample for edgeR's filterByExpr */
11
11
  min_count: number
12
- /** Minimum total read count required for each sample */
12
+ /** Minimum total count across samples for edgeR's filterByExpr */
13
13
  min_total_count: number
14
14
  /** Minimum normalized expression threshold to retain only genes with sufficient expression */
15
15
  cpm_cutoff: number
@@ -134,10 +134,6 @@ export type ExpressionInput = {
134
134
  data_type: 'do_DE'
135
135
  /** File containing raw gene counts for DE analysis */
136
136
  input_file: string
137
- /** Relative cpm cutoff for filtering a gene compared to all samples and genes in dataset */
138
- min_count: number
139
- /** Minimum total read count required for each sample */
140
- min_total_count: number
141
137
  /** Type of storage file: HDF5 or text. Text will be deprecated in the future */
142
138
  storage_type: 'HDF5' | 'text'
143
139
  /** Confounding variable1 for DE analysis. Maybe array of string (Gender: Male/female) or number (Age). For now supporting 1 confounding variable. */
@@ -154,6 +150,12 @@ export type ExpressionInput = {
154
150
  DE_method: 'wilcoxon' | 'limma' | 'edgeR'
155
151
  /** Cutoff for when mds plot will be generated for edgeR and limma test */
156
152
  mds_cutoff: number
153
+ /** Minimum count per sample for edgeR's filterByExpr */
154
+ min_count: number
155
+ /** Minimum total count across samples for edgeR's filterByExpr */
156
+ min_total_count: number
157
+ /** Minimum normalized expression threshold to retain only genes with sufficient expression */
158
+ cpm_cutoff: number
157
159
  }
158
160
 
159
161
  /** Response when DERequest.preAnalysis === true. Returns per-group sample
@@ -188,7 +190,7 @@ export type DEResponse = DEPreAnalysisResponse | DEFullResponse
188
190
  * singlecell DE genes, each of which extends this with route-specific fields. */
189
191
  export type DataEntry = {
190
192
  original_p_value: number
191
- adjusted_p_value: number
193
+ adjusted_p_value?: number
192
194
  fold_change: number
193
195
  }
194
196
 
@@ -2,6 +2,10 @@ import type { Filter } from '../filter.ts'
2
2
  import type { RoutePayload } from './routeApi.js'
3
3
 
4
4
  /** */
5
+ // Helps track ambiguous points in the LLM reasoning process for debugging and improvement purposes.
6
+ // Create a fresh array per request/pipeline run to avoid sharing mutable state across module consumers.
7
+ export const createAmbiguousPoints = (): string[] => []
8
+
5
9
  export type ChatRequest = {
6
10
  genome: string
7
11
  dslabel: string
@@ -24,11 +28,12 @@ export type HtmlResponse = {
24
28
  export type PlotResponse = {
25
29
  type: 'plot'
26
30
  plot: object
31
+ msg?: string
27
32
  /** Specifies what action to take e.g. Summary plot or no action. Will add more chart types later */
28
33
  }
29
34
 
30
35
  export type LlmConfig = {
31
- provider: 'SJ' | 'ollama' | 'huggingface'
36
+ provider: 'SJ' | 'ollama' | 'huggingface' | 'azure'
32
37
  EmbeddingProvider: 'SJ' | 'ollama' | 'huggingface'
33
38
  EmbeddingProviderApi: string
34
39
  api: string
@@ -137,7 +142,7 @@ export type none_type = {
137
142
  }
138
143
 
139
144
  /** Top-level classification returned by classifyQuery: plot or notplot (subtype determined separately by plot.ts) */
140
- export type QueryClassification = { type: 'plot' } | { type: 'notplot' }
145
+ export type QueryClassification = { type: 'plot' } | { type: 'notplot' } | { type: 'binaryQuery' }
141
146
 
142
147
  /** Specific plot type returned by classifyPlotType in plot.ts */
143
148
  export type PlotType = 'summary' | 'dge' | 'survival' | 'matrix' | 'samplescatter' | 'hiercluster' | 'lollipop'
@@ -0,0 +1,35 @@
1
+ import type { RoutePayload } from './routeApi.js'
2
+ import type { ErrorResponse } from './errorResponse.ts'
3
+ import type { DataEntry, VolcanoData, VolcanoRenderRequest } from './termdb.DE.js'
4
+
5
+ export type DapVolcanoRequest = {
6
+ genome: string
7
+ dslabel: string
8
+ organism: string
9
+ assay: string
10
+ cohort: string
11
+ volcanoRender?: VolcanoRenderRequest
12
+ countsOnly?: boolean
13
+ }
14
+
15
+ export type DapEntry = DataEntry & {
16
+ gene_name: string
17
+ gene: string
18
+ }
19
+
20
+ export type DapVolcanoResponse =
21
+ | ErrorResponse
22
+ | {
23
+ sample_size1: number
24
+ sample_size2: number
25
+ data?: VolcanoData<DapEntry>
26
+ }
27
+
28
+ export const dapVolcanoPayload: RoutePayload = {
29
+ request: {
30
+ typeId: 'DapVolcanoRequest'
31
+ },
32
+ response: {
33
+ typeId: 'DapVolcanoResponse'
34
+ }
35
+ }
@@ -17,7 +17,7 @@ export type SingleCellSample = {
17
17
  sampleName: any
18
18
  experimentID?: string
19
19
  }[]
20
-
20
+ isMetaResult?: boolean // whether this sample is a meta result. if so, sample name is from plot.sampleId or plot.name and experimentID is not used
21
21
  // a sample may have additional fields that will be displayed in table, see singleCell.samples.sampleColumns[]
22
22
  }
23
23
 
@@ -24,11 +24,7 @@ export type TermdbTopVariablyExpressedGenesRequest = {
24
24
  /** optional parameter defined in gdc dataset. not used for non-gdc ds */
25
25
  min_median_log2_uqfpkm?: number
26
26
  /** filter extreme values (in native implementation): true/false */
27
- filter_extreme_values?: number
28
- /** min_count of fpkm when filter_extreme_values (in native implementation) = true */
29
- min_count?: number
30
- /** min_total_count of fpkm when filter_extreme_values (in native implementation) = true */
31
- min_total_count?: number
27
+ filter_extreme_values?: boolean | number
32
28
  /** Filter type: variance/inter-quartile region (in native implementation) */
33
29
  rank_type?: {
34
30
  type: 'var' | 'iqr'
@@ -36,6 +32,8 @@ export type TermdbTopVariablyExpressedGenesRequest = {
36
32
  filter?: Filter
37
33
  /** JSON, optional GDC cohort filter to restrict cases */
38
34
  filter0?: any //GdcFilter0
35
+ /** helps ds getter */
36
+ ds?: any
39
37
  }
40
38
 
41
39
  type ValidResponse = {
@@ -21,7 +21,7 @@ export type ProteomeAbundanceTerm = NumericBaseTerm & {
21
21
  bins?: PresetNumericBins
22
22
  unit?: string
23
23
  /** organism, assay and cohort this term belongs to */
24
- proteomeDetails: ProteomeDetails
24
+ dataTypeDetails: ProteomeDetails
25
25
  }
26
26
 
27
27
  export type ProteomeAbundanceTW = NumTW & { term: ProteomeAbundanceTerm }