@sjcrh/proteinpaint-types 2.186.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 (69) 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-5N7V62ZL.js +231 -0
  5. package/dist/{chunk-DII56MJ7.js → chunk-AGMCAWBR.js} +23 -1
  6. package/dist/{chunk-OCH5BJCV.js → chunk-BZVFHGN3.js} +3 -3
  7. package/dist/{chunk-IIWTMQJZ.js → chunk-DDKGTDDB.js} +19 -7
  8. package/dist/{chunk-FRXRNCDV.js → chunk-DI4Q26E7.js} +2 -0
  9. package/dist/{chunk-T2HQMRX7.js → chunk-DUCWIRPX.js} +26 -6
  10. package/dist/{chunk-EBSBUEOG.js → chunk-G4MMYXP6.js} +3 -3
  11. package/dist/{chunk-VCEWZVLZ.js → chunk-IS74WYQF.js} +7 -3
  12. package/dist/{chunk-FEMYT7FL.js → chunk-JDF7A2LY.js} +3 -3
  13. package/dist/{chunk-RY4Y5ESC.js → chunk-JEQGBUK2.js} +7 -7
  14. package/dist/{chunk-AYTV7V46.js → chunk-LC6KLHCJ.js} +23 -23
  15. package/dist/{chunk-VWLYQ33F.js → chunk-LQYSPLDQ.js} +7 -7
  16. package/dist/{chunk-I3QGRA7O.js → chunk-MKYLCBTP.js} +16 -16
  17. package/dist/{chunk-DVMD6CBJ.js → chunk-MNT3GF7M.js} +12 -8
  18. package/dist/{chunk-46DTJOK5.js → chunk-MVB7LQS5.js} +7 -7
  19. package/dist/chunk-QNH3PKJK.js +343 -0
  20. package/dist/{chunk-F2QRI6B2.js → chunk-SDZIGJY3.js} +7 -7
  21. package/dist/{chunk-W2Z4RFLX.js → chunk-SZZXZZKO.js} +7 -7
  22. package/dist/{chunk-SGMHY5K7.js → chunk-TEXOICIS.js} +40 -40
  23. package/dist/{chunk-MMNSJ72P.js → chunk-TQQWSHFM.js} +7 -7
  24. package/dist/{chunk-F5IWKWVX.js → chunk-ULKGA7YY.js} +17 -9
  25. package/dist/{chunk-DPJUULKQ.js → chunk-V3JDD3ZG.js} +11 -19
  26. package/dist/{chunk-V5NAE7YA.js → chunk-VJB6F2HL.js} +32 -6
  27. package/dist/{chunk-NKV3NWPF.js → chunk-X5E72ZXA.js} +7 -7
  28. package/dist/{chunk-KVE2NBC6.js → chunk-YW5G4M5D.js} +50 -24
  29. package/dist/{chunk-HG2TK6UO.js → chunk-ZMDZYG5B.js} +7 -7
  30. package/dist/correlationVolcano.js +1 -1
  31. package/dist/deleteWSITileSelection.js +1 -1
  32. package/dist/genesetEnrichment.js +1 -1
  33. package/dist/grin2.js +1 -1
  34. package/dist/index.js +75 -47
  35. package/dist/samplewsimages.js +3 -1
  36. package/dist/saveWSIAnnotation.js +1 -1
  37. package/dist/termdb.DE.js +1 -1
  38. package/dist/termdb.categories.js +1 -1
  39. package/dist/termdb.chat.js +13 -9
  40. package/dist/termdb.chat2.js +5 -3
  41. package/dist/termdb.cluster.js +1 -1
  42. package/dist/termdb.dapVolcano.js +11 -0
  43. package/dist/termdb.descrstats.js +1 -1
  44. package/dist/termdb.diffMeth.js +1 -1
  45. package/dist/termdb.dmr.js +1 -1
  46. package/dist/termdb.numericcategories.js +1 -1
  47. package/dist/termdb.percentile.js +1 -1
  48. package/dist/termdb.profileForms2Scores.js +11 -0
  49. package/dist/termdb.runChart.js +3 -1
  50. package/dist/termdb.singlecellDEgenes.js +1 -1
  51. package/dist/termdb.singlecellSamples.js +1 -1
  52. package/dist/termdb.termsbyids.js +1 -1
  53. package/dist/termdb.topTermsByType.js +1 -1
  54. package/dist/termdb.topVariablyExpressedGenes.js +1 -1
  55. package/dist/termdb.violinBox.js +7 -1
  56. package/package.json +4 -4
  57. package/src/dataset.ts +19 -10
  58. package/src/index.ts +1 -0
  59. package/src/routes/aiProjectSelectedWSImages.ts +9 -1
  60. package/src/routes/deleteWSITileSelection.ts +1 -2
  61. package/src/routes/genesetEnrichment.ts +2 -0
  62. package/src/routes/saveWSIAnnotation.ts +2 -1
  63. package/src/routes/termdb.DE.ts +9 -7
  64. package/src/routes/termdb.chat2.ts +7 -2
  65. package/src/routes/termdb.dapVolcano.ts +35 -0
  66. package/src/routes/termdb.profileForms2Scores.ts +25 -0
  67. package/src/routes/termdb.singlecellSamples.ts +1 -1
  68. package/src/routes/termdb.topVariablyExpressedGenes.ts +3 -5
  69. package/src/terms/proteomeAbundance.ts +1 -1
@@ -0,0 +1,25 @@
1
+ import type { RoutePayload } from './routeApi.js'
2
+
3
+ export type ProfileForms2ScoresRequest = {
4
+ // q is optional: term wrappers from getMultivalueTWs() carry no q field,
5
+ // and JSON.stringify drops `q: undefined`, so the field may be absent on the wire.
6
+ scoreTerms: { term: { id: string }; q?: any }[]
7
+ scScoreTerms?: { term: { id: string }; q?: any }[]
8
+ filter?: any
9
+ filterByUserSites?: boolean
10
+ }
11
+
12
+ export type ProfileForms2ScoresResponse = {
13
+ term2Score: { [termId: string]: { [category: string]: number } }
14
+ sites: { label: string; value: string }[]
15
+ n: number
16
+ }
17
+
18
+ export const ProfileForms2ScoresPayload: RoutePayload = {
19
+ request: {
20
+ typeId: 'ProfileForms2ScoresRequest'
21
+ },
22
+ response: {
23
+ typeId: 'ProfileForms2ScoresResponse'
24
+ }
25
+ }
@@ -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 }