@sjcrh/proteinpaint-types 2.185.0 → 2.187.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 (44) hide show
  1. package/dist/brainImaging.js +1 -1
  2. package/dist/{chunk-NO3ZZD3L.js → chunk-46DTJOK5.js} +6 -2
  3. package/dist/chunk-5N7V62ZL.js +231 -0
  4. package/dist/{chunk-2NINVZOB.js → chunk-AYTV7V46.js} +13 -5
  5. package/dist/{chunk-QMEKJW2A.js → chunk-DPJUULKQ.js} +6 -2
  6. package/dist/{chunk-TUM3OZ7K.js → chunk-DVMD6CBJ.js} +6 -2
  7. package/dist/{chunk-UGGNWTJZ.js → chunk-EBSBUEOG.js} +21 -1
  8. package/dist/{chunk-UWK6LBTQ.js → chunk-F2QRI6B2.js} +6 -2
  9. package/dist/{chunk-CWJZUUEF.js → chunk-FEMYT7FL.js} +21 -1
  10. package/dist/{chunk-TI565XIR.js → chunk-HG2TK6UO.js} +6 -2
  11. package/dist/{chunk-ONNT3XV7.js → chunk-I3QGRA7O.js} +7 -3
  12. package/dist/{chunk-WNUWRPXG.js → chunk-IIWTMQJZ.js} +6 -2
  13. package/dist/{chunk-Y6FNAG22.js → chunk-MMNSJ72P.js} +6 -2
  14. package/dist/{chunk-LOFBLGRE.js → chunk-NKV3NWPF.js} +6 -2
  15. package/dist/{chunk-NLANDPY7.js → chunk-OCH5BJCV.js} +21 -1
  16. package/dist/{chunk-INIT6CVR.js → chunk-RY4Y5ESC.js} +6 -2
  17. package/dist/{chunk-JMVDRHBL.js → chunk-SGMHY5K7.js} +15 -7
  18. package/dist/{chunk-LDLZU2QY.js → chunk-VWLYQ33F.js} +6 -2
  19. package/dist/{chunk-734AZGID.js → chunk-W2Z4RFLX.js} +6 -2
  20. package/dist/correlationVolcano.js +1 -1
  21. package/dist/grin2.js +1 -1
  22. package/dist/index.js +34 -26
  23. package/dist/termdb.DE.js +1 -1
  24. package/dist/termdb.categories.js +1 -1
  25. package/dist/termdb.chat.js +6 -2
  26. package/dist/termdb.chat2.js +1 -1
  27. package/dist/termdb.cluster.js +1 -1
  28. package/dist/termdb.descrstats.js +1 -1
  29. package/dist/termdb.diffMeth.js +1 -1
  30. package/dist/termdb.dmr.js +1 -1
  31. package/dist/termdb.numericcategories.js +1 -1
  32. package/dist/termdb.percentile.js +1 -1
  33. package/dist/termdb.profileForms2Scores.js +11 -0
  34. package/dist/termdb.singlecellDEgenes.js +1 -1
  35. package/dist/termdb.termsbyids.js +1 -1
  36. package/dist/termdb.topTermsByType.js +1 -1
  37. package/dist/termdb.topVariablyExpressedGenes.js +1 -1
  38. package/dist/termdb.violinBox.js +1 -1
  39. package/package.json +1 -1
  40. package/src/dataset.ts +17 -3
  41. package/src/routes/termdb.DE.ts +13 -3
  42. package/src/routes/termdb.cluster.ts +1 -1
  43. package/src/routes/termdb.profileForms2Scores.ts +25 -0
  44. package/src/terms/proteomeAbundance.ts +2 -1
@@ -2,7 +2,7 @@ import {
2
2
  percentilePayload,
3
3
  validPercentileRequest,
4
4
  validPercentileResponse
5
- } from "./chunk-ONNT3XV7.js";
5
+ } from "./chunk-I3QGRA7O.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  percentilePayload,
@@ -0,0 +1,11 @@
1
+ import {
2
+ ProfileForms2ScoresPayload,
3
+ validProfileForms2ScoresRequest,
4
+ validProfileForms2ScoresResponse
5
+ } from "./chunk-5N7V62ZL.js";
6
+ import "./chunk-YNHC5SXO.js";
7
+ export {
8
+ ProfileForms2ScoresPayload,
9
+ validProfileForms2ScoresRequest,
10
+ validProfileForms2ScoresResponse
11
+ };
@@ -2,7 +2,7 @@ import {
2
2
  termdbSingleCellDEgenesPayload,
3
3
  validTermdbSingleCellDEgenesRequest,
4
4
  validTermdbSingleCellDEgenesResponse
5
- } from "./chunk-NLANDPY7.js";
5
+ } from "./chunk-OCH5BJCV.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  termdbSingleCellDEgenesPayload,
@@ -2,7 +2,7 @@ import {
2
2
  termsByIdsPayload,
3
3
  validTermsByIdsRequest,
4
4
  validTermsByIdsResponse
5
- } from "./chunk-UWK6LBTQ.js";
5
+ } from "./chunk-F2QRI6B2.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-2NINVZOB.js";
5
+ } from "./chunk-AYTV7V46.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-QMEKJW2A.js";
5
+ } from "./chunk-DPJUULKQ.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  termdbTopVariablyExpressedGenesPayload,
@@ -2,7 +2,7 @@ import {
2
2
  validViolinBoxRequest,
3
3
  validViolinBoxResponse,
4
4
  violinBoxPayload
5
- } from "./chunk-WNUWRPXG.js";
5
+ } from "./chunk-IIWTMQJZ.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  validViolinBoxRequest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.185.0",
3
+ "version": "2.187.0",
4
4
  "type": "module",
