@sjcrh/proteinpaint-types 2.181.0 → 2.183.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-2QTCQFYE.js → chunk-2NINVZOB.js} +47 -11
- package/dist/{chunk-KNDCWQJD.js → chunk-2UNWSR7Y.js} +15 -3
- package/dist/{chunk-UBAJYDGK.js → chunk-734AZGID.js} +15 -3
- package/dist/{chunk-J55IQXT7.js → chunk-7ZYM6FC6.js} +15 -3
- package/dist/{chunk-UYKWZWCU.js → chunk-JYTPHVO2.js} +47 -11
- package/dist/{chunk-DDMUMMOL.js → chunk-LDLZU2QY.js} +15 -3
- package/dist/{chunk-C5ECCXOT.js → chunk-NF6RKK5E.js} +15 -3
- package/dist/{chunk-K6W2WEPW.js → chunk-NO3ZZD3L.js} +15 -3
- package/dist/{chunk-ZRTB7SRA.js → chunk-ONNT3XV7.js} +32 -8
- package/dist/{chunk-VUNM6QTX.js → chunk-QMEKJW2A.js} +15 -3
- package/dist/{chunk-URYAC364.js → chunk-R7BQWUIF.js} +15 -3
- package/dist/{chunk-ZKO7LMCC.js → chunk-TUM3OZ7K.js} +15 -3
- package/dist/{chunk-3DA4MJ2U.js → chunk-URG6BNUU.js} +15 -3
- package/dist/chunk-W3F3CLYP.js +61 -0
- package/dist/{chunk-45VA4Y6L.js → chunk-YDJG6VT4.js} +15 -3
- package/dist/correlationVolcano.js +1 -1
- package/dist/grin2.js +1 -1
- package/dist/index.js +31 -23
- package/dist/termdb.categories.js +1 -1
- package/dist/termdb.chat.js +15 -3
- package/dist/termdb.chat2.js +1 -1
- package/dist/termdb.cluster.js +1 -1
- package/dist/termdb.descrstats.js +1 -1
- package/dist/termdb.dmr.js +1 -1
- package/dist/termdb.numericcategories.js +1 -1
- package/dist/termdb.percentile.js +1 -1
- package/dist/termdb.proteome.js +11 -0
- package/dist/termdb.termsbyids.js +1 -1
- package/dist/termdb.topTermsByType.js +1 -1
- package/dist/termdb.topVariablyExpressedGenes.js +1 -1
- package/dist/termdb.violinBox.js +1 -1
- package/package.json +1 -1
- package/src/dataset.ts +35 -18
- package/src/index.ts +1 -0
- package/src/routes/termdb.proteome.ts +13 -0
- package/src/terms/dnaMethylation.ts +12 -3
- package/src/terms/termCollection.ts +7 -1
package/src/dataset.ts
CHANGED
|
@@ -708,22 +708,33 @@ export type MetaboliteIntensityQueryNative = {
|
|
|
708
708
|
export type MetaboliteIntensityQuery = MetaboliteIntensityQueryNative
|
|
709
709
|
|
|
710
710
|
/** the proteomics query */
|
|
711
|
-
type
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
overlayTerm?: BaseTerm
|
|
711
|
+
type ProteomeFilter = {
|
|
712
|
+
columnIdx: number
|
|
713
|
+
columnValue: string | number
|
|
715
714
|
}
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
715
|
+
|
|
716
|
+
type ProteomeCohortConfig = {
|
|
717
|
+
cohortName: string
|
|
718
|
+
controlFilter: ProteomeFilter[]
|
|
719
|
+
caseFilter: ProteomeFilter[]
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
type ProteomeAssayConfig = {
|
|
723
|
+
columnIdx: number
|
|
724
|
+
columnValue: string | number
|
|
725
|
+
cohorts: ProteomeCohortConfig[]
|
|
726
|
+
/** optional PTM type for PTM assay type */
|
|
727
|
+
PTMType?: string
|
|
728
|
+
/** optional specific mclass override for PTM assay type */
|
|
729
|
+
mclassOverride?: Mclass
|
|
720
730
|
}
|
|
721
|
-
type AssayConfig = AssayWithCohorts
|
|
722
731
|
|
|
723
732
|
export type ProteomeAbundanceQuery = {
|
|
733
|
+
/** database file path */
|
|
734
|
+
dbfile?: string
|
|
724
735
|
/** document structure */
|
|
725
736
|
assays: {
|
|
726
|
-
[assayName: string]:
|
|
737
|
+
[assayName: string]: ProteomeAssayConfig
|
|
727
738
|
}
|
|
728
739
|
samples?: number[]
|
|
729
740
|
/** _proteins,used to dynamically built cache of protein names to speed up search */
|
|
@@ -731,6 +742,8 @@ export type ProteomeAbundanceQuery = {
|
|
|
731
742
|
get?: (param: any) => void
|
|
732
743
|
find?: (param: string[]) => void
|
|
733
744
|
bins?: { [index: string]: any }
|
|
745
|
+
/** set of control sample IDs returned from get() query */
|
|
746
|
+
controlSampleIds?: Set<string>
|
|
734
747
|
}
|
|
735
748
|
|
|
736
749
|
/** the geneExpression query
|
|
@@ -1053,10 +1066,7 @@ type Mds3Queries = {
|
|
|
1053
1066
|
src: 'native'
|
|
1054
1067
|
file: string
|
|
1055
1068
|
}
|
|
1056
|
-
proteome?:
|
|
1057
|
-
/** whole proteome abundance */
|
|
1058
|
-
assays?: { [assayType: string]: AssayConfig }
|
|
1059
|
-
}
|
|
1069
|
+
proteome?: ProteomeAbundanceQuery
|
|
1060
1070
|
singleCell?: SingleCellQuery
|
|
1061
1071
|
singleSampleGenomeQuantification?: SingleSampleGenomeQuantification
|
|
1062
1072
|
singleSampleGbtk?: SingleSampleGbtk
|
|
@@ -1445,6 +1455,12 @@ if missing, name is value of m[url.namekey], as used in url itself (e.g. snp rsi
|
|
|
1445
1455
|
linkText?: string
|
|
1446
1456
|
}
|
|
1447
1457
|
|
|
1458
|
+
export type GetSamplesOpts = {
|
|
1459
|
+
filter: any // pp filter
|
|
1460
|
+
filter0: any // mmrf filter
|
|
1461
|
+
ds: any
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1448
1464
|
/*** type of ds.cohort.termdb{} ***/
|
|
1449
1465
|
export type Termdb = {
|
|
1450
1466
|
/** Terms */
|
|
@@ -1477,7 +1493,7 @@ export type Termdb = {
|
|
|
1477
1493
|
/** if true, backend is allowed to send sample names to client in charts */
|
|
1478
1494
|
displaySampleIds?: (clientAuthResult: any) => boolean
|
|
1479
1495
|
/** get samples that match supplied filter */
|
|
1480
|
-
getSamples?: (
|
|
1496
|
+
getSamples?: (opts: GetSamplesOpts) => Promise<Set<any>>
|
|
1481
1497
|
converSampleIds?: boolean
|
|
1482
1498
|
alwaysShowBranchTerms?: boolean
|
|
1483
1499
|
minimumSampleAllowed4filter?: number
|
|
@@ -1660,14 +1676,15 @@ keep this setting here for reason of:
|
|
|
1660
1676
|
type TermCollectionBase = {
|
|
1661
1677
|
/** human readable name as well as unique identifier for this collection */
|
|
1662
1678
|
name: string
|
|
1663
|
-
/** array of dictionary term ids belonging to this collection
|
|
1664
|
-
|
|
1679
|
+
/** array of dictionary term ids belonging to this collection.
|
|
1680
|
+
* Optional for custom (non-dictionary) collections where termlst[] is the primary source. */
|
|
1681
|
+
termIds?: string[]
|
|
1665
1682
|
/** full term objects corresponding to termIds[]; populated by server on dataset init,
|
|
1666
1683
|
* sent to client so fill() can resolve member term names without extra requests */
|
|
1667
1684
|
termlst?: BaseTerm[]
|
|
1668
1685
|
/** array of branch term ids belonging to this collection,
|
|
1669
1686
|
* may be used as state.tree.expandedTermIds[] option to termdb appInit() */
|
|
1670
|
-
branchIds
|
|
1687
|
+
branchIds?: string[]
|
|
1671
1688
|
propsByTermId: {
|
|
1672
1689
|
[termId: string]: any
|
|
1673
1690
|
}
|
package/src/index.ts
CHANGED
|
@@ -50,6 +50,7 @@ export * from './routes/termdb.dmr.ts'
|
|
|
50
50
|
export * from './routes/termdb.isoformAvailability.ts'
|
|
51
51
|
export * from './routes/termdb.numericcategories.ts'
|
|
52
52
|
export * from './routes/termdb.percentile.ts'
|
|
53
|
+
export * from './routes/termdb.proteome.ts'
|
|
53
54
|
export * from './routes/termdb.runChart.ts'
|
|
54
55
|
export * from './routes/termdb.rootterm.ts'
|
|
55
56
|
export * from './routes/termdb.termchildren.ts'
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { RoutePayload } from './routeApi.js'
|
|
2
|
+
|
|
3
|
+
export type TermdbProteomeRequest = any
|
|
4
|
+
export type TermdbProteomeResponse = any
|
|
5
|
+
|
|
6
|
+
export const termdbProteomePayload: RoutePayload = {
|
|
7
|
+
request: {
|
|
8
|
+
typeId: 'TermdbProteomeRequest'
|
|
9
|
+
},
|
|
10
|
+
response: {
|
|
11
|
+
typeId: 'TermdbProteomeResponse'
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -3,16 +3,25 @@ import type { NumericBaseTerm, NumericQ, PresetNumericBins, NumTW, RawNumTW } fr
|
|
|
3
3
|
export type DnaMethylationQ = NumericQ & { dt?: number }
|
|
4
4
|
|
|
5
5
|
export type DnaMethylationTerm = NumericBaseTerm & {
|
|
6
|
-
/** term.id: plan to be concatenated string value "chr:start-stop" */
|
|
7
|
-
/** term.name: can be user-assigned */
|
|
8
6
|
type: 'dnaMethylation'
|
|
7
|
+
/** concatenated string value "chr:start-stop" */
|
|
8
|
+
id?: string
|
|
9
9
|
chr: string
|
|
10
10
|
start: number
|
|
11
11
|
stop: number
|
|
12
|
+
/** Type used to categorize the genomic feature */
|
|
13
|
+
genomicFeatureType: 'gene' | 'promoter' | 'region' | 'enhancer'
|
|
12
14
|
bins?: PresetNumericBins
|
|
13
15
|
}
|
|
14
16
|
|
|
15
|
-
export type RawDnaMethylationTerm = DnaMethylationTerm & {
|
|
17
|
+
export type RawDnaMethylationTerm = DnaMethylationTerm & {
|
|
18
|
+
/** Name of the genomic feature, e.g., gene name or promoter id/name, etc.
|
|
19
|
+
* Different than .name, which includes the genomic coordinates and unit,
|
|
20
|
+
* and is used for display purposes.*/
|
|
21
|
+
featureName?: string
|
|
22
|
+
name?: string
|
|
23
|
+
unit?: string
|
|
24
|
+
}
|
|
16
25
|
|
|
17
26
|
export type DnaMethylationTW = NumTW & { term: DnaMethylationTerm }
|
|
18
27
|
|
|
@@ -10,7 +10,7 @@ type BaseTermCollection = BaseTerm & {
|
|
|
10
10
|
type: 'termCollection'
|
|
11
11
|
/** list of term.ids that are available in this collection. this is used in request payload and server side */
|
|
12
12
|
termIds?: string[]
|
|
13
|
-
/** list of term objs corresponding to termIds[].
|
|
13
|
+
/** list of term objs corresponding to termIds[].
|
|
14
14
|
this is generated on server init, and sent to client, so client has easy access to show name of every term */
|
|
15
15
|
termlst: BaseTerm[]
|
|
16
16
|
/** TODO purpose */
|
|
@@ -20,6 +20,10 @@ type BaseTermCollection = BaseTerm & {
|
|
|
20
20
|
[prop: string]: any
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
+
/** When true, member terms are non-dictionary terms (e.g. isoformExpression).
|
|
24
|
+
* getData() expands them into individual tws for existing handlers, then
|
|
25
|
+
* reconstitutes the grouped shape after data is returned. */
|
|
26
|
+
isCustom?: boolean
|
|
23
27
|
}
|
|
24
28
|
|
|
25
29
|
export type NumericTermCollection = BaseTermCollection & {
|
|
@@ -60,6 +64,7 @@ export type RawNumericTermCollection = {
|
|
|
60
64
|
}
|
|
61
65
|
}
|
|
62
66
|
numerators?: string[]
|
|
67
|
+
isCustom?: boolean
|
|
63
68
|
}
|
|
64
69
|
|
|
65
70
|
/** Pre-fill shape for a categorical termCollection (memberType set by TermCollection.fill()) */
|
|
@@ -75,6 +80,7 @@ export type RawCategoricalTermCollection = {
|
|
|
75
80
|
}
|
|
76
81
|
}
|
|
77
82
|
categoryKeys?: CategoryKey[]
|
|
83
|
+
isCustom?: boolean
|
|
78
84
|
}
|
|
79
85
|
|
|
80
86
|
export type RawTermCollection = RawNumericTermCollection | RawCategoricalTermCollection
|