@sjcrh/proteinpaint-types 2.150.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.
- package/dist/brainImaging.js +1 -1
- package/dist/{chunk-OSBVSZBB.js → chunk-5BNDT4E6.js} +13 -77
- package/dist/{chunk-TTUU5XQC.js → chunk-5F24QFE7.js} +471 -253
- package/dist/{chunk-KSVIBMFQ.js → chunk-5OMJAZK4.js} +323 -185
- package/dist/{chunk-WL7ZVGZS.js → chunk-C27KCAQH.js} +476 -302
- package/dist/{chunk-5MGSKBUU.js → chunk-CC32XCET.js} +950 -574
- package/dist/{chunk-OZ3CVAFP.js → chunk-EBPGV76U.js} +279 -157
- package/dist/{chunk-KQNLROUN.js → chunk-GZKTMVAU.js} +750 -410
- package/dist/{chunk-3SKFYOKV.js → chunk-JT4DSNJ3.js} +476 -302
- package/dist/{chunk-75GS5ZG5.js → chunk-LXW2FSLR.js} +526 -352
- package/dist/{chunk-RA7IEGS4.js → chunk-MCL6EDOS.js} +482 -308
- package/dist/{chunk-DBSRGRXR.js → chunk-OAETETAO.js} +279 -157
- package/dist/{chunk-4MLQS6N7.js → chunk-OLWNM7QP.js} +279 -157
- package/dist/{chunk-MMFL6N5M.js → chunk-OLXOQLZH.js} +279 -157
- package/dist/{chunk-4SJC57Y6.js → chunk-ZXPLL3NT.js} +476 -302
- package/dist/correlationVolcano.js +1 -1
- package/dist/index.js +14 -14
- package/dist/termdb.boxplot.js +1 -1
- package/dist/termdb.categories.js +1 -1
- package/dist/termdb.chat.js +1 -1
- package/dist/termdb.cluster.js +1 -1
- package/dist/termdb.descrstats.js +1 -1
- package/dist/termdb.numericcategories.js +1 -1
- package/dist/termdb.percentile.js +1 -1
- package/dist/termdb.sampleScatter.js +1 -1
- package/dist/termdb.termsbyids.js +1 -1
- package/dist/termdb.topTermsByType.js +1 -1
- package/dist/termdb.topVariablyExpressedGenes.js +1 -1
- package/dist/termdb.violin.js +1 -1
- package/package.json +1 -1
- package/src/routes/termdb.sampleScatter.ts +1 -3
- package/src/terms/numeric.ts +17 -1
- package/src/terms/term.ts +5 -0
package/dist/index.js
CHANGED
|
@@ -7,17 +7,17 @@ import {
|
|
|
7
7
|
termdbTopTermsByTypePayload,
|
|
8
8
|
validTermdbTopTermsByTypeRequest,
|
|
9
9
|
validTermdbTopTermsByTypeResponse
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GZKTMVAU.js";
|
|
11
11
|
import {
|
|
12
12
|
termdbTopVariablyExpressedGenesPayload,
|
|
13
13
|
validTermdbTopVariablyExpressedGenesRequest,
|
|
14
14
|
validTermdbTopVariablyExpressedGenesResponse
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-EBPGV76U.js";
|
|
16
16
|
import {
|
|
17
17
|
validViolinRequest,
|
|
18
18
|
validViolinResponse,
|
|
19
19
|
violinPayload
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-OLXOQLZH.js";
|
|
21
21
|
import {
|
|
22
22
|
tilePayload,
|
|
23
23
|
validTileRequest,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
termdbSampleScatterPayload,
|
|
43
43
|
validTermdbSampleScatterRequest,
|
|
44
44
|
validTermdbSampleScatterResponse
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-5BNDT4E6.js";
|
|
46
46
|
import {
|
|
47
47
|
termdbSingleSampleMutationPayload,
|
|
48
48
|
validTermdbSingleSampleMutationRequest,
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
termsByIdsPayload,
|
|
73
73
|
validTermsByIdsRequest,
|
|
74
74
|
validTermsByIdsResponse
|
|
75
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
95
|
+
} from "./chunk-OLWNM7QP.js";
|
|
96
96
|
import {
|
|
97
97
|
percentilePayload,
|
|
98
98
|
validPercentileRequest,
|
|
99
99
|
validPercentileResponse
|
|
100
|
-
} from "./chunk-
|
|
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-
|
|
135
|
+
} from "./chunk-JT4DSNJ3.js";
|
|
136
136
|
import {
|
|
137
137
|
termdbCategoriesPayload,
|
|
138
138
|
validCategoriesRequest,
|
|
139
139
|
validCategoriesResponse
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-MCL6EDOS.js";
|
|
141
141
|
import {
|
|
142
142
|
ChatPayload,
|
|
143
143
|
validChatRequest,
|
|
144
144
|
validChatResponse
|
|
145
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-OAETETAO.js";
|
|
146
146
|
import {
|
|
147
147
|
termdbClusterPayload,
|
|
148
148
|
validTermdbClusterRequest,
|
|
149
149
|
validTermdbClusterResponse
|
|
150
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
300
|
+
} from "./chunk-5OMJAZK4.js";
|
|
301
301
|
import {
|
|
302
302
|
brainImagingSamplesPayload,
|
|
303
303
|
validBrainImagingSamplesRequest,
|
package/dist/termdb.boxplot.js
CHANGED
package/dist/termdb.chat.js
CHANGED
package/dist/termdb.cluster.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
termdbTopVariablyExpressedGenesPayload,
|
|
3
3
|
validTermdbTopVariablyExpressedGenesRequest,
|
|
4
4
|
validTermdbTopVariablyExpressedGenesResponse
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EBPGV76U.js";
|
|
6
6
|
import "./chunk-YNHC5SXO.js";
|
|
7
7
|
export {
|
|
8
8
|
termdbTopVariablyExpressedGenesPayload,
|
package/dist/termdb.violin.js
CHANGED
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@ export type TermdbSampleScatterRequest = {
|
|
|
19
19
|
export type ScatterSample = {
|
|
20
20
|
category: string
|
|
21
21
|
sample: string
|
|
22
|
-
info
|
|
22
|
+
info?: { [index: string]: any }
|
|
23
23
|
shape: string
|
|
24
24
|
x: number
|
|
25
25
|
y: number
|
|
@@ -37,10 +37,8 @@ export type ShapeMap = { [index: string]: ShapeObject }
|
|
|
37
37
|
type ScatterResult = {
|
|
38
38
|
[index: string]: {
|
|
39
39
|
colorLegend: ColorLegendEntry[]
|
|
40
|
-
colorMap: ColorMap
|
|
41
40
|
samples: ScatterSample[]
|
|
42
41
|
shapeLegend: ShapeLegendEntry[]
|
|
43
|
-
shapeMap: ShapeMap
|
|
44
42
|
}
|
|
45
43
|
}
|
|
46
44
|
|
package/src/terms/numeric.ts
CHANGED
|
@@ -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:
|
|
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
|