@sjcrh/proteinpaint-types 2.140.1-0 → 2.140.1
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/aiProjectAdmin.js +1 -1
- package/dist/brainImaging.js +1 -1
- package/dist/{chunk-KDHGWAOS.js → chunk-2WLN6PMW.js} +575 -367
- package/dist/{chunk-G5BYLEJC.js → chunk-AADDTYUL.js} +266 -154
- package/dist/{chunk-2QKCLUH3.js → chunk-BWLSDIHM.js} +575 -367
- package/dist/{chunk-P3Z422N2.js → chunk-ECF6WSOD.js} +266 -154
- package/dist/{chunk-NHELOLDH.js → chunk-EWON4FG5.js} +2401 -644
- package/dist/{chunk-ZHCVV36H.js → chunk-FZJ3E7JA.js} +579 -371
- package/dist/{chunk-34LXTZYA.js → chunk-IDP5KXE6.js} +632 -424
- package/dist/{chunk-HJ7XFSJK.js → chunk-KS74VVON.js} +262 -150
- package/dist/{chunk-Y6Z6XAFN.js → chunk-PPFFVFUI.js} +266 -154
- package/dist/chunk-TMQI47YT.js +189 -0
- package/dist/{chunk-5BKOSJEU.js → chunk-WKT3H4P4.js} +731 -409
- package/dist/{chunk-F2ZZ5J3F.js → chunk-XXHHUIEV.js} +575 -367
- package/dist/{chunk-4S36DRJ4.js → chunk-ZA3FDGAD.js} +465 -255
- package/dist/correlationVolcano.js +1 -1
- package/dist/index.js +42 -50
- package/dist/termdb.boxplot.js +1 -1
- package/dist/termdb.categories.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.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/dataset.ts +10 -2
- package/src/index.ts +0 -1
- package/src/routes/aiProjectAdmin.ts +15 -6
- package/src/routes/termdb.cluster.ts +6 -6
- package/src/terms/geneExpression.ts +13 -17
- package/src/terms/numeric.ts +7 -18
- package/src/terms/singleCellGeneExpression.ts +3 -4
- package/dist/aiProjectList.js +0 -11
- package/dist/chunk-4KJDCFS4.js +0 -123
- package/dist/chunk-EAHOJPLM.js +0 -96
- package/src/routes/aiProjectList.ts +0 -20
package/dist/index.js
CHANGED
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
validWSISamplesRequest,
|
|
3
|
-
validWSISamplesResponse,
|
|
4
|
-
wsiSamplesPayload
|
|
5
|
-
} from "./chunk-W6NLM363.js";
|
|
6
|
-
import {
|
|
7
|
-
termChildrenPayload,
|
|
8
|
-
validTermChildrenRequest,
|
|
9
|
-
validTermChildrenResponse
|
|
10
|
-
} from "./chunk-HKGWC7OO.js";
|
|
11
1
|
import {
|
|
12
2
|
termsByIdsPayload,
|
|
13
3
|
validTermsByIdsRequest,
|
|
14
4
|
validTermsByIdsResponse
|
|
15
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-BWLSDIHM.js";
|
|
16
6
|
import {
|
|
17
7
|
topMutatedGenePayload,
|
|
18
8
|
validtopMutatedGeneRequest,
|
|
@@ -22,17 +12,17 @@ import {
|
|
|
22
12
|
termdbTopTermsByTypePayload,
|
|
23
13
|
validTermdbTopTermsByTypeRequest,
|
|
24
14
|
validTermdbTopTermsByTypeResponse
|
|
25
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WKT3H4P4.js";
|
|
26
16
|
import {
|
|
27
17
|
termdbTopVariablyExpressedGenesPayload,
|
|
28
18
|
validTermdbTopVariablyExpressedGenesRequest,
|
|
29
19
|
validTermdbTopVariablyExpressedGenesResponse
|
|
30
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ECF6WSOD.js";
|
|
31
21
|
import {
|
|
32
22
|
validViolinRequest,
|
|
33
23
|
validViolinResponse,
|
|
34
24
|
violinPayload
|
|
35
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-PPFFVFUI.js";
|
|
36
26
|
import {
|
|
37
27
|
tilePayload,
|
|
38
28
|
validTileRequest,
|
|
@@ -44,10 +34,10 @@ import {
|
|
|
44
34
|
wsImagesPayload
|
|
45
35
|
} from "./chunk-CQDDRHRY.js";
|
|
46
36
|
import {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
} from "./chunk-
|
|
37
|
+
validWSISamplesRequest,
|
|
38
|
+
validWSISamplesResponse,
|
|
39
|
+
wsiSamplesPayload
|
|
40
|
+
} from "./chunk-W6NLM363.js";
|
|
51
41
|
import {
|
|
52
42
|
ProfileScoresPayload,
|
|
53
43
|
validProfileScoresRequest,
|
|
@@ -84,15 +74,15 @@ import {
|
|
|
84
74
|
validTermdbSingleCellSamplesResponse
|
|
85
75
|
} from "./chunk-LPBYQJG4.js";
|
|
86
76
|
import {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
} from "./chunk-
|
|
77
|
+
termChildrenPayload,
|
|
78
|
+
validTermChildrenRequest,
|
|
79
|
+
validTermChildrenResponse
|
|
80
|
+
} from "./chunk-HKGWC7OO.js";
|
|
91
81
|
import {
|
|
92
82
|
termdbClusterPayload,
|
|
93
83
|
validTermdbClusterRequest,
|
|
94
84
|
validTermdbClusterResponse
|
|
95
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-EWON4FG5.js";
|
|
96
86
|
import {
|
|
97
87
|
termdbCohortSummaryPayload,
|
|
98
88
|
validTermdbCohortSummaryRequest,
|
|
@@ -107,7 +97,7 @@ import {
|
|
|
107
97
|
descrStatsPayload,
|
|
108
98
|
validDescrStatsRequest,
|
|
109
99
|
validDescrStatsResponse
|
|
110
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-2WLN6PMW.js";
|
|
111
101
|
import {
|
|
112
102
|
FilterTermValuesPayload,
|
|
113
103
|
validFilterTermValuesRequest,
|
|
@@ -117,17 +107,17 @@ import {
|
|
|
117
107
|
numericCategoriesPayload,
|
|
118
108
|
validNumericCategoriesRequest,
|
|
119
109
|
validNumericCategoriesResponse
|
|
120
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-AADDTYUL.js";
|
|
121
111
|
import {
|
|
122
112
|
percentilePayload,
|
|
123
113
|
validPercentileRequest,
|
|
124
114
|
validPercentileResponse
|
|
125
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-ZA3FDGAD.js";
|
|
126
116
|
import {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
} from "./chunk-
|
|
117
|
+
ProfileFormScoresPayload,
|
|
118
|
+
validProfileFormScoresRequest,
|
|
119
|
+
validProfileFormScoresResponse
|
|
120
|
+
} from "./chunk-E5MPHTIA.js";
|
|
131
121
|
import {
|
|
132
122
|
ntseqPayload,
|
|
133
123
|
validNtseqRequest,
|
|
@@ -162,12 +152,12 @@ import {
|
|
|
162
152
|
boxplotPayload,
|
|
163
153
|
validBoxPlotRequest,
|
|
164
154
|
validBoxPlotResponse
|
|
165
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-XXHHUIEV.js";
|
|
166
156
|
import {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
} from "./chunk-
|
|
157
|
+
termdbCategoriesPayload,
|
|
158
|
+
validCategoriesRequest,
|
|
159
|
+
validCategoriesResponse
|
|
160
|
+
} from "./chunk-FZJ3E7JA.js";
|
|
171
161
|
import {
|
|
172
162
|
GRIN2Payload,
|
|
173
163
|
validGRIN2Request,
|
|
@@ -199,10 +189,10 @@ import {
|
|
|
199
189
|
validimgResponse
|
|
200
190
|
} from "./chunk-KVUJPR42.js";
|
|
201
191
|
import {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
} from "./chunk-
|
|
192
|
+
isoformlstPayload,
|
|
193
|
+
validIsoformLstRequest,
|
|
194
|
+
validIsoformLstResponse
|
|
195
|
+
} from "./chunk-B43GFRT4.js";
|
|
206
196
|
import {
|
|
207
197
|
dsDataPayload,
|
|
208
198
|
validDsDataRequest,
|
|
@@ -241,21 +231,21 @@ import {
|
|
|
241
231
|
validGenesetEnrichmentRequest,
|
|
242
232
|
validGenesetEnrichmentResponse
|
|
243
233
|
} from "./chunk-HUMZDPUU.js";
|
|
234
|
+
import {
|
|
235
|
+
genesetOverrepresentationPayload,
|
|
236
|
+
validGenesetOverrepresentationRequest,
|
|
237
|
+
validGenesetOverrepresentationResponse
|
|
238
|
+
} from "./chunk-VMSVBNM6.js";
|
|
244
239
|
import {
|
|
245
240
|
aiProjectAdminPayload,
|
|
246
241
|
validAIProjectAdminRequest,
|
|
247
242
|
validAIProjectAdminResponse
|
|
248
|
-
} from "./chunk-
|
|
249
|
-
import {
|
|
250
|
-
aiProjectListPayload,
|
|
251
|
-
validAIProjectListRequest,
|
|
252
|
-
validAIProjectListResponse
|
|
253
|
-
} from "./chunk-EAHOJPLM.js";
|
|
243
|
+
} from "./chunk-TMQI47YT.js";
|
|
254
244
|
import {
|
|
255
245
|
brainImagingPayload,
|
|
256
246
|
validBrainImagingRequest,
|
|
257
247
|
validBrainImagingResponse
|
|
258
|
-
} from "./chunk-
|
|
248
|
+
} from "./chunk-KS74VVON.js";
|
|
259
249
|
import {
|
|
260
250
|
brainImagingSamplesPayload,
|
|
261
251
|
validBrainImagingSamplesRequest,
|
|
@@ -277,7 +267,12 @@ import {
|
|
|
277
267
|
CorrelationVolcanoPayload,
|
|
278
268
|
validCorrelationVolcanoRequest,
|
|
279
269
|
validCorrelationVolcanoResponse
|
|
280
|
-
} from "./chunk-
|
|
270
|
+
} from "./chunk-IDP5KXE6.js";
|
|
271
|
+
import {
|
|
272
|
+
datasetPayload,
|
|
273
|
+
validDatasetRequest,
|
|
274
|
+
validDatasetResponse
|
|
275
|
+
} from "./chunk-5S3UWYSK.js";
|
|
281
276
|
import "./chunk-CNSSF43V.js";
|
|
282
277
|
export {
|
|
283
278
|
CorrelationVolcanoPayload,
|
|
@@ -287,7 +282,6 @@ export {
|
|
|
287
282
|
ProfileFormScoresPayload,
|
|
288
283
|
ProfileScoresPayload,
|
|
289
284
|
aiProjectAdminPayload,
|
|
290
|
-
aiProjectListPayload,
|
|
291
285
|
boxplotPayload,
|
|
292
286
|
brainImagingPayload,
|
|
293
287
|
brainImagingSamplesPayload,
|
|
@@ -335,8 +329,6 @@ export {
|
|
|
335
329
|
topMutatedGenePayload,
|
|
336
330
|
validAIProjectAdminRequest,
|
|
337
331
|
validAIProjectAdminResponse,
|
|
338
|
-
validAIProjectListRequest,
|
|
339
|
-
validAIProjectListResponse,
|
|
340
332
|
validBoxPlotRequest,
|
|
341
333
|
validBoxPlotResponse,
|
|
342
334
|
validBrainImagingRequest,
|
package/dist/termdb.boxplot.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-ECF6WSOD.js";
|
|
6
6
|
import "./chunk-CNSSF43V.js";
|
|
7
7
|
export {
|
|
8
8
|
termdbTopVariablyExpressedGenesPayload,
|
package/dist/termdb.violin.js
CHANGED
package/package.json
CHANGED
package/src/dataset.ts
CHANGED
|
@@ -721,6 +721,8 @@ export type MetaboliteIntensityQuery = MetaboliteIntensityQueryNative
|
|
|
721
721
|
export type GeneExpressionQueryGdc = {
|
|
722
722
|
src: 'gdcapi'
|
|
723
723
|
geneExpression2bins?: { [index: string]: any }
|
|
724
|
+
/** gene expression unit (e.g. 'FPKM') */
|
|
725
|
+
unit?: string
|
|
724
726
|
}
|
|
725
727
|
|
|
726
728
|
export type GeneExpressionQueryNative = {
|
|
@@ -736,6 +738,8 @@ export type GeneExpressionQueryNative = {
|
|
|
736
738
|
get?: (param: any) => void
|
|
737
739
|
/** This dictionary is used to store/cache the default bins calculated for a geneExpression term when initialized in the fillTermWrapper */
|
|
738
740
|
geneExpression2bins?: { [index: string]: any }
|
|
741
|
+
/** gene expression unit (e.g. 'FPKM') */
|
|
742
|
+
unit?: string
|
|
739
743
|
}
|
|
740
744
|
|
|
741
745
|
export type GeneExpressionQuery = GeneExpressionQueryGdc | GeneExpressionQueryNative
|
|
@@ -749,10 +753,14 @@ export type SingleCellGeneExpressionNative = {
|
|
|
749
753
|
get?: (q: any) => any
|
|
750
754
|
/** cached gene exp bins */
|
|
751
755
|
sample2gene2expressionBins?: { [sample: string]: { [gene: string]: any } }
|
|
756
|
+
/** gene expression unit (e.g. 'FPKM') */
|
|
757
|
+
unit?: string
|
|
752
758
|
}
|
|
753
759
|
|
|
754
760
|
export type SingleCellGeneExpressionGdc = {
|
|
755
761
|
src: 'gdcapi'
|
|
762
|
+
/** gene expression unit (e.g. 'FPKM') */
|
|
763
|
+
unit?: string
|
|
756
764
|
}
|
|
757
765
|
|
|
758
766
|
export type SingleCellSamples = {
|
|
@@ -1498,17 +1506,17 @@ keep this setting here for reason of:
|
|
|
1498
1506
|
}
|
|
1499
1507
|
*/
|
|
1500
1508
|
q?: any
|
|
1501
|
-
termMatch2geneSet?: any
|
|
1502
1509
|
mclass?: Mclass
|
|
1503
1510
|
lollipop?: any
|
|
1504
1511
|
hasAncestry?: boolean
|
|
1512
|
+
/** set to true for genome-level geneset db */
|
|
1513
|
+
isGeneSetTermdb?: boolean
|
|
1505
1514
|
|
|
1506
1515
|
//GDC
|
|
1507
1516
|
termid2totalsize2?: GdcApi
|
|
1508
1517
|
/** Do not use a union here. */
|
|
1509
1518
|
dictionary?: GdcApi & AiApi
|
|
1510
1519
|
allowCaseDetails?: AllowCaseDetails
|
|
1511
|
-
isGeneSetTermdb?: boolean
|
|
1512
1520
|
/** Searches the genedb alias list to return the genecode ID */
|
|
1513
1521
|
getGeneAlias?: (q: any, tw: any) => { gencodeId: any }
|
|
1514
1522
|
convertSampleId?: GdcApi
|
package/src/index.ts
CHANGED
|
@@ -5,7 +5,6 @@ export * from './termsetting.ts'
|
|
|
5
5
|
export * from './filter.ts'
|
|
6
6
|
export * from './termdb.matrix.ts'
|
|
7
7
|
export * from './routes/routeApi.ts'
|
|
8
|
-
export * from './routes/aiProjectList.ts'
|
|
9
8
|
export * from './routes/aiProjectAdmin.ts'
|
|
10
9
|
export * from './routes/brainImaging.ts'
|
|
11
10
|
export * from './routes/brainImagingSamples.ts'
|
|
@@ -3,18 +3,27 @@ import type { RoutePayload } from './routeApi.ts'
|
|
|
3
3
|
export type AIProjectAdminRequest = {
|
|
4
4
|
genome: string
|
|
5
5
|
dslabel: string
|
|
6
|
-
|
|
6
|
+
/** list: get entire list of projects from db
|
|
7
|
+
* admin: edit, add, or delete projects from db
|
|
8
|
+
*/
|
|
9
|
+
for: 'list' | 'admin' | 'images'
|
|
10
|
+
/** required for 'project' and 'selection' requests */
|
|
11
|
+
project?: {
|
|
7
12
|
name: string
|
|
8
13
|
id?: number
|
|
9
|
-
|
|
14
|
+
filter?: string
|
|
10
15
|
classes?: any[]
|
|
16
|
+
images?: string[]
|
|
11
17
|
}
|
|
12
18
|
}
|
|
13
19
|
|
|
14
|
-
export type AIProjectAdminResponse =
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
20
|
+
export type AIProjectAdminResponse =
|
|
21
|
+
| {
|
|
22
|
+
status: 'ok' | 'error'
|
|
23
|
+
error?: string
|
|
24
|
+
data?: { cols: any[]; rows: any[]; images: string[] }[]
|
|
25
|
+
}
|
|
26
|
+
| string[]
|
|
18
27
|
|
|
19
28
|
export const aiProjectAdminPayload: RoutePayload = {
|
|
20
29
|
request: {
|
|
@@ -2,9 +2,9 @@ import type { RoutePayload } from './routeApi.js'
|
|
|
2
2
|
import type { ErrorResponse } from './errorResponse.ts'
|
|
3
3
|
import type { Filter } from '../filter.ts'
|
|
4
4
|
import type { Term } from '../terms/term.ts'
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
5
|
+
import type { GeneExpressionTW } from '../terms/geneExpression.ts'
|
|
6
|
+
import type { MetaboliteIntensityTW } from '../terms/metaboliteIntensity.ts'
|
|
7
|
+
import type { NumericTW } from '../terms/numeric.ts'
|
|
8
8
|
|
|
9
9
|
export type Gene = {
|
|
10
10
|
/** gene symbol, required */
|
|
@@ -34,7 +34,7 @@ export type TermdbClusterRequestGeneExpression = TermdbClusterRequestBase & {
|
|
|
34
34
|
/** Data type */
|
|
35
35
|
dataType: 'geneExpression'
|
|
36
36
|
/** List of terms */
|
|
37
|
-
terms:
|
|
37
|
+
terms: GeneExpressionTW[]
|
|
38
38
|
/** perform z-score transformation on values */
|
|
39
39
|
zScoreTransformation?: string
|
|
40
40
|
}
|
|
@@ -43,7 +43,7 @@ export type TermdbClusterRequestMetabolite = TermdbClusterRequestBase & {
|
|
|
43
43
|
/** Data type */
|
|
44
44
|
dataType: 'metaboliteIntensity'
|
|
45
45
|
/** List of terms */
|
|
46
|
-
terms:
|
|
46
|
+
terms: MetaboliteIntensityTW[]
|
|
47
47
|
/** perform z-score transformation on values */
|
|
48
48
|
zScoreTransformation?: string
|
|
49
49
|
}
|
|
@@ -52,7 +52,7 @@ export type TermdbClusterRequestNumericDictTerm = TermdbClusterRequestBase & {
|
|
|
52
52
|
/** Data type */
|
|
53
53
|
dataType: 'numericDictTerm'
|
|
54
54
|
/** List of terms */
|
|
55
|
-
terms:
|
|
55
|
+
terms: NumericTW[]
|
|
56
56
|
/** perform z-score transformation on values */
|
|
57
57
|
zScoreTransformation?: string
|
|
58
58
|
}
|
|
@@ -1,28 +1,18 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { NumericTerm, NumericQ } from './numeric.ts'
|
|
1
|
+
import type { BaseTW, PresetNumericBins, NumericBaseTerm, NumericQ } from '../index.ts'
|
|
3
2
|
import type { TermSettingInstance } from '../termsetting.ts'
|
|
4
3
|
|
|
5
4
|
/*
|
|
6
5
|
--------EXPORTED--------
|
|
7
|
-
|
|
6
|
+
GeneExpressionTerm
|
|
8
7
|
GeneExpressionTermWrapper
|
|
9
8
|
GeneExpressionTermSettingInstance
|
|
10
|
-
|
|
11
9
|
*/
|
|
12
10
|
|
|
13
|
-
export type
|
|
14
|
-
dt?: number
|
|
15
|
-
preferredBins?: string
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export type GeneExpressionTW = TermWrapper & {
|
|
19
|
-
q: GeneExpressionQ
|
|
20
|
-
term: GeneExpressionTerm
|
|
21
|
-
type: 'NumTWRegularBin' | 'NumTWCustomBin' | 'NumTWCont' | 'NumTWSpline'
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export type GeneExpressionTerm = NumericTerm & {
|
|
11
|
+
export type GeneExpressionTerm = NumericBaseTerm & {
|
|
25
12
|
gene: string
|
|
13
|
+
name: string
|
|
14
|
+
type: 'geneExpression'
|
|
15
|
+
bins?: PresetNumericBins
|
|
26
16
|
// temporarily allowing chr/start/stop to support
|
|
27
17
|
// legacy fpkm files
|
|
28
18
|
chr?: string
|
|
@@ -30,7 +20,13 @@ export type GeneExpressionTerm = NumericTerm & {
|
|
|
30
20
|
stop?: number
|
|
31
21
|
}
|
|
32
22
|
|
|
23
|
+
export type GeneExpressionTW = BaseTW & {
|
|
24
|
+
q: NumericQ
|
|
25
|
+
term: GeneExpressionTerm
|
|
26
|
+
type: string
|
|
27
|
+
}
|
|
28
|
+
|
|
33
29
|
export type GeneExpressionTermSettingInstance = TermSettingInstance & {
|
|
34
|
-
q:
|
|
30
|
+
q: NumericQ
|
|
35
31
|
term: GeneExpressionTerm
|
|
36
32
|
}
|
package/src/terms/numeric.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MinBaseQ, BaseTW, TermValues, BaseTerm } from '../index.ts'
|
|
1
|
+
import type { MinBaseQ, BaseTW, TermValues, BaseTerm, GeneExpressionTerm } from '../index.ts'
|
|
2
2
|
|
|
3
3
|
export type RawRegularBin = Partial<RegularNumericBinConfig> & { preferredBins?: string }
|
|
4
4
|
|
|
@@ -30,32 +30,21 @@ export type RawNumTWSpline = BaseTW & {
|
|
|
30
30
|
|
|
31
31
|
export type RawNumTW = RawNumTWCustomBin | RawNumTWRegularBin | RawNumTWCont | RawNumTWSpline
|
|
32
32
|
|
|
33
|
-
export type
|
|
34
|
-
id?: string
|
|
35
|
-
// these concrete term.type values make it clear that only these are numeric,
|
|
36
|
-
// "categorical", "condition", and other term.types are not included in this union
|
|
37
|
-
type: 'integer' | 'float' | 'geneExpression' | 'metaboliteIntensity' | 'date' | 'ssGSEA'
|
|
38
|
-
bins: PresetNumericBins
|
|
39
|
-
values?: TermValues
|
|
40
|
-
unit?: string
|
|
33
|
+
export type NumericBaseTerm = BaseTerm & {
|
|
41
34
|
/** tailored color scale for this term, so that when the term is used for color gradient in scatter, this set of colors will be used by default */
|
|
42
35
|
continuousColorScale?: { minColor: string; maxColor: string }
|
|
43
|
-
|
|
44
|
-
logScale?: string | number
|
|
45
|
-
max?: number
|
|
46
|
-
min?: number
|
|
47
|
-
skip0forPercentile?: boolean
|
|
48
|
-
valueConversion?: ValueConversion*/
|
|
36
|
+
unit?: string
|
|
49
37
|
}
|
|
50
38
|
|
|
51
|
-
export type NumericDictTerm =
|
|
39
|
+
export type NumericDictTerm = NumericBaseTerm & {
|
|
52
40
|
id?: string
|
|
53
41
|
type: 'integer' | 'float' | 'date'
|
|
54
42
|
bins: PresetNumericBins
|
|
55
43
|
values?: TermValues
|
|
56
|
-
unit?: string
|
|
57
44
|
}
|
|
58
45
|
|
|
46
|
+
export type NumericTerm = NumericDictTerm | GeneExpressionTerm
|
|
47
|
+
|
|
59
48
|
export type StartUnboundedBin = {
|
|
60
49
|
// where possible, assign a concrete value (true) when it is known in advance,
|
|
61
50
|
// in which case, do not use an abstract type (boolean) to startunbounded
|
|
@@ -157,7 +146,7 @@ export type BinaryNumericQ = MinBaseQ & {
|
|
|
157
146
|
}
|
|
158
147
|
|
|
159
148
|
export type ContinuousNumericQ = MinBaseQ & {
|
|
160
|
-
mode
|
|
149
|
+
mode?: 'continuous'
|
|
161
150
|
// TODO: do not use a boolean, convert to a `transform: 'zscore' | ...` option
|
|
162
151
|
convert2ZScore?: boolean
|
|
163
152
|
//scale?: string
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { TermWrapper } from './tw.ts'
|
|
2
|
-
import type { GeneExpressionQ } from './geneExpression.ts'
|
|
3
2
|
import type { TermSettingInstance } from '../termsetting.ts'
|
|
4
|
-
import type { NumericTerm } from './numeric.ts'
|
|
3
|
+
import type { NumericTerm, NumericQ } from './numeric.ts'
|
|
5
4
|
|
|
6
5
|
/*
|
|
7
6
|
--------EXPORTED--------
|
|
@@ -12,7 +11,7 @@ GeneExpressionTermSettingInstance
|
|
|
12
11
|
*/
|
|
13
12
|
|
|
14
13
|
export type SingleCellGeneExpressionTW = TermWrapper & {
|
|
15
|
-
q:
|
|
14
|
+
q: NumericQ
|
|
16
15
|
term: SingleCellGeneExpressionTerm
|
|
17
16
|
}
|
|
18
17
|
|
|
@@ -22,6 +21,6 @@ export type SingleCellGeneExpressionTerm = NumericTerm & {
|
|
|
22
21
|
}
|
|
23
22
|
|
|
24
23
|
export type SingleCellGeneExpressionTermSettingInstance = TermSettingInstance & {
|
|
25
|
-
q:
|
|
24
|
+
q: NumericQ
|
|
26
25
|
term: SingleCellGeneExpressionTerm
|
|
27
26
|
}
|
package/dist/aiProjectList.js
DELETED