5
5
  "description": "Shared type definitions between ProteinPaint server and client code",
6
6
  "main": "src/index.ts",
package/src/dataset.ts CHANGED
@@ -734,9 +734,21 @@ type ProteomeAssayConfig = {
734
734
  export type ProteomeAbundanceQuery = {
735
735
  /** database file path */
736
736
  dbfile?: string
737
- overlayTerm?: BaseTerm
738
- /** document structure */
739
- assays: {
737
+ /** organism-keyed structure (new format) */
738
+ organisms?: {
739
+ [organism: string]: {
740
+ overlayTerm: BaseTerm
741
+ columnIdx: number
742
+ columnValue?: string
743
+ /** genome assembly name for this organism, e.g. 'hg38' or 'mm10' */
744
+ genomeName?: string
745
+ assays: {
746
+ [assayName: string]: ProteomeAssayConfig
747
+ }
748
+ }
749
+ }
750
+ /** flat assays structure (legacy format) */
751
+ assays?: {
740
752
  [assayName: string]: ProteomeAssayConfig
741
753
  }
742
754
  samples?: number[]
@@ -1377,6 +1389,8 @@ type MatrixSettings = {
1377
1389
  cnvUnit?: 'log2ratio' | 'segmedian'
1378
1390
  /** whether to show white cell border for SNVindel in oncoPrint mode */
1379
1391
  oncoPrintSNVindelCellBorder?: boolean
1392
+ /** use a geneset edit UI without or with initial radio inputs */
1393
+ genesetEditUiVersion?: '' | 'withTabs'
1380
1394
  }
1381
1395
 
1382
1396
  type NumericDictTermClusterSettings = {
@@ -94,13 +94,23 @@ export type VolcanoData<T extends DataEntry> = {
94
94
  /** Coordinate metadata returned by the `volcano` renderer, used by the client to overlay
95
95
  * interactive top-significant circles on top of the server-drawn PNG. */
96
96
  export type PlotExtent = {
97
- /** Data-space x domain used during rendering. */
97
+ /** Padded data-space x domain used to position overlay dots so points near
98
+ * the real-data edges stay fully visible (mirror of manhattan's yPlot domain). */
98
99
  xMin: number
99
100
  xMax: number
100
- /** Data-space y domain used during rendering (on -log10 p-value scale). */
101
+ /** Padded data-space y domain (on -log10 p-value scale). */
101
102
  yMin: number
102
103
  yMax: number
103
- /** PNG canvas dimensions. */
104
+ /** Unpadded data-space x domain — used for the visible axis labels/ticks
105
+ * so the axis only spans the real data region. */
106
+ xMinUnpadded: number
107
+ xMaxUnpadded: number
108
+ /** Unpadded data-space y domain. */
109
+ yMinUnpadded: number
110
+ yMaxUnpadded: number
111
+ /** Dot radius in pixels (echoed back so overlay rings match the PNG). */
112
+ dotRadiusPx: number
113
+ /** PNG canvas dimensions (already include 2*dotRadiusPx of padding). */
104
114
  pixelWidth: number
105
115
  pixelHeight: number
106
116
  /** Inner drawing rect inside the PNG (after axis margins). Client overlay circles
@@ -66,7 +66,7 @@ export type TermdbClusterRequestProteomeAbundance = TermdbClusterRequestBase & {
66
66
  terms: ProteomeAbundanceTW[]
67
67
  /** perform z-score transformation on values */
68
68
  zScoreTransformation?: string
69
- /** assay type and cohort for the selected proteome data */
69
+ /** organism, assay type and cohort for the selected proteome data */
70
70
  proteomeDetails: ProteomeDetails
71
71
  }
72
72
 
@@ -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
+ }
@@ -8,6 +8,7 @@ ProteomeTermSettingInstance
8
8
  */
9
9
 
10
10
  export type ProteomeDetails = {
11
+ organism: string
11
12
  assay: string
12
13
  cohort: string
13
14
  }
@@ -19,7 +20,7 @@ export type ProteomeAbundanceTerm = NumericBaseTerm & {
19
20
  protein: string
20
21
  bins?: PresetNumericBins
21
22
  unit?: string
22
- /** assay and cohort this term belongs to */
23
+ /** organism, assay and cohort this term belongs to */
23
24
  proteomeDetails: ProteomeDetails
24
25
  }
25
26