@sjcrh/proteinpaint-types 2.151.1-0 → 2.152.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 (30) hide show
  1. package/dist/brainImaging.js +1 -1
  2. package/dist/{chunk-TTUU5XQC.js → chunk-5F24QFE7.js} +471 -253
  3. package/dist/{chunk-KSVIBMFQ.js → chunk-5OMJAZK4.js} +323 -185
  4. package/dist/{chunk-WL7ZVGZS.js → chunk-C27KCAQH.js} +476 -302
  5. package/dist/{chunk-5MGSKBUU.js → chunk-CC32XCET.js} +950 -574
  6. package/dist/{chunk-OZ3CVAFP.js → chunk-EBPGV76U.js} +279 -157
  7. package/dist/{chunk-KQNLROUN.js → chunk-GZKTMVAU.js} +750 -410
  8. package/dist/{chunk-3SKFYOKV.js → chunk-JT4DSNJ3.js} +476 -302
  9. package/dist/{chunk-75GS5ZG5.js → chunk-LXW2FSLR.js} +526 -352
  10. package/dist/{chunk-RA7IEGS4.js → chunk-MCL6EDOS.js} +482 -308
  11. package/dist/{chunk-DBSRGRXR.js → chunk-OAETETAO.js} +279 -157
  12. package/dist/{chunk-4MLQS6N7.js → chunk-OLWNM7QP.js} +279 -157
  13. package/dist/{chunk-MMFL6N5M.js → chunk-OLXOQLZH.js} +279 -157
  14. package/dist/{chunk-4SJC57Y6.js → chunk-ZXPLL3NT.js} +476 -302
  15. package/dist/correlationVolcano.js +1 -1
  16. package/dist/index.js +13 -13
  17. package/dist/termdb.boxplot.js +1 -1
  18. package/dist/termdb.categories.js +1 -1
  19. package/dist/termdb.chat.js +1 -1
  20. package/dist/termdb.cluster.js +1 -1
  21. package/dist/termdb.descrstats.js +1 -1
  22. package/dist/termdb.numericcategories.js +1 -1
  23. package/dist/termdb.percentile.js +1 -1
  24. package/dist/termdb.termsbyids.js +1 -1
  25. package/dist/termdb.topTermsByType.js +1 -1
  26. package/dist/termdb.topVariablyExpressedGenes.js +1 -1
  27. package/dist/termdb.violin.js +1 -1
  28. package/package.json +1 -1
  29. package/src/terms/numeric.ts +17 -1
  30. package/src/terms/term.ts +5 -0
