@sjcrh/proteinpaint-types 2.116.1-0 → 2.116.1-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.
|
@@ -21,8 +21,10 @@ var topMutatedGenePayload = {
|
|
|
21
21
|
var validTopMutatedGeneRequest = (input) => {
|
|
22
22
|
const errors = [];
|
|
23
23
|
const __is = (input2) => {
|
|
24
|
-
const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && (void 0 === input3.geneFilter || "CGC" === input3.geneFilter) && (void 0 === input3.maxGenes || "number" === typeof input3.maxGenes) && (void 0 === input3.filter0 || "object" === typeof input3.filter0 && null !== input3.filter0 && false === Array.isArray(input3.filter0) && $io1(input3.filter0));
|
|
24
|
+
const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && (void 0 === input3.geneFilter || "CGC" === input3.geneFilter) && (void 0 === input3.maxGenes || "number" === typeof input3.maxGenes) && (void 0 === input3.filter || "object" === typeof input3.filter && null !== input3.filter && false === Array.isArray(input3.filter) && $io1(input3.filter)) && (void 0 === input3.filter0 || "object" === typeof input3.filter0 && null !== input3.filter0 && false === Array.isArray(input3.filter0) && $io1(input3.filter0)) && (void 0 === input3.snv_mfndi || "number" === typeof input3.snv_mfndi) && (void 0 === input3.snv_splice || "number" === typeof input3.snv_splice) && (void 0 === input3.snv_utr || "number" === typeof input3.snv_utr) && (void 0 === input3.snv_s || "number" === typeof input3.snv_s) && (void 0 === input3.sv || "number" === typeof input3.sv) && (void 0 === input3.fusion || "number" === typeof input3.fusion) && (void 0 === input3.cnv || "number" === typeof input3.cnv) && (void 0 === input3.cnv_ms || "object" === typeof input3.cnv_ms && null !== input3.cnv_ms && $io2(input3.cnv_ms)) && (void 0 === input3.cnv_logratio || "object" === typeof input3.cnv_logratio && null !== input3.cnv_logratio && $io3(input3.cnv_logratio));
|
|
25
25
|
const $io1 = (input3) => true;
|
|
26
|
+
const $io2 = (input3) => "string" === typeof input3.type && (void 0 !== input3.geneLst && null === input3.geneLst);
|
|
27
|
+
const $io3 = (input3) => "string" === typeof input3.type && (void 0 !== input3.geneLst && null === input3.geneLst);
|
|
26
28
|
return "object" === typeof input2 && null !== input2 && $io0(input2);
|
|
27
29
|
};
|
|
28
30
|
if (false === __is(input)) {
|
|
@@ -44,6 +46,14 @@ var validTopMutatedGeneRequest = (input) => {
|
|
|
44
46
|
path: _path2 + ".maxGenes",
|
|
45
47
|
expected: "(number | undefined)",
|
|
46
48
|
value: input3.maxGenes
|
|
49
|
+
}), void 0 === input3.filter || ("object" === typeof input3.filter && null !== input3.filter && false === Array.isArray(input3.filter) || $report(_exceptionable2, {
|
|
50
|
+
path: _path2 + ".filter",
|
|
51
|
+
expected: "(object | undefined)",
|
|
52
|
+
value: input3.filter
|
|
53
|
+
})) && $vo1(input3.filter, _path2 + ".filter", _exceptionable2) || $report(_exceptionable2, {
|
|
54
|
+
path: _path2 + ".filter",
|
|
55
|
+
expected: "(object | undefined)",
|
|
56
|
+
value: input3.filter
|
|
47
57
|
}), void 0 === input3.filter0 || ("object" === typeof input3.filter0 && null !== input3.filter0 && false === Array.isArray(input3.filter0) || $report(_exceptionable2, {
|
|
48
58
|
path: _path2 + ".filter0",
|
|
49
59
|
expected: "(object | undefined)",
|
|
@@ -52,8 +62,78 @@ var validTopMutatedGeneRequest = (input) => {
|
|
|
52
62
|
path: _path2 + ".filter0",
|
|
53
63
|
expected: "(object | undefined)",
|
|
54
64
|
value: input3.filter0
|
|
65
|
+
}), void 0 === input3.snv_mfndi || "number" === typeof input3.snv_mfndi || $report(_exceptionable2, {
|
|
66
|
+
path: _path2 + ".snv_mfndi",
|
|
67
|
+
expected: "(number | undefined)",
|
|
68
|
+
value: input3.snv_mfndi
|
|
69
|
+
}), void 0 === input3.snv_splice || "number" === typeof input3.snv_splice || $report(_exceptionable2, {
|
|
70
|
+
path: _path2 + ".snv_splice",
|
|
71
|
+
expected: "(number | undefined)",
|
|
72
|
+
value: input3.snv_splice
|
|
73
|
+
}), void 0 === input3.snv_utr || "number" === typeof input3.snv_utr || $report(_exceptionable2, {
|
|
74
|
+
path: _path2 + ".snv_utr",
|
|
75
|
+
expected: "(number | undefined)",
|
|
76
|
+
value: input3.snv_utr
|
|
77
|
+
}), void 0 === input3.snv_s || "number" === typeof input3.snv_s || $report(_exceptionable2, {
|
|
78
|
+
path: _path2 + ".snv_s",
|
|
79
|
+
expected: "(number | undefined)",
|
|
80
|
+
value: input3.snv_s
|
|
81
|
+
}), void 0 === input3.sv || "number" === typeof input3.sv || $report(_exceptionable2, {
|
|
82
|
+
path: _path2 + ".sv",
|
|
83
|
+
expected: "(number | undefined)",
|
|
84
|
+
value: input3.sv
|
|
85
|
+
}), void 0 === input3.fusion || "number" === typeof input3.fusion || $report(_exceptionable2, {
|
|
86
|
+
path: _path2 + ".fusion",
|
|
87
|
+
expected: "(number | undefined)",
|
|
88
|
+
value: input3.fusion
|
|
89
|
+
}), void 0 === input3.cnv || "number" === typeof input3.cnv || $report(_exceptionable2, {
|
|
90
|
+
path: _path2 + ".cnv",
|
|
91
|
+
expected: "(number | undefined)",
|
|
92
|
+
value: input3.cnv
|
|
93
|
+
}), void 0 === input3.cnv_ms || ("object" === typeof input3.cnv_ms && null !== input3.cnv_ms || $report(_exceptionable2, {
|
|
94
|
+
path: _path2 + ".cnv_ms",
|
|
95
|
+
expected: "(__type | undefined)",
|
|
96
|
+
value: input3.cnv_ms
|
|
97
|
+
})) && $vo2(input3.cnv_ms, _path2 + ".cnv_ms", _exceptionable2) || $report(_exceptionable2, {
|
|
98
|
+
path: _path2 + ".cnv_ms",
|
|
99
|
+
expected: "(__type | undefined)",
|
|
100
|
+
value: input3.cnv_ms
|
|
101
|
+
}), void 0 === input3.cnv_logratio || ("object" === typeof input3.cnv_logratio && null !== input3.cnv_logratio || $report(_exceptionable2, {
|
|
102
|
+
path: _path2 + ".cnv_logratio",
|
|
103
|
+
expected: "(__type.o1 | undefined)",
|
|
104
|
+
value: input3.cnv_logratio
|
|
105
|
+
})) && $vo3(input3.cnv_logratio, _path2 + ".cnv_logratio", _exceptionable2) || $report(_exceptionable2, {
|
|
106
|
+
path: _path2 + ".cnv_logratio",
|
|
107
|
+
expected: "(__type.o1 | undefined)",
|
|
108
|
+
value: input3.cnv_logratio
|
|
55
109
|
})].every((flag) => flag);
|
|
56
110
|
const $vo1 = (input3, _path2, _exceptionable2 = true) => true;
|
|
111
|
+
const $vo2 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.type || $report(_exceptionable2, {
|
|
112
|
+
path: _path2 + ".type",
|
|
113
|
+
expected: "string",
|
|
114
|
+
value: input3.type
|
|
115
|
+
}), (void 0 !== input3.geneLst || $report(_exceptionable2, {
|
|
116
|
+
path: _path2 + ".geneLst",
|
|
117
|
+
expected: "null",
|
|
118
|
+
value: input3.geneLst
|
|
119
|
+
})) && (null === input3.geneLst || $report(_exceptionable2, {
|
|
120
|
+
path: _path2 + ".geneLst",
|
|
121
|
+
expected: "null",
|
|
122
|
+
value: input3.geneLst
|
|
123
|
+
}))].every((flag) => flag);
|
|
124
|
+
const $vo3 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.type || $report(_exceptionable2, {
|
|
125
|
+
path: _path2 + ".type",
|
|
126
|
+
expected: "string",
|
|
127
|
+
value: input3.type
|
|
128
|
+
}), (void 0 !== input3.geneLst || $report(_exceptionable2, {
|
|
129
|
+
path: _path2 + ".geneLst",
|
|
130
|
+
expected: "null",
|
|
131
|
+
value: input3.geneLst
|
|
132
|
+
})) && (null === input3.geneLst || $report(_exceptionable2, {
|
|
133
|
+
path: _path2 + ".geneLst",
|
|
134
|
+
expected: "null",
|
|
135
|
+
value: input3.geneLst
|
|
136
|
+
}))].every((flag) => flag);
|
|
57
137
|
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
58
138
|
path: _path + "",
|
|
59
139
|
expected: "topMutatedGeneRequest",
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
package/src/dataset.ts
CHANGED
|
@@ -421,9 +421,14 @@ export type GeneArgumentEntry = {
|
|
|
421
421
|
label: string
|
|
422
422
|
/** Optional: Creates subtext below the main label */
|
|
423
423
|
sublabel?: string
|
|
424
|
-
/** boolean
|
|
425
|
-
*
|
|
426
|
-
|
|
424
|
+
/** 'boolean' has two options.
|
|
425
|
+
* - If .options[] is provided, it creates a 'submenu', a checkbox
|
|
426
|
+
* that expands to show additional inputs when checked. .options[]
|
|
427
|
+
* in this case is GeneArgumentEntry[]
|
|
428
|
+
* - If !.options[] is provided, it creates a checkbox
|
|
429
|
+
* 'string' creates a checked checkbox if a .value is provided
|
|
430
|
+
* 'number' creates a text number input
|
|
431
|
+
* 'radio' creates a radio buttons, see options[] */
|
|
427
432
|
type: 'boolean' | 'string' | 'number' | 'radio'
|
|
428
433
|
/** value of the input or checkbox
|
|
429
434
|
* required if type is string. Otherwise, optional
|
|
@@ -441,6 +446,8 @@ export type GeneArgumentEntry = {
|
|
|
441
446
|
* 'text': creates a text area input
|
|
442
447
|
* 'tree': launches termdb app and the tree
|
|
443
448
|
* 'boolean': No element is created
|
|
449
|
+
*
|
|
450
|
+
* boolean is the default type
|
|
444
451
|
*/
|
|
445
452
|
type: 'text' | 'tree' | 'boolean' | string
|
|
446
453
|
/** value used to construct the server argument
|
|
@@ -799,7 +806,23 @@ type SingleSampleGbtk = {
|
|
|
799
806
|
}
|
|
800
807
|
|
|
801
808
|
type Mds3Queries = {
|
|
802
|
-
|
|
809
|
+
/** (gb=genomebrowser) controls gb chart button menu genesearchbox behavior,
|
|
810
|
+
add some additional options after a gene is found, and mode of gb launched from the menu
|
|
811
|
+
|
|
812
|
+
- "protein":
|
|
813
|
+
genesearchbox only allow searching gene and not coord
|
|
814
|
+
launched gb goes into protein-mode
|
|
815
|
+
this is used for ds with only coding mutations over some protein-coding genes, and only want to show protein view for such
|
|
816
|
+
- "genomic":
|
|
817
|
+
searching either gene/coord will result in coord
|
|
818
|
+
gb will always be in genomic mode
|
|
819
|
+
this is used for ds with genome-wide variants only shown in genomic views, but not protein view
|
|
820
|
+
- none:
|
|
821
|
+
meaning gb can be shown in either protein or genomic mode
|
|
822
|
+
when searching coord, gb goes into genomic mode
|
|
823
|
+
when searching gene, show an option in chart btn menu to select protein or genomic view
|
|
824
|
+
*/
|
|
825
|
+
gbRestrictMode?: 'protein' | 'genomic'
|
|
803
826
|
snvindel?: SnvIndelQuery
|
|
804
827
|
svfusion?: SvFusion
|
|
805
828
|
cnv?: CnvSegment
|
|
@@ -1026,6 +1049,9 @@ type SurvivalSettings = {
|
|
|
1026
1049
|
}
|
|
1027
1050
|
|
|
1028
1051
|
type RegressionSettings = {
|
|
1052
|
+
/** Disclaimer message shown under the cofficient table when
|
|
1053
|
+
* regression type is cox. */
|
|
1054
|
+
coxDisclaimer?: string
|
|
1029
1055
|
/** disable interactions */
|
|
1030
1056
|
disableInteractions?: boolean
|
|
1031
1057
|
/** hide type III statistics table in results */
|
|
@@ -1198,7 +1224,6 @@ type Termdb = {
|
|
|
1198
1224
|
/** if true, backend is allowed to send sample names to client in charts */
|
|
1199
1225
|
displaySampleIds?: boolean
|
|
1200
1226
|
converSampleIds?: boolean
|
|
1201
|
-
allowedTermTypes?: string[]
|
|
1202
1227
|
alwaysShowBranchTerms?: boolean
|
|
1203
1228
|
minimumSampleAllowed4filter?: number
|
|
1204
1229
|
minTimeSinceDx?: number
|
|
@@ -1243,8 +1268,38 @@ keep this setting here for reason of:
|
|
|
1243
1268
|
ssm?: UrlTemplateSsm | UrlTemplateSsm[]
|
|
1244
1269
|
}
|
|
1245
1270
|
|
|
1246
|
-
|
|
1247
|
-
|
|
1271
|
+
termtypeByCohort?: any // FIXME see below
|
|
1272
|
+
/** TODO not declared due to tsc err
|
|
1273
|
+
ds-defined or dynamically created. the array has an extra "nested" property
|
|
1274
|
+
only describes dictionary terms,
|
|
1275
|
+
non-dict terms are dynamically generated in getAllowedTermTypes() of termdb.config.ts based on query types
|
|
1276
|
+
termtypeByCohort?: {
|
|
1277
|
+
cohort: string
|
|
1278
|
+
termType: string
|
|
1279
|
+
termCount: number
|
|
1280
|
+
}[] & {
|
|
1281
|
+
nested: {
|
|
1282
|
+
[cohort: string]: {
|
|
1283
|
+
[termType: string]: number
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1287
|
+
*/
|
|
1288
|
+
|
|
1289
|
+
/** ds defined add on to termtypeByCohort; note that this is not cohort-specific!
|
|
1290
|
+
this is combined with termtypeByCohort in getAllowedTermTypes()
|
|
1291
|
+
for now is used to support following types which lacks good way to auto generate them:
|
|
1292
|
+
|
|
1293
|
+
- geneVariant
|
|
1294
|
+
for somatic events. works for snvindel/svfusion/cnv.
|
|
1295
|
+
since all these datatypes are optional, cannot define it in snvindel.termTypes which could be missing
|
|
1296
|
+
** must be defined via allowedTermTypes[] **
|
|
1297
|
+
|
|
1298
|
+
- snp, snplst, snplocus
|
|
1299
|
+
for germline markers
|
|
1300
|
+
*/
|
|
1301
|
+
allowedTermTypes?: string[]
|
|
1302
|
+
|
|
1248
1303
|
/** ds-defined or dynamically created callbacks
|
|
1249
1304
|
{
|
|
1250
1305
|
getSupportedChartTypes: (a: any) => any
|
|
@@ -7,8 +7,20 @@ export type topMutatedGeneRequest = {
|
|
|
7
7
|
geneFilter?: 'CGC'
|
|
8
8
|
/** max number of genes to return */
|
|
9
9
|
maxGenes?: number
|
|
10
|
+
/** pp filter */
|
|
11
|
+
filter?: object
|
|
10
12
|
/** gdc cohort filter */
|
|
11
13
|
filter0?: object
|
|
14
|
+
/** rest are arguments for built in query */
|
|
15
|
+
snv_mfndi?: number
|
|
16
|
+
snv_splice?: number
|
|
17
|
+
snv_utr?: number
|
|
18
|
+
snv_s?: number
|
|
19
|
+
sv?: number
|
|
20
|
+
fusion?: number
|
|
21
|
+
cnv?: number
|
|
22
|
+
cnv_ms?: { type: string; geneLst: null }
|
|
23
|
+
cnv_logratio?: { type: string; geneLst: null }
|
|
12
24
|
}
|
|
13
25
|
|
|
14
26
|
export type MutatedGene = {
|