@sjcrh/proteinpaint-types 2.119.0 → 2.123.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-T2CSA2MC.js → chunk-3ZT4UCFM.js} +366 -512
- package/dist/{chunk-4V46EBDF.js → chunk-5XRJ5ATE.js} +916 -1264
- package/dist/{chunk-BM3JLR6T.js → chunk-AGSW7G4T.js} +905 -1253
- package/dist/{chunk-HURSYPTO.js → chunk-D5OG676D.js} +32 -1
- package/dist/{chunk-J6SJ4M3S.js → chunk-F64WJMRL.js} +1094 -1306
- package/dist/{chunk-YURGGHZI.js → chunk-K7P6C6KU.js} +731 -1079
- package/dist/{chunk-GI4NNB34.js → chunk-LBGUOJR3.js} +366 -512
- package/dist/{chunk-OL4OMJSP.js → chunk-NCFUZ5VV.js} +903 -1139
- package/dist/{chunk-GD3KAF6V.js → chunk-QMWUUGEK.js} +457 -603
- package/dist/{chunk-DL4UYYVE.js → chunk-RX5EB2HL.js} +366 -512
- package/dist/{chunk-ROPNHRVV.js → chunk-SQBZAOWB.js} +366 -512
- package/dist/{chunk-7NNYHDAK.js → chunk-XPOHYEAY.js} +917 -1265
- package/dist/{chunk-UVOO2LBD.js → chunk-ZMOSABYP.js} +916 -1264
- package/dist/correlationVolcano.js +1 -1
- package/dist/index.js +13 -13
- 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.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 +11 -5
- package/src/filter.ts +12 -67
- package/src/genome.ts +1 -1
- package/src/routes/hicgenome.ts +1 -1
- package/src/routes/isoformlst.ts +1 -1
- package/src/routes/samplewsimages.ts +1 -0
- package/src/routes/termdb.cohorts.ts +1 -1
- package/src/routes/termdb.singlecellData.ts +1 -1
- package/src/terms/categorical.ts +3 -3
- package/src/terms/condition.ts +2 -2
- package/src/terms/geneExpression.ts +3 -3
- package/src/terms/geneVariant.ts +58 -19
- package/src/terms/metaboliteIntensity.ts +4 -4
- package/src/terms/q.ts +1 -1
- package/src/terms/samplelst.ts +3 -3
- package/src/terms/singleCellCellType.ts +2 -2
- package/src/terms/singleCellGeneExpression.ts +4 -5
- package/src/terms/snp.ts +3 -3
- package/src/terms/snps.ts +4 -4
- package/src/terms/term.ts +14 -8
- package/src/terms/tw.ts +7 -8
- package/src/terms/updated-types.ts +5 -4
- package/src/termsetting.ts +4 -4
- package/src/test/numeric.type.spec.ts +2 -2
package/src/terms/term.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { Filter } from '../filter.js'
|
|
|
2
2
|
import type { CategoricalTerm, CategoricalBaseQ } from './categorical.js'
|
|
3
3
|
import type { ConditionTerm } from './condition.js'
|
|
4
4
|
import type { NumericTerm } from './numeric.js'
|
|
5
|
-
import type {
|
|
5
|
+
import type { GvTerm, DtTerm } from './geneVariant.js'
|
|
6
6
|
import type { SampleLstTerm } from './samplelst.js'
|
|
7
7
|
import type { SnpsTerm } from './snps.js'
|
|
8
8
|
|
|
@@ -105,11 +105,10 @@ export type BaseTerm = {
|
|
|
105
105
|
included_types?: string[]
|
|
106
106
|
isleaf?: boolean
|
|
107
107
|
values?: TermValues
|
|
108
|
-
filter?:
|
|
108
|
+
filter?: TermFilter
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
export type Term = BaseTerm &
|
|
112
|
-
(NumericTerm | CategoricalTerm | ConditionTerm | GeneVariantTerm | SampleLstTerm | SnpsTerm)
|
|
111
|
+
export type Term = BaseTerm & (NumericTerm | CategoricalTerm | ConditionTerm | SampleLstTerm | SnpsTerm | GvTerm)
|
|
113
112
|
|
|
114
113
|
export type ValuesGroup = {
|
|
115
114
|
name: string
|
|
@@ -118,12 +117,19 @@ export type ValuesGroup = {
|
|
|
118
117
|
uncomputable?: boolean // if true, do not include this group in computations
|
|
119
118
|
}
|
|
120
119
|
|
|
121
|
-
// TODO: determine if this is used
|
|
122
120
|
export type FilterGroup = {
|
|
123
121
|
name: string
|
|
124
122
|
type: 'filter'
|
|
125
|
-
filter:
|
|
126
|
-
|
|
123
|
+
filter: TermFilter & {
|
|
124
|
+
active: Filter // active filter
|
|
125
|
+
group: number // group index
|
|
126
|
+
}
|
|
127
|
+
uncomputable: boolean
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export type TermFilter = {
|
|
131
|
+
opts: { joinWith: string[] } // options for joining filters
|
|
132
|
+
terms: DtTerm[] // terms used to build a frontend vocab that will be used for filtering // TODO: generalize the term structure used here
|
|
127
133
|
}
|
|
128
134
|
|
|
129
135
|
export type GroupEntry = ValuesGroup | FilterGroup
|
|
@@ -156,7 +162,7 @@ export type TermGroupSetting =
|
|
|
156
162
|
|
|
157
163
|
export type BaseTW = {
|
|
158
164
|
id?: string
|
|
159
|
-
$id
|
|
165
|
+
$id?: string
|
|
160
166
|
isAtomic?: true
|
|
161
167
|
// plot-specific customizations that are applied to a tw copy
|
|
162
168
|
// todo: should rethink these
|
package/src/terms/tw.ts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { BaseQ, BaseTW, Term } from './term.ts'
|
|
2
|
-
import { CategoricalQ, CategoricalTW } from './categorical.ts'
|
|
3
|
-
import { NumericQ, NumericTW } from './numeric.ts'
|
|
4
|
-
import { SnpsQ, SnpsTW } from './snps.ts'
|
|
5
|
-
import { ConditionQ } from './condition.ts'
|
|
6
|
-
import {
|
|
7
|
-
import { SampleLstQ } from './samplelst.ts'
|
|
1
|
+
import type { BaseQ, BaseTW, Term } from './term.ts'
|
|
2
|
+
import type { CategoricalQ, CategoricalTW } from './categorical.ts'
|
|
3
|
+
import type { NumericQ, NumericTW } from './numeric.ts'
|
|
4
|
+
import type { SnpsQ, SnpsTW } from './snps.ts'
|
|
5
|
+
import type { ConditionQ } from './condition.ts'
|
|
6
|
+
import type { SampleLstQ } from './samplelst.ts'
|
|
8
7
|
|
|
9
8
|
export type TermWrapper = CategoricalTW | NumericTW | SnpsTW | (BaseTW & { term: Term; q: Q })
|
|
10
9
|
export type TwLst = TermWrapper[]
|
|
11
10
|
|
|
12
|
-
export type Q = BaseQ | CategoricalQ | ConditionQ | NumericQ |
|
|
11
|
+
export type Q = BaseQ | CategoricalQ | ConditionQ | NumericQ | SampleLstQ | SnpsQ
|
|
13
12
|
|
|
14
13
|
export type RawTW =
|
|
15
14
|
//{ id: string } | RawCatTW
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
// temporary code file to hold updated type definitions
|
|
2
2
|
// as part of the tw router/handler refactor
|
|
3
3
|
|
|
4
|
-
import { CatTWTypes, CategoricalQ } from './categorical.ts'
|
|
5
|
-
import { NumTWTypes, NumericQ } from './numeric.ts'
|
|
4
|
+
import type { CatTWTypes, CategoricalQ } from './categorical.ts'
|
|
5
|
+
import type { NumTWTypes, NumericQ } from './numeric.ts'
|
|
6
|
+
import type { GvTW, GvQ } from './geneVariant.ts'
|
|
6
7
|
|
|
7
|
-
export type TermWrapper = CatTWTypes | NumTWTypes
|
|
8
|
+
export type TermWrapper = CatTWTypes | NumTWTypes | GvTW
|
|
8
9
|
|
|
9
|
-
export type Q = CategoricalQ | NumericQ // | other q
|
|
10
|
+
export type Q = CategoricalQ | NumericQ | GvQ // | other q
|
package/src/termsetting.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// TODO: will deprecate this code, should use client/termsetting/types.ts instead
|
|
2
|
-
import { VocabApi } from './vocab.ts'
|
|
3
|
-
import { TermWrapper, Q } from './terms/tw.ts'
|
|
4
|
-
import { Term } from './terms/term.ts'
|
|
5
|
-
import { Filter } from './filter.ts'
|
|
2
|
+
import type { VocabApi } from './vocab.ts'
|
|
3
|
+
import type { TermWrapper, Q } from './terms/tw.ts'
|
|
4
|
+
import type { Term } from './terms/term.ts'
|
|
5
|
+
import type { Filter } from './filter.ts'
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { StartUnboundedBin, StopUnboundedBin, FullyBoundedBin, NumericTerm } from '../terms/numeric'
|
|
1
|
+
import type { StartUnboundedBin, StopUnboundedBin, FullyBoundedBin, NumericTerm } from '../terms/numeric'
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
|
-
Non-asserted type definition tests
|
|
4
|
+
Non-asserted type definition tests: NOT FOR CI, for training only
|
|
5
5
|
|
|
6
6
|
For training only
|
|
7
7
|
- these tests are not meant to be written for all declared types
|