@sjcrh/proteinpaint-types 2.116.1-1 → 2.117.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-PTYGGJLG.js → chunk-4U546XOJ.js} +57 -57
- package/dist/{chunk-MDBZCBM2.js → chunk-53UNFIIG.js} +22 -22
- package/dist/{chunk-ZPN2DV5E.js → chunk-DL4UYYVE.js} +8 -8
- package/dist/{chunk-KBTAXZM4.js → chunk-GD3KAF6V.js} +47 -47
- package/dist/{chunk-M26XQDA4.js → chunk-GI4NNB34.js} +8 -8
- package/dist/{chunk-NESPJ4GG.js → chunk-J6SJ4M3S.js} +26 -26
- package/dist/{chunk-C7DJDPLP.js → chunk-JOGEIPHA.js} +57 -57
- package/dist/{chunk-I3U2T7HV.js → chunk-JYO2T4HZ.js} +57 -57
- package/dist/{chunk-GS37E7DB.js → chunk-KG7UDG6M.js} +57 -57
- package/dist/{chunk-KZIZMP7Y.js → chunk-OL4OMJSP.js} +26 -26
- package/dist/{chunk-7GSVLBKZ.js → chunk-ROPNHRVV.js} +8 -8
- package/dist/{chunk-EQGBEPDC.js → chunk-T2CSA2MC.js} +8 -8
- package/dist/correlationVolcano.js +1 -1
- package/dist/index.js +12 -12
- 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 +27 -0
- package/src/routes/correlationVolcano.ts +14 -12
- package/src/terms/geneVariant.ts +2 -10
- package/src/vocab.ts +5 -5
|
@@ -102,8 +102,8 @@ var validPercentileRequest = (input) => {
|
|
|
102
102
|
const $io24 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "condition" === input3.type && (void 0 === input3.child_types || Array.isArray(input3.child_types) && input3.child_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.hashtmldetail || "boolean" === typeof input3.hashtmldetail) && (void 0 === input3.included_types || Array.isArray(input3.included_types) && input3.included_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.isleaf || "boolean" === typeof input3.isleaf) && (void 0 === input3.values || "object" === typeof input3.values && null !== input3.values && false === Array.isArray(input3.values) && $io4(input3.values)) && true;
|
|
103
103
|
const $io25 = (input3) => "number" === typeof input3.grade && "string" === typeof input3.grade_label && (void 0 === input3.child_id || "string" === typeof input3.child_id) && "string" === typeof input3.child_label;
|
|
104
104
|
const $io26 = (input3) => (void 0 === input3.join || "string" === typeof input3.join) && (void 0 === input3.isnot || "boolean" === typeof input3.isnot) && ("object" === typeof input3.term && null !== input3.term && $iu8(input3.term)) && (Array.isArray(input3.values) && input3.values.every((elem) => "object" === typeof elem && null !== elem && $iu3(elem)));
|
|
105
|
-
const $io27 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "geneVariant" === input3.type && (void 0 === input3.child_types || Array.isArray(input3.child_types) && input3.child_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.hashtmldetail || "boolean" === typeof input3.hashtmldetail) && (void 0 === input3.included_types || Array.isArray(input3.included_types) && input3.included_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.isleaf || "boolean" === typeof input3.isleaf) && (void 0 === input3.values || "object" === typeof input3.values && null !== input3.values && false === Array.isArray(input3.values) && $io4(input3.values)) && true && ("object" === typeof input3.groupsetting && null !== input3.groupsetting && $
|
|
106
|
-
const $io28 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "geneVariant" === input3.type && (void 0 === input3.child_types || Array.isArray(input3.child_types) && input3.child_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.hashtmldetail || "boolean" === typeof input3.hashtmldetail) && (void 0 === input3.included_types || Array.isArray(input3.included_types) && input3.included_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.isleaf || "boolean" === typeof input3.isleaf) && (void 0 === input3.values || "object" === typeof input3.values && null !== input3.values && false === Array.isArray(input3.values) && $io4(input3.values)) && true && ("object" === typeof input3.groupsetting && null !== input3.groupsetting && $
|
|
105
|
+
const $io27 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "geneVariant" === input3.type && (void 0 === input3.child_types || Array.isArray(input3.child_types) && input3.child_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.hashtmldetail || "boolean" === typeof input3.hashtmldetail) && (void 0 === input3.included_types || Array.isArray(input3.included_types) && input3.included_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.isleaf || "boolean" === typeof input3.isleaf) && (void 0 === input3.values || "object" === typeof input3.values && null !== input3.values && false === Array.isArray(input3.values) && $io4(input3.values)) && true && ("object" === typeof input3.groupsetting && null !== input3.groupsetting && $iu4(input3.groupsetting)) && "gene" === input3.kind && "string" === typeof input3.gene && (void 0 === input3.chr || "string" === typeof input3.chr) && (void 0 === input3.start || "number" === typeof input3.start) && (void 0 === input3.stop || "number" === typeof input3.stop);
|
|
106
|
+
const $io28 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "geneVariant" === input3.type && (void 0 === input3.child_types || Array.isArray(input3.child_types) && input3.child_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.hashtmldetail || "boolean" === typeof input3.hashtmldetail) && (void 0 === input3.included_types || Array.isArray(input3.included_types) && input3.included_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.isleaf || "boolean" === typeof input3.isleaf) && (void 0 === input3.values || "object" === typeof input3.values && null !== input3.values && false === Array.isArray(input3.values) && $io4(input3.values)) && true && ("object" === typeof input3.groupsetting && null !== input3.groupsetting && $iu4(input3.groupsetting)) && "coord" === input3.kind && "string" === typeof input3.chr && "number" === typeof input3.start && "number" === typeof input3.stop;
|
|
107
107
|
const $io29 = (input3) => 1 === input3.dt && (Array.isArray(input3.mclassLst) && input3.mclassLst.every((elem) => "M" === elem || "E" === elem || "F" === elem || "N" === elem || "S" === elem || "D" === elem || "I" === elem || "P" === elem || "L" === elem || "Intron" === elem || "Blank" === elem || "WT" === elem || "ITD" === elem || "DEL" === elem || "NLOSS" === elem || "CLOSS" === elem || "Utr3" === elem || "Utr5" === elem || "X" === elem || "noncoding" === elem)) && (Array.isArray(input3.mclassExcludeLst) && input3.mclassExcludeLst.every((elem) => "M" === elem || "E" === elem || "F" === elem || "N" === elem || "S" === elem || "D" === elem || "I" === elem || "P" === elem || "L" === elem || "Intron" === elem || "Blank" === elem || "WT" === elem || "ITD" === elem || "DEL" === elem || "NLOSS" === elem || "CLOSS" === elem || "Utr3" === elem || "Utr5" === elem || "X" === elem || "noncoding" === elem)) && (void 0 === input3.origin || "somatic" === input3.origin || "germline" === input3.origin);
|
|
108
108
|
const $io30 = (input3) => 4 === input3.dt && (Array.isArray(input3.mclassLst) && input3.mclassLst.every((elem) => "Blank" === elem || "WT" === elem || "CNV_amp" === elem || "CNV_loss" === elem || "CNV_loh" === elem || "CNV_amplification" === elem || "CNV_homozygous_deletion" === elem)) && (Array.isArray(input3.mclassExcludeLst) && input3.mclassExcludeLst.every((elem) => "Blank" === elem || "WT" === elem || "CNV_amp" === elem || "CNV_loss" === elem || "CNV_loh" === elem || "CNV_amplification" === elem || "CNV_homozygous_deletion" === elem)) && (void 0 === input3.origin || "somatic" === input3.origin || "germline" === input3.origin);
|
|
109
109
|
const $io31 = (input3) => 5 === input3.dt && (Array.isArray(input3.mclassLst) && input3.mclassLst.every((elem) => "Blank" === elem || "WT" === elem || "SV" === elem)) && (Array.isArray(input3.mclassExcludeLst) && input3.mclassExcludeLst.every((elem) => "Blank" === elem || "WT" === elem || "SV" === elem)) && (void 0 === input3.origin || "somatic" === input3.origin || "germline" === input3.origin);
|
|
@@ -1134,11 +1134,11 @@ var validPercentileRequest = (input) => {
|
|
|
1134
1134
|
value: input3.values
|
|
1135
1135
|
}), true, ("object" === typeof input3.groupsetting && null !== input3.groupsetting || $report(_exceptionable2, {
|
|
1136
1136
|
path: _path2 + ".groupsetting",
|
|
1137
|
-
expected: "EnabledTermGroupSetting",
|
|
1137
|
+
expected: "(EnabledTermGroupSetting | __type.o1)",
|
|
1138
1138
|
value: input3.groupsetting
|
|
1139
|
-
})) && $
|
|
1139
|
+
})) && $vu4(input3.groupsetting, _path2 + ".groupsetting", _exceptionable2) || $report(_exceptionable2, {
|
|
1140
1140
|
path: _path2 + ".groupsetting",
|
|
1141
|
-
expected: "EnabledTermGroupSetting",
|
|
1141
|
+
expected: "(EnabledTermGroupSetting | __type.o1)",
|
|
1142
1142
|
value: input3.groupsetting
|
|
1143
1143
|
}), "gene" === input3.kind || $report(_exceptionable2, {
|
|
1144
1144
|
path: _path2 + ".kind",
|
|
@@ -1215,11 +1215,11 @@ var validPercentileRequest = (input) => {
|
|
|
1215
1215
|
value: input3.values
|
|
1216
1216
|
}), true, ("object" === typeof input3.groupsetting && null !== input3.groupsetting || $report(_exceptionable2, {
|
|
1217
1217
|
path: _path2 + ".groupsetting",
|
|
1218
|
-
expected: "EnabledTermGroupSetting",
|
|
1218
|
+
expected: "(EnabledTermGroupSetting | __type.o1)",
|
|
1219
1219
|
value: input3.groupsetting
|
|
1220
|
-
})) && $
|
|
1220
|
+
})) && $vu4(input3.groupsetting, _path2 + ".groupsetting", _exceptionable2) || $report(_exceptionable2, {
|
|
1221
1221
|
path: _path2 + ".groupsetting",
|
|
1222
|
-
expected: "EnabledTermGroupSetting",
|
|
1222
|
+
expected: "(EnabledTermGroupSetting | __type.o1)",
|
|
1223
1223
|
value: input3.groupsetting
|
|
1224
1224
|
}), "coord" === input3.kind || $report(_exceptionable2, {
|
|
1225
1225
|
path: _path2 + ".kind",
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
termsByIdsPayload,
|
|
3
3
|
validTermsByIdsRequest,
|
|
4
4
|
validTermsByIdsResponse
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JYO2T4HZ.js";
|
|
6
6
|
import {
|
|
7
7
|
topMutatedGenePayload,
|
|
8
8
|
validTopMutatedGeneRequest,
|
|
@@ -12,17 +12,17 @@ import {
|
|
|
12
12
|
termdbTopTermsByTypePayload,
|
|
13
13
|
validTermdbTopTermsByTypeRequest,
|
|
14
14
|
validTermdbTopTermsByTypeResponse
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-OL4OMJSP.js";
|
|
16
16
|
import {
|
|
17
17
|
termdbTopVariablyExpressedGenesPayload,
|
|
18
18
|
validTermdbTopVariablyExpressedGenesRequest,
|
|
19
19
|
validTermdbTopVariablyExpressedGenesResponse
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ROPNHRVV.js";
|
|
21
21
|
import {
|
|
22
22
|
validViolinRequest,
|
|
23
23
|
validViolinResponse,
|
|
24
24
|
violinPayload
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-DL4UYYVE.js";
|
|
26
26
|
import {
|
|
27
27
|
tilePayload,
|
|
28
28
|
validTileRequest,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
percentilePayload,
|
|
43
43
|
validPercentileRequest,
|
|
44
44
|
validPercentileResponse
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-T2CSA2MC.js";
|
|
46
46
|
import {
|
|
47
47
|
rootTermPayload,
|
|
48
48
|
validRootTermRequest,
|
|
@@ -87,17 +87,17 @@ import {
|
|
|
87
87
|
boxplotPayload,
|
|
88
88
|
validBoxPlotRequest,
|
|
89
89
|
validBoxPlotResponse
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-4U546XOJ.js";
|
|
91
91
|
import {
|
|
92
92
|
termdbCategoriesPayload,
|
|
93
93
|
validCategoriesRequest,
|
|
94
94
|
validCategoriesResponse
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-JOGEIPHA.js";
|
|
96
96
|
import {
|
|
97
97
|
termdbClusterPayload,
|
|
98
98
|
validTermdbClusterRequest,
|
|
99
99
|
validTermdbClusterResponse
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-J6SJ4M3S.js";
|
|
101
101
|
import {
|
|
102
102
|
termdbCohortSummaryPayload,
|
|
103
103
|
validTermdbCohortSummaryRequest,
|
|
@@ -112,12 +112,12 @@ import {
|
|
|
112
112
|
descrStatsPayload,
|
|
113
113
|
validDescrStatsRequest,
|
|
114
114
|
validDescrStatsResponse
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-KG7UDG6M.js";
|
|
116
116
|
import {
|
|
117
117
|
numericCategoriesPayload,
|
|
118
118
|
validNumericCategoriesRequest,
|
|
119
119
|
validNumericCategoriesResponse
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-GI4NNB34.js";
|
|
121
121
|
import {
|
|
122
122
|
hicstatPayload,
|
|
123
123
|
validHicstatRequest,
|
|
@@ -197,7 +197,7 @@ import {
|
|
|
197
197
|
brainImagingPayload,
|
|
198
198
|
validBrainImagingRequest,
|
|
199
199
|
validBrainImagingResponse
|
|
200
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-GD3KAF6V.js";
|
|
201
201
|
import {
|
|
202
202
|
brainImagingSamplesPayload,
|
|
203
203
|
validBrainImagingSamplesRequest,
|
|
@@ -212,7 +212,7 @@ import {
|
|
|
212
212
|
CorrelationVolcanoPayload,
|
|
213
213
|
validCorrelationVolcanoRequest,
|
|
214
214
|
validCorrelationVolcanoResponse
|
|
215
|
-
} from "./chunk-
|
|
215
|
+
} from "./chunk-53UNFIIG.js";
|
|
216
216
|
import {
|
|
217
217
|
datasetPayload,
|
|
218
218
|
validDatasetRequest,
|
package/dist/termdb.boxplot.js
CHANGED
package/dist/termdb.cluster.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
termdbTopVariablyExpressedGenesPayload,
|
|
3
3
|
validTermdbTopVariablyExpressedGenesRequest,
|
|
4
4
|
validTermdbTopVariablyExpressedGenesResponse
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ROPNHRVV.js";
|
|
6
6
|
import "./chunk-CNSSF43V.js";
|
|
7
7
|
export {
|
|
8
8
|
termdbTopVariablyExpressedGenesPayload,
|
package/dist/termdb.violin.js
CHANGED
package/package.json
CHANGED
package/src/dataset.ts
CHANGED
|
@@ -1346,6 +1346,32 @@ keep this setting here for reason of:
|
|
|
1346
1346
|
/** allow color or shape changes in the lollipop */
|
|
1347
1347
|
allowSkewerChanges: boolean
|
|
1348
1348
|
}
|
|
1349
|
+
//* specify color map per module/group of terms. Used in the profile dataset.
|
|
1350
|
+
/** For example "National Context" is a profile module, that groups some multivalue terms for wich the category colors are the ones shown below:
|
|
1351
|
+
colorMap: {
|
|
1352
|
+
['*']: {
|
|
1353
|
+
['Not applicable for my role']: '#aaa',
|
|
1354
|
+
['Not Available/Do Not Know']: '#aaa',
|
|
1355
|
+
["I don't know"]: '#aaa',
|
|
1356
|
+
['Almost Never']: '#595959',
|
|
1357
|
+
['Infrequently']: '#747474',
|
|
1358
|
+
['No']: '#aaa'
|
|
1359
|
+
},
|
|
1360
|
+
['National Context']: {
|
|
1361
|
+
['Almost Always']: '#15557C',
|
|
1362
|
+
['Frequently']: '#1E77BB',
|
|
1363
|
+
['Sometimes']: '#2FA9F4',
|
|
1364
|
+
['Yes']: '#1E77BB'
|
|
1365
|
+
},
|
|
1366
|
+
}
|
|
1367
|
+
If the colors are the same for all the categories, use the wildcard '*' to define the color for all the modules.
|
|
1368
|
+
**/
|
|
1369
|
+
colorMap?: {
|
|
1370
|
+
/** colors for a category multivalues */
|
|
1371
|
+
[index: string]: { [index: string]: string }
|
|
1372
|
+
}
|
|
1373
|
+
//terms that are not shown in the dictionary tree unless the user is admin. If there is no authentication the terms listes are always hidden
|
|
1374
|
+
hiddenTermIds?: string[]
|
|
1349
1375
|
}
|
|
1350
1376
|
|
|
1351
1377
|
type SampleType = {
|
|
@@ -1453,6 +1479,7 @@ export type Cohort = {
|
|
|
1453
1479
|
/** if present, supplies premade scatter plots */
|
|
1454
1480
|
scatterplots?: Scatterplots
|
|
1455
1481
|
termdb: Termdb
|
|
1482
|
+
hiddenTermIds?: string[]
|
|
1456
1483
|
}
|
|
1457
1484
|
|
|
1458
1485
|
/** Customizations specific to the mass nav component */
|
|
@@ -24,18 +24,20 @@ export type CorrelationVolcanoResponse = {
|
|
|
24
24
|
tw$id: string
|
|
25
25
|
}[]
|
|
26
26
|
/** each element is test result of one variable corresponding to variableTwLst */
|
|
27
|
-
variableItems:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
27
|
+
variableItems: VariableItemEntry[]
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export type VariableItemEntry = {
|
|
31
|
+
/** correlation coefficient, -1 to 1 */
|
|
32
|
+
correlation: number
|
|
33
|
+
/** pvalue */
|
|
34
|
+
original_pvalue: number
|
|
35
|
+
/** pvalue */
|
|
36
|
+
adjusted_pvalue: number
|
|
37
|
+
/** tw.$id, for client to match the item with variableTwLst */
|
|
38
|
+
tw$id: string
|
|
39
|
+
/** number of samples analyzed. samples not having complete data for all terms will be excluded, thus size may be lower than current cohort */
|
|
40
|
+
sampleSize: number
|
|
39
41
|
}
|
|
40
42
|
|
|
41
43
|
export const CorrelationVolcanoPayload: RoutePayload = {
|
package/src/terms/geneVariant.ts
CHANGED
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
MinBaseQ,
|
|
3
|
-
BaseTerm,
|
|
4
|
-
EnabledTermGroupSetting,
|
|
5
|
-
BaseTW,
|
|
6
|
-
GroupSettingQ,
|
|
7
|
-
ValuesQ,
|
|
8
|
-
TermValues
|
|
9
|
-
} from '../index.ts'
|
|
1
|
+
import type { MinBaseQ, BaseTerm, TermGroupSetting, BaseTW, GroupSettingQ, ValuesQ, TermValues } from '../index.ts'
|
|
10
2
|
import type { TermSettingInstance } from '../termsetting.ts'
|
|
11
3
|
|
|
12
4
|
export type GeneVariantBaseQ = MinBaseQ & {
|
|
@@ -23,7 +15,7 @@ export type GeneVariantQ = GeneVariantBaseQ & (ValuesQ | GroupSettingQ)
|
|
|
23
15
|
|
|
24
16
|
type GeneVariantBaseTerm = BaseTerm & {
|
|
25
17
|
type: 'geneVariant'
|
|
26
|
-
groupsetting:
|
|
18
|
+
groupsetting: TermGroupSetting
|
|
27
19
|
}
|
|
28
20
|
|
|
29
21
|
export type GeneVariantGeneTerm = GeneVariantBaseTerm & {
|
package/src/vocab.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TermWrapper } from './terms/tw.ts'
|
|
2
|
-
import { Term } from './terms/term.ts'
|
|
3
|
-
import { Filter } from './filter.ts'
|
|
4
|
-
import { UseCase } from './termsetting.ts'
|
|
1
|
+
import type { TermWrapper } from './terms/tw.ts'
|
|
2
|
+
import type { Term } from './terms/term.ts'
|
|
3
|
+
import type { Filter } from './filter.ts'
|
|
4
|
+
import type { UseCase } from './termsetting.ts'
|
|
5
5
|
|
|
6
6
|
/*
|
|
7
7
|
--------EXPORTED--------
|
|
@@ -16,7 +16,7 @@ export type VocabApi = {
|
|
|
16
16
|
//Methods
|
|
17
17
|
cacheTermQ: (term: Term, q: any) => any
|
|
18
18
|
findTerm: (f: string, activeCohort: number, usecase: UseCase, x: string) => { lst: Term[] }
|
|
19
|
-
getCategories: (term: Term,
|
|
19
|
+
getCategories: (term: Term, filter?: Filter, body?: any) => any
|
|
20
20
|
getCustomTermQLst: (f: Term) => any
|
|
21
21
|
getPercentile: (term_id: string | number, percentile_lst: number[], filter?: Filter) => any
|
|
22
22
|
getterm: (f: any) => Term
|