@sjcrh/proteinpaint-types 2.121.0 → 2.124.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/{chunk-HURSYPTO.js → chunk-D5OG676D.js} +32 -1
- package/dist/index.js +1 -1
- package/dist/samplewsimages.js +1 -1
- package/package.json +1 -1
- package/src/dataset.ts +22 -11
- package/src/genome.ts +6 -0
- package/src/routes/samplewsimages.ts +1 -0
|
@@ -65,7 +65,7 @@ var validSampleWSImagesResponse = (input) => {
|
|
|
65
65
|
const errors = [];
|
|
66
66
|
const __is = (input2) => {
|
|
67
67
|
const $io0 = (input3) => Array.isArray(input3.sampleWSImages) && input3.sampleWSImages.every((elem) => "object" === typeof elem && null !== elem && $io1(elem));
|
|
68
|
-
const $io1 = (input3) => "string" === typeof input3.filename && (void 0 === input3.overlays || Array.isArray(input3.overlays) && input3.overlays.every((elem) => "string" === typeof elem)) && "string" === typeof input3.metadata;
|
|
68
|
+
const $io1 = (input3) => "string" === typeof input3.filename && (void 0 === input3.overlays || Array.isArray(input3.overlays) && input3.overlays.every((elem) => "string" === typeof elem)) && (void 0 === input3.zoomInPoints || Array.isArray(input3.zoomInPoints) && input3.zoomInPoints.every((elem) => Array.isArray(elem) && (elem.length === 2 && "number" === typeof elem[0] && "number" === typeof elem[1]))) && "string" === typeof input3.metadata;
|
|
69
69
|
return "object" === typeof input2 && null !== input2 && $io0(input2);
|
|
70
70
|
};
|
|
71
71
|
if (false === __is(input)) {
|
|
@@ -104,6 +104,37 @@ var validSampleWSImagesResponse = (input) => {
|
|
|
104
104
|
path: _path2 + ".overlays",
|
|
105
105
|
expected: "(Array<string> | undefined)",
|
|
106
106
|
value: input3.overlays
|
|
107
|
+
}), void 0 === input3.zoomInPoints || (Array.isArray(input3.zoomInPoints) || $report(_exceptionable2, {
|
|
108
|
+
path: _path2 + ".zoomInPoints",
|
|
109
|
+
expected: "(Array<[number, number]> | undefined)",
|
|
110
|
+
value: input3.zoomInPoints
|
|
111
|
+
})) && input3.zoomInPoints.map((elem, _index3) => (Array.isArray(elem) || $report(_exceptionable2, {
|
|
112
|
+
path: _path2 + ".zoomInPoints[" + _index3 + "]",
|
|
113
|
+
expected: "[number, number]",
|
|
114
|
+
value: elem
|
|
115
|
+
})) && ((elem.length === 2 || $report(_exceptionable2, {
|
|
116
|
+
path: _path2 + ".zoomInPoints[" + _index3 + "]",
|
|
117
|
+
expected: "[number, number]",
|
|
118
|
+
value: elem
|
|
119
|
+
})) && [
|
|
120
|
+
"number" === typeof elem[0] || $report(_exceptionable2, {
|
|
121
|
+
path: _path2 + ".zoomInPoints[" + _index3 + "][0]",
|
|
122
|
+
expected: "number",
|
|
123
|
+
value: elem[0]
|
|
124
|
+
}),
|
|
125
|
+
"number" === typeof elem[1] || $report(_exceptionable2, {
|
|
126
|
+
path: _path2 + ".zoomInPoints[" + _index3 + "][1]",
|
|
127
|
+
expected: "number",
|
|
128
|
+
value: elem[1]
|
|
129
|
+
})
|
|
130
|
+
].every((flag) => flag)) || $report(_exceptionable2, {
|
|
131
|
+
path: _path2 + ".zoomInPoints[" + _index3 + "]",
|
|
132
|
+
expected: "[number, number]",
|
|
133
|
+
value: elem
|
|
134
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
135
|
+
path: _path2 + ".zoomInPoints",
|
|
136
|
+
expected: "(Array<[number, number]> | undefined)",
|
|
137
|
+
value: input3.zoomInPoints
|
|
107
138
|
}), "string" === typeof input3.metadata || $report(_exceptionable2, {
|
|
108
139
|
path: _path2 + ".metadata",
|
|
109
140
|
expected: "string",
|
package/dist/index.js
CHANGED
package/dist/samplewsimages.js
CHANGED
package/package.json
CHANGED
package/src/dataset.ts
CHANGED
|
@@ -600,9 +600,20 @@ type CnvSegment = {
|
|
|
600
600
|
cnvMaxCopynumber?: number
|
|
601
601
|
*/
|
|
602
602
|
|
|
603
|
-
/**
|
|
604
|
-
|
|
603
|
+
/** quick fix for gdc cnv tool:
|
|
604
|
+
if not set, mds3 tk & matrix will load cnv segments and show them together with ssm & fusion
|
|
605
|
+
if set:
|
|
606
|
+
- for mds3 tk loading via mds3.load.js, only when tk.hardcodeCnvOnly=true, this will be loaded and shown
|
|
607
|
+
- for others using mayGetGeneVariantData(), this is always disabled, as request won't have this flag
|
|
605
608
|
*/
|
|
609
|
+
requiresHardcodeCnvOnlyFlag?: true
|
|
610
|
+
|
|
611
|
+
/** CNV cutoffs (such as cnvGainCutoff, cnvLossCutoff, cnvMaxLength) that are applied to specific genes */
|
|
612
|
+
cnvCutoffsByGene?: {
|
|
613
|
+
[geneName: string]: {
|
|
614
|
+
[key: string]: any
|
|
615
|
+
}
|
|
616
|
+
}
|
|
606
617
|
}
|
|
607
618
|
|
|
608
619
|
/*
|
|
@@ -946,6 +957,8 @@ export type WSImages = {
|
|
|
946
957
|
getWSImages?: (sampleName: string) => Promise<WSImage[]>
|
|
947
958
|
/** ds supplied */
|
|
948
959
|
getWSIAnnotations?: (sampleName: string, wsiImage: string) => Promise<string[]>
|
|
960
|
+
/** ds supplied */
|
|
961
|
+
getZoomInPoints?: (sampleName: string, wsiImage: string) => Promise<Array<[number, number]>>
|
|
949
962
|
}
|
|
950
963
|
|
|
951
964
|
/*** types supporting Termdb ***/
|
|
@@ -1166,9 +1179,12 @@ type Matrix = {
|
|
|
1166
1179
|
settings?: MatrixSettings
|
|
1167
1180
|
/** matrix-specific mclass override? */
|
|
1168
1181
|
mclass?: Mclass
|
|
1169
|
-
|
|
1182
|
+
/** filter to hide entire legend group, e.g. hide all CNV */
|
|
1170
1183
|
legendGrpFilter?: any
|
|
1184
|
+
/** filter to hide categories or mclass, e.g. hide male, hide MISSENSE */
|
|
1171
1185
|
legendValueFilter?: any
|
|
1186
|
+
/** matrix criteria for a CNV alteration */
|
|
1187
|
+
cnvCutoffs?: any
|
|
1172
1188
|
}
|
|
1173
1189
|
|
|
1174
1190
|
// specific hierCluster type settings, should be named as "dataTYpe + Cluster"
|
|
@@ -1278,7 +1294,7 @@ type Termdb = {
|
|
|
1278
1294
|
/** Terms */
|
|
1279
1295
|
termIds?: TermIds
|
|
1280
1296
|
/** if true, backend is allowed to send sample names to client in charts */
|
|
1281
|
-
displaySampleIds?: boolean
|
|
1297
|
+
displaySampleIds?: (clientAuthResult: any) => boolean
|
|
1282
1298
|
converSampleIds?: boolean
|
|
1283
1299
|
alwaysShowBranchTerms?: boolean
|
|
1284
1300
|
minimumSampleAllowed4filter?: number
|
|
@@ -1428,8 +1444,8 @@ keep this setting here for reason of:
|
|
|
1428
1444
|
/** colors for a category multivalues */
|
|
1429
1445
|
[index: string]: { [index: string]: string }
|
|
1430
1446
|
}
|
|
1431
|
-
//terms
|
|
1432
|
-
|
|
1447
|
+
//terms are shown in the dictionary based on term and user role.
|
|
1448
|
+
isTermVisible?: (clientAuthResult: any, id: string) => boolean
|
|
1433
1449
|
}
|
|
1434
1450
|
|
|
1435
1451
|
type SampleType = {
|
|
@@ -1964,11 +1980,6 @@ export type Mds3 = BaseMds & {
|
|
|
1964
1980
|
// !!! TODO: improve these type definitions below !!!
|
|
1965
1981
|
getHostHeaders?: (q?: any) => any
|
|
1966
1982
|
serverconfigFeatures?: any
|
|
1967
|
-
customTwQByType?: {
|
|
1968
|
-
[termType: string]: {
|
|
1969
|
-
[key: string]: any
|
|
1970
|
-
}
|
|
1971
|
-
}
|
|
1972
1983
|
getHealth?: (ds: any) => {
|
|
1973
1984
|
[key: string]: any
|
|
1974
1985
|
}
|
package/src/genome.ts
CHANGED
|
@@ -19,6 +19,12 @@ type TermDbs = {
|
|
|
19
19
|
type TermDbsEntry = {
|
|
20
20
|
label: string
|
|
21
21
|
cohort: Cohort
|
|
22
|
+
/** list of geneset groups in db; required for geneORA and gsea
|
|
23
|
+
later allow ds override so ds can enable/disable some genesets..
|
|
24
|
+
*/
|
|
25
|
+
analysisGenesetGroups: { label: string; value: string }[]
|
|
26
|
+
/** required for gsea */
|
|
27
|
+
geneORAparam: { minCutoff: number; maxCutoff: number }
|
|
22
28
|
}
|
|
23
29
|
|
|
24
30
|
type DbStatement = {
|