@@ -2,7 +2,7 @@ import {
2
2
  CorrelationVolcanoPayload,
3
3
  validCorrelationVolcanoRequest,
4
4
  validCorrelationVolcanoResponse
5
- } from "./chunk-75GS5ZG5.js";
5
+ } from "./chunk-LXW2FSLR.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  CorrelationVolcanoPayload,
package/dist/index.js CHANGED
@@ -7,17 +7,17 @@ import {
7
7
  termdbTopTermsByTypePayload,
8
8
  validTermdbTopTermsByTypeRequest,
9
9
  validTermdbTopTermsByTypeResponse
10
- } from "./chunk-KQNLROUN.js";
10
+ } from "./chunk-GZKTMVAU.js";
11
11
  import {
12
12
  termdbTopVariablyExpressedGenesPayload,
13
13
  validTermdbTopVariablyExpressedGenesRequest,
14
14
  validTermdbTopVariablyExpressedGenesResponse
15
- } from "./chunk-OZ3CVAFP.js";
15
+ } from "./chunk-EBPGV76U.js";
16
16
  import {
17
17
  validViolinRequest,
18
18
  validViolinResponse,
19
19
  violinPayload
20
- } from "./chunk-MMFL6N5M.js";
20
+ } from "./chunk-OLXOQLZH.js";
21
21
  import {
22
22
  tilePayload,
23
23
  validTileRequest,
@@ -72,7 +72,7 @@ import {
72
72
  termsByIdsPayload,
73
73
  validTermsByIdsRequest,
74
74
  validTermsByIdsResponse
75
- } from "./chunk-WL7ZVGZS.js";
75
+ } from "./chunk-C27KCAQH.js";
76
76
  import {
77
77
  termdbCohortsPayload,
78
78
  validTermdbCohortsRequest,
@@ -82,7 +82,7 @@ import {
82
82
  descrStatsPayload,
83
83
  validDescrStatsRequest,
84
84
  validDescrStatsResponse
85
- } from "./chunk-4SJC57Y6.js";
85
+ } from "./chunk-ZXPLL3NT.js";
86
86
  import {
87
87
  FilterTermValuesPayload,
88
88
  validFilterTermValuesRequest,
@@ -92,12 +92,12 @@ import {
92
92
  numericCategoriesPayload,
93
93
  validNumericCategoriesRequest,
94
94
  validNumericCategoriesResponse
95
- } from "./chunk-4MLQS6N7.js";
95
+ } from "./chunk-OLWNM7QP.js";
96
96
  import {
97
97
  percentilePayload,
98
98
  validPercentileRequest,
99
99
  validPercentileResponse
100
- } from "./chunk-TTUU5XQC.js";
100
+ } from "./chunk-5F24QFE7.js";
101
101
  import {
102
102
  ProfileFormScoresPayload,
103
103
  validProfileFormScoresRequest,
@@ -132,22 +132,22 @@ import {
132
132
  boxplotPayload,
133
133
  validBoxPlotRequest,
134
134
  validBoxPlotResponse
135
- } from "./chunk-3SKFYOKV.js";
135
+ } from "./chunk-JT4DSNJ3.js";
136
136
  import {
137
137
  termdbCategoriesPayload,
138
138
  validCategoriesRequest,
139
139
  validCategoriesResponse
140
- } from "./chunk-RA7IEGS4.js";
140
+ } from "./chunk-MCL6EDOS.js";
141
141
  import {
142
142
  ChatPayload,
143
143
  validChatRequest,
144
144
  validChatResponse
145
- } from "./chunk-DBSRGRXR.js";
145
+ } from "./chunk-OAETETAO.js";
146
146
  import {
147
147
  termdbClusterPayload,
148
148
  validTermdbClusterRequest,
149
149
  validTermdbClusterResponse
150
- } from "./chunk-5MGSKBUU.js";
150
+ } from "./chunk-CC32XCET.js";
151
151
  import {
152
152
  termdbCohortSummaryPayload,
153
153
  validTermdbCohortSummaryRequest,
@@ -239,7 +239,7 @@ import {
239
239
  CorrelationVolcanoPayload,
240
240
  validCorrelationVolcanoRequest,
241
241
  validCorrelationVolcanoResponse
242
- } from "./chunk-75GS5ZG5.js";
242
+ } from "./chunk-LXW2FSLR.js";
243
243
  import {
244
244
  datasetPayload,
245
245
  validDatasetRequest,
@@ -297,7 +297,7 @@ import {
297
297
  brainImagingPayload,
298
298
  validBrainImagingRequest,
299
299
  validBrainImagingResponse
300
- } from "./chunk-KSVIBMFQ.js";
300
+ } from "./chunk-5OMJAZK4.js";
301
301
  import {
302
302
  brainImagingSamplesPayload,
303
303
  validBrainImagingSamplesRequest,
@@ -2,7 +2,7 @@ import {
2
2
  boxplotPayload,
3
3
  validBoxPlotRequest,
4
4
  validBoxPlotResponse
5
- } from "./chunk-3SKFYOKV.js";
5
+ } from "./chunk-JT4DSNJ3.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  boxplotPayload,
@@ -2,7 +2,7 @@ import {
2
2
  termdbCategoriesPayload,
3
3
  validCategoriesRequest,
4
4
  validCategoriesResponse
5
- } from "./chunk-RA7IEGS4.js";
5
+ } from "./chunk-MCL6EDOS.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  termdbCategoriesPayload,
@@ -2,7 +2,7 @@ import {
2
2
  ChatPayload,
3
3
  validChatRequest,
4
4
  validChatResponse
5
- } from "./chunk-DBSRGRXR.js";
5
+ } from "./chunk-OAETETAO.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  ChatPayload,
@@ -2,7 +2,7 @@ import {
2
2
  termdbClusterPayload,
3
3
  validTermdbClusterRequest,
4
4
  validTermdbClusterResponse
5
- } from "./chunk-5MGSKBUU.js";
5
+ } from "./chunk-CC32XCET.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  termdbClusterPayload,
@@ -2,7 +2,7 @@ import {
2
2
  descrStatsPayload,
3
3
  validDescrStatsRequest,
4
4
  validDescrStatsResponse
5
- } from "./chunk-4SJC57Y6.js";
5
+ } from "./chunk-ZXPLL3NT.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  descrStatsPayload,
@@ -2,7 +2,7 @@ import {
2
2
  numericCategoriesPayload,
3
3
  validNumericCategoriesRequest,
4
4
  validNumericCategoriesResponse
5
- } from "./chunk-4MLQS6N7.js";
5
+ } from "./chunk-OLWNM7QP.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-TTUU5XQC.js";
5
+ } from "./chunk-5F24QFE7.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  percentilePayload,
@@ -2,7 +2,7 @@ import {
2
2
  termsByIdsPayload,
3
3
  validTermsByIdsRequest,
4
4
  validTermsByIdsResponse
5
- } from "./chunk-WL7ZVGZS.js";
5
+ } from "./chunk-C27KCAQH.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-KQNLROUN.js";
5
+ } from "./chunk-GZKTMVAU.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-OZ3CVAFP.js";
5
+ } from "./chunk-EBPGV76U.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  termdbTopVariablyExpressedGenesPayload,
@@ -2,7 +2,7 @@ import {
2
2
  validViolinRequest,
3
3
  validViolinResponse,
4
4
  violinPayload
5
- } from "./chunk-MMFL6N5M.js";
5
+ } from "./chunk-OLXOQLZH.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  validViolinRequest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.151.1-0",
3
+ "version": "2.152.0",
4
4
  "type": "module",
5
5
  "description": "Shared type definitions between ProteinPaint server and client code",
6
6
  "main": "src/index.ts",
@@ -108,14 +108,27 @@ export type RegularNumericBinConfig = MinBaseQ & {
108
108
  // if last_bin?.start is set, then a fixed last bin is used; otherwise it's not fixed and computed from data
109
109
  last_bin?: StopUnboundedBin | FullyBoundedBin
110
110
  label_offset?: number
111
+ startinclusive?: boolean
112
+ stopinclusive?: boolean
113
+ /** a d3-format value to format the bin boundary values.
114
+ * Defaults to none, in which case the computed bin start and stop values
115
+ * (float numbers in javascript) will be used as-is for labels.
116
+ * Or, when using the browser UI to edit the numeric bin, the number of decimals
117
+ * in the bin_size will be used as the number of fixed decimals;
118
+ * for example, bin_size = 0.25 and bin_size = 0.250 will imply a ‘.2f’ and ‘.3f’ d3-format value, respectively.
119
+ * Note that the generated bin labels may use integer values in some cases for less clutter, such as when bins.size = 1.
120
+ * */
121
+ rounding?: string
111
122
  }
112
123
 
124
+ export type CustomNumericBinConfigLst = [NumericBin, ...NumericBin[]]
125
+
113
126
  export type CustomNumericBinConfig = MinBaseQ & {
114
127
  type: 'custom-bin'
115
128
  mode?: 'discrete' | 'binary'
116
129
  // since ts will allow NumericBin[] to be empty,
117
130
  // use this workaround to define a non-empty array
118
- lst: [NumericBin, ...NumericBin[]]
131
+ lst: CustomNumericBinConfigLst
119
132
  preferredBins?: 'median'
120
133
  }
121
134
 
@@ -142,6 +155,8 @@ export type BinaryNumericQ = MinBaseQ & {
142
155
  type: 'custom-bin'
143
156
  // tuple type with 2 members
144
157
  lst: [StartUnboundedBin | FullyBoundedBin, StopUnboundedBin | FullyBoundedBin]
158
+ cutoffType?: 'normal' | 'percentile'
159
+ cutoffPercentile?: number
145
160
  }
146
161
 
147
162
  export type ContinuousNumericQ = MinBaseQ & {
@@ -154,6 +169,7 @@ export type ContinuousNumericQ = MinBaseQ & {
154
169
  // making type optional here makes NumericQ operations/conditions
155
170
  // work consistently within the TermWrapper union type
156
171
  type?: undefined
172
+ scale?: number
157
173
  }
158
174
 
159
175
  export type SplineNumericQ = MinBaseQ & {
package/src/terms/term.ts CHANGED
@@ -39,6 +39,11 @@ export type BaseTerm = {
39
39
  /** Do not build .values{} when building termdb. Used for
40
40
  making categorical term with empty .values{} in TermdbTest */
41
41
  skipValuesBuild?: boolean
42
+ valueConversion?: {
43
+ fromUnit: string
44
+ toUnit: string
45
+ scaleFactor: string
46
+ }
42
47
  }
43
48
 
44
49
  // NumericTerm includes integer, float, date, geneExpression, metaboliteIntensity, and other non-dict terms