@sjcrh/proteinpaint-types 2.146.4-1 → 2.147.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/aiProjectSelectedWSImages.js +1 -1
- package/dist/aiProjectTrainModel.js +11 -0
- package/dist/brainImaging.js +1 -1
- package/dist/{chunk-75OHIZMS.js → chunk-225Q2ZUA.js} +2 -6
- package/dist/{chunk-74B7B2CV.js → chunk-2ZJS3NUY.js} +258 -82
- package/dist/{chunk-NBV7HYBA.js → chunk-3SKFYOKV.js} +407 -515
- package/dist/{chunk-G5KSPYQG.js → chunk-4SJC57Y6.js} +403 -511
- package/dist/{chunk-4VEXL32Q.js → chunk-75GS5ZG5.js} +381 -489
- package/dist/{chunk-2BHWLFKE.js → chunk-ETMCI34A.js} +2 -6
- package/dist/{chunk-7ICZFAGK.js → chunk-KSVIBMFQ.js} +1049 -797
- package/dist/{chunk-C246BWQE.js → chunk-NQUMNEVO.js} +258 -82
- package/dist/{chunk-4DNCZQOB.js → chunk-OOQIRLS5.js} +258 -82
- package/dist/{chunk-5KADNZH2.js → chunk-RA7IEGS4.js} +408 -516
- package/dist/chunk-UYJA4UM7.js +97 -0
- package/dist/{chunk-GCAZSDCW.js → chunk-WL7ZVGZS.js} +403 -511
- package/dist/correlationVolcano.js +1 -1
- package/dist/index.js +48 -40
- package/dist/samplewsimages.js +1 -1
- 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.percentile.js +1 -1
- package/dist/termdb.termsbyids.js +1 -1
- package/dist/termdb.topTermsByType.js +1 -1
- package/package.json +1 -1
- package/src/dataset.ts +15 -12
- package/src/index.ts +2 -0
- package/src/routes/aiProjectSelectedWSImages.ts +0 -1
- package/src/routes/aiProjectTrainModel.ts +20 -0
- package/src/routes/brainImaging.ts +3 -3
- package/src/terms/categorical.ts +9 -90
- package/src/terms/q.ts +5 -1
- package/src/terms/qualitative.ts +73 -0
- package/src/terms/singleCellCellType.ts +6 -10
- package/src/terms/snp.ts +9 -13
- package/src/terms/term.ts +2 -2
- package/src/terms/tw.ts +3 -4
package/src/terms/snp.ts
CHANGED
|
@@ -1,28 +1,24 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { TermSettingInstance } from '../termsetting.ts'
|
|
1
|
+
import type { TermGroupSetting, TermValues, BaseTerm } from '../index.ts'
|
|
3
2
|
|
|
4
3
|
/*
|
|
5
4
|
For term type 'snp'
|
|
6
5
|
*/
|
|
7
6
|
|
|
8
|
-
export type SnpQ = MinBaseQ & GroupSettingQ
|
|
9
|
-
|
|
10
7
|
export type SnpTerm = BaseTerm & {
|
|
8
|
+
type: 'snp'
|
|
9
|
+
id: string
|
|
10
|
+
name: string
|
|
11
11
|
chr: string
|
|
12
12
|
start: number
|
|
13
13
|
stop: number
|
|
14
14
|
ref: string
|
|
15
15
|
alt: string[]
|
|
16
16
|
groupsetting: TermGroupSetting
|
|
17
|
+
// may be used to hide
|
|
18
|
+
values: TermValues
|
|
17
19
|
}
|
|
18
20
|
|
|
19
|
-
export type
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
term: SnpTerm
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export type SnpTermSettingInstance = TermSettingInstance & {
|
|
26
|
-
q: SnpQ
|
|
27
|
-
term: SnpTerm
|
|
21
|
+
export type RawSnpTerm = SnpTerm & {
|
|
22
|
+
groupsetting?: TermGroupSetting
|
|
23
|
+
values?: TermValues
|
|
28
24
|
}
|
package/src/terms/term.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Filter } from '../filter.js'
|
|
2
|
-
import type { CategoricalTerm } from './categorical.js'
|
|
3
2
|
import type { ConditionTerm } from './condition.js'
|
|
4
3
|
import type { NumericTerm } from './numeric.js'
|
|
5
4
|
import type { GvTerm } from './geneVariant.js'
|
|
6
5
|
import type { SampleLstTerm } from './samplelst.js'
|
|
7
6
|
import type { SnpsTerm } from './snps.js'
|
|
7
|
+
import type { QualTerm } from './qualitative.ts'
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @param id term.id for dictionary terms, undefined for non-dictionary terms
|
|
@@ -42,7 +42,7 @@ export type BaseTerm = {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
// NumericTerm includes integer, float, date, geneExpression, metaboliteIntensity, and other non-dict terms
|
|
45
|
-
export type Term = BaseTerm & (NumericTerm |
|
|
45
|
+
export type Term = BaseTerm & (NumericTerm | ConditionTerm | SampleLstTerm | SnpsTerm | GvTerm | QualTerm)
|
|
46
46
|
|
|
47
47
|
/*** types supporting Term types ***/
|
|
48
48
|
|
package/src/terms/tw.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import type { SnpsQ, SnpsTW } from './snps.ts'
|
|
2
|
-
import type { SnpQ, SnpTW } from './snp.ts'
|
|
3
2
|
import type { ConditionQ, ConditionTW } from './condition.ts'
|
|
4
3
|
import type { SampleLstQ } from './samplelst.ts'
|
|
5
|
-
import type { CatTWTypes, CategoricalQ } from './categorical.ts'
|
|
6
4
|
import type { NumTW, NumericQ } from './numeric.ts'
|
|
7
5
|
import type { GvTW, GvQ } from './geneVariant.ts'
|
|
6
|
+
import type { QualTW, QualQ } from './qualitative.ts'
|
|
8
7
|
|
|
9
8
|
export type BaseTW = {
|
|
10
9
|
id?: string
|
|
@@ -21,9 +20,9 @@ export type BaseTW = {
|
|
|
21
20
|
valueFilter?: any
|
|
22
21
|
}
|
|
23
22
|
|
|
24
|
-
export type TermWrapper =
|
|
23
|
+
export type TermWrapper = NumTW | GvTW | ConditionTW | SnpsTW | QualTW
|
|
25
24
|
|
|
26
|
-
export type Q =
|
|
25
|
+
export type Q = NumericQ | GvQ | ConditionQ | SnpsQ | SampleLstQ | QualQ // | other q
|
|
27
26
|
|
|
28
27
|
//export type TermWrapper = CategoricalTW | NumericTW | SnpsTW | (BaseTW & { term: Term; q: Q })
|
|
29
28
|
export type TwLst = TermWrapper[]
|