@sjcrh/proteinpaint-types 2.183.0 → 2.184.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-2UNWSR7Y.js → chunk-INIT6CVR.js} +716 -580
- package/dist/{chunk-R7BQWUIF.js → chunk-LOFBLGRE.js} +296 -160
- package/dist/{chunk-JYTPHVO2.js → chunk-M7WMC7GC.js} +364 -188
- package/dist/{chunk-7ZYM6FC6.js → chunk-TI565XIR.js} +458 -418
- package/dist/{chunk-YDJG6VT4.js → chunk-UWK6LBTQ.js} +865 -778
- package/dist/{chunk-NF6RKK5E.js → chunk-WNUWRPXG.js} +721 -585
- package/dist/{chunk-URG6BNUU.js → chunk-Y6FNAG22.js} +357 -172
- package/dist/correlationVolcano.js +1 -1
- package/dist/index.js +7 -7
- package/dist/termdb.categories.js +1 -1
- package/dist/termdb.cluster.js +1 -1
- package/dist/termdb.descrstats.js +1 -1
- package/dist/termdb.termsbyids.js +1 -1
- package/dist/termdb.violinBox.js +1 -1
- package/package.json +1 -1
- package/src/dataset.ts +5 -3
- package/src/terms/termCollection.ts +2 -2
- package/src/terms/tw.ts +33 -26
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
validViolinBoxRequest,
|
|
3
3
|
validViolinBoxResponse,
|
|
4
4
|
violinBoxPayload
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WNUWRPXG.js";
|
|
6
6
|
import {
|
|
7
7
|
tilePayload,
|
|
8
8
|
validTileRequest,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
termsByIdsPayload,
|
|
43
43
|
validTermsByIdsRequest,
|
|
44
44
|
validTermsByIdsResponse
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-UWK6LBTQ.js";
|
|
46
46
|
import {
|
|
47
47
|
topMutatedGenePayload,
|
|
48
48
|
validtopMutatedGeneRequest,
|
|
@@ -107,7 +107,7 @@ import {
|
|
|
107
107
|
descrStatsPayload,
|
|
108
108
|
validDescrStatsRequest,
|
|
109
109
|
validDescrStatsResponse
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-Y6FNAG22.js";
|
|
111
111
|
import {
|
|
112
112
|
diffMethPayload,
|
|
113
113
|
validDiffMethRequest,
|
|
@@ -157,7 +157,7 @@ import {
|
|
|
157
157
|
termdbCategoriesPayload,
|
|
158
158
|
validCategoriesRequest,
|
|
159
159
|
validCategoriesResponse
|
|
160
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-INIT6CVR.js";
|
|
161
161
|
import {
|
|
162
162
|
validChatRequest,
|
|
163
163
|
validChatResponse
|
|
@@ -169,7 +169,7 @@ import {
|
|
|
169
169
|
termdbClusterPayload,
|
|
170
170
|
validTermdbClusterRequest,
|
|
171
171
|
validTermdbClusterResponse
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-M7WMC7GC.js";
|
|
173
173
|
import {
|
|
174
174
|
termdbCohortSummaryPayload,
|
|
175
175
|
validTermdbCohortSummaryRequest,
|
|
@@ -261,7 +261,7 @@ import {
|
|
|
261
261
|
CorrelationVolcanoPayload,
|
|
262
262
|
validCorrelationVolcanoRequest,
|
|
263
263
|
validCorrelationVolcanoResponse
|
|
264
|
-
} from "./chunk-
|
|
264
|
+
} from "./chunk-LOFBLGRE.js";
|
|
265
265
|
import {
|
|
266
266
|
datasetPayload,
|
|
267
267
|
validDatasetRequest,
|
|
@@ -319,7 +319,7 @@ import {
|
|
|
319
319
|
brainImagingPayload,
|
|
320
320
|
validBrainImagingRequest,
|
|
321
321
|
validBrainImagingResponse
|
|
322
|
-
} from "./chunk-
|
|
322
|
+
} from "./chunk-TI565XIR.js";
|
|
323
323
|
import {
|
|
324
324
|
brainImagingSamplesPayload,
|
|
325
325
|
validBrainImagingSamplesRequest,
|
package/dist/termdb.cluster.js
CHANGED
package/dist/termdb.violinBox.js
CHANGED
package/package.json
CHANGED
package/src/dataset.ts
CHANGED
|
@@ -120,7 +120,7 @@ type SnvindelByRange = {
|
|
|
120
120
|
/** allow to apply special configurations to certain INFO fields of the bcf file */
|
|
121
121
|
infoFields?: InfoFieldEntry[]
|
|
122
122
|
/** getter function to retrieve data. dynamically added or ds-supplied */
|
|
123
|
-
get?: (f: any) => void
|
|
123
|
+
get?: (f: any, f2?: any) => void
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
type URLEntry = {
|
|
@@ -714,7 +714,6 @@ type ProteomeFilter = {
|
|
|
714
714
|
}
|
|
715
715
|
|
|
716
716
|
type ProteomeCohortConfig = {
|
|
717
|
-
cohortName: string
|
|
718
717
|
controlFilter: ProteomeFilter[]
|
|
719
718
|
caseFilter: ProteomeFilter[]
|
|
720
719
|
}
|
|
@@ -722,7 +721,9 @@ type ProteomeCohortConfig = {
|
|
|
722
721
|
type ProteomeAssayConfig = {
|
|
723
722
|
columnIdx: number
|
|
724
723
|
columnValue: string | number
|
|
725
|
-
cohorts:
|
|
724
|
+
cohorts: {
|
|
725
|
+
[cohortName: string]: ProteomeCohortConfig
|
|
726
|
+
}
|
|
726
727
|
/** optional PTM type for PTM assay type */
|
|
727
728
|
PTMType?: string
|
|
728
729
|
/** optional specific mclass override for PTM assay type */
|
|
@@ -732,6 +733,7 @@ type ProteomeAssayConfig = {
|
|
|
732
733
|
export type ProteomeAbundanceQuery = {
|
|
733
734
|
/** database file path */
|
|
734
735
|
dbfile?: string
|
|
736
|
+
overlayTerm?: BaseTerm
|
|
735
737
|
/** document structure */
|
|
736
738
|
assays: {
|
|
737
739
|
[assayName: string]: ProteomeAssayConfig
|
|
@@ -123,13 +123,13 @@ export type TermCollectionTWQual = BaseTW & {
|
|
|
123
123
|
// TODO: may add different termCollection TW types here
|
|
124
124
|
export type TermCollectionTW = TermCollectionTWCont | TermCollectionTWQual
|
|
125
125
|
|
|
126
|
-
export type RawTermCollectionTWCont = {
|
|
126
|
+
export type RawTermCollectionTWCont = BaseTW & {
|
|
127
127
|
type?: 'TermCollectionTWCont'
|
|
128
128
|
term: RawNumericTermCollection
|
|
129
129
|
q?: TermCollectionQCont
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
export type RawTermCollectionTWQual = {
|
|
132
|
+
export type RawTermCollectionTWQual = BaseTW & {
|
|
133
133
|
type?: 'TermCollectionTWQual'
|
|
134
134
|
term: RawCategoricalTermCollection
|
|
135
135
|
q?: TermCollectionQQual
|
package/src/terms/tw.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { SnpsQ, SnpsTW } from './snps.ts'
|
|
2
|
-
import type { ConditionQ, ConditionTW } from './condition.ts'
|
|
2
|
+
import type { ConditionQ, ConditionTW, RawConditionTW } from './condition.ts'
|
|
3
3
|
import type { SampleLstQ } from './samplelst.ts'
|
|
4
|
-
import type { NumTW, NumericQ } from './numeric.ts'
|
|
5
|
-
import type { GvTW, GvQ } from './geneVariant.ts'
|
|
6
|
-
import type { QualTW, QualQ } from './qualitative.ts'
|
|
7
|
-
import type { TermCollectionTW, TermCollectionQ } from './termCollection.ts'
|
|
4
|
+
import type { NumTW, NumericQ, RawNumTW } from './numeric.ts'
|
|
5
|
+
import type { GvTW, GvQ, RawGvTW } from './geneVariant.ts'
|
|
6
|
+
import type { QualTW, QualQ, RawQualTW } from './qualitative.ts'
|
|
7
|
+
import type { TermCollectionTW, TermCollectionQ, RawTermCollectionTW } from './termCollection.ts'
|
|
8
8
|
|
|
9
9
|
export type BaseTW = {
|
|
10
10
|
id?: string
|
|
@@ -19,6 +19,7 @@ export type BaseTW = {
|
|
|
19
19
|
sortSamples?: any
|
|
20
20
|
minNumSamples?: number
|
|
21
21
|
valueFilter?: any
|
|
22
|
+
values?: { [key: string]: any }
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
export type TermWrapper = NumTW | GvTW | ConditionTW | SnpsTW | QualTW | TermCollectionTW
|
|
@@ -30,27 +31,33 @@ export type TwLst = TermWrapper[]
|
|
|
30
31
|
|
|
31
32
|
//export type Q = BaseQ | CategoricalQ | ConditionQ | NumericQ | SampleLstQ | SnpsQ
|
|
32
33
|
|
|
33
|
-
export type
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
34
|
+
export type RawDictTW = BaseTW & {
|
|
35
|
+
id: string
|
|
36
|
+
term?: undefined
|
|
37
|
+
q?: any
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type RawTW = RawDictTW | RawQualTW | RawNumTW | RawGvTW | RawConditionTW | RawTermCollectionTW
|
|
41
|
+
//{ id: string } | RawCatTW
|
|
42
|
+
//
|
|
43
|
+
// BELOW TYPE IS NOT TESTED, only being used to compare tsc type checking behavior
|
|
44
|
+
// between non-union versus type-unions, which way is easier to code against
|
|
45
|
+
// {
|
|
46
|
+
// id?: string
|
|
47
|
+
// term?: {
|
|
48
|
+
// type: 'categorical' | 'condition'
|
|
49
|
+
// [key: string | number]: any
|
|
50
|
+
// }
|
|
51
|
+
// q?: {
|
|
52
|
+
// //predefined_groupset_idx?: number
|
|
53
|
+
// //customset?: any
|
|
54
|
+
// [key: string]: any
|
|
55
|
+
// //type?: string //'custom-groupset' |
|
|
56
|
+
// //customset?: any
|
|
57
|
+
// }
|
|
58
|
+
// isAtomic?: true
|
|
59
|
+
// $id?: string
|
|
60
|
+
// }
|
|
54
61
|
|
|
55
62
|
export interface TwHandler {
|
|
56
63
|
render?: (opts?: any) => void
|