@sjcrh/proteinpaint-types 2.157.1-0 → 2.159.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-UGYLBYUU.js → chunk-5L4VF3ZL.js} +29 -1
- package/dist/{chunk-WCF7WIJY.js → chunk-D37D752M.js} +5 -1
- package/dist/grin2.js +1 -1
- package/dist/index.js +2 -2
- package/dist/termdb.singleSampleMutation.js +1 -1
- package/package.json +1 -1
- package/src/dataset.ts +9 -9
- package/src/routes/grin2.ts +6 -0
- package/src/routes/termdb.singleSampleMutation.ts +5 -1
|
@@ -74,7 +74,15 @@ var validTermdbSingleSampleMutationResponse = (input) => {
|
|
|
74
74
|
return Array.isArray(value) && value.every((elem) => "object" === typeof elem && null !== elem && $io5(elem));
|
|
75
75
|
return true;
|
|
76
76
|
});
|
|
77
|
-
const $io5 = (input3) => (void 0 === input3.nameHtml || "string" === typeof input3.nameHtml) && (void 0 === input3.name || "string" === typeof input3.name) && (void 0 === input3.inuse || "boolean" === typeof input3.inuse) && (Array.isArray(input3.mlst) && input3.mlst.every((elem) => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io2(elem)));
|
|
77
|
+
const $io5 = (input3) => (void 0 === input3.nameHtml || "string" === typeof input3.nameHtml) && (void 0 === input3.name || "string" === typeof input3.name) && (void 0 === input3.inuse || "boolean" === typeof input3.inuse) && (Array.isArray(input3.mlst) && input3.mlst.every((elem) => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io2(elem))) && (void 0 === input3.attrs || "object" === typeof input3.attrs && null !== input3.attrs && false === Array.isArray(input3.attrs) && $io6(input3.attrs));
|
|
78
|
+
const $io6 = (input3) => Object.keys(input3).every((key) => {
|
|
79
|
+
const value = input3[key];
|
|
80
|
+
if (void 0 === value)
|
|
81
|
+
return true;
|
|
82
|
+
if (RegExp(/(.*)/).test(key))
|
|
83
|
+
return "string" === typeof value;
|
|
84
|
+
return true;
|
|
85
|
+
});
|
|
78
86
|
const $iu0 = (input3) => (() => {
|
|
79
87
|
if (void 0 !== input3.status)
|
|
80
88
|
return $io0(input3);
|
|
@@ -200,7 +208,27 @@ var validTermdbSingleSampleMutationResponse = (input) => {
|
|
|
200
208
|
path: _path2 + ".mlst",
|
|
201
209
|
expected: "Array<object>",
|
|
202
210
|
value: input3.mlst
|
|
211
|
+
}), void 0 === input3.attrs || ("object" === typeof input3.attrs && null !== input3.attrs && false === Array.isArray(input3.attrs) || $report(_exceptionable2, {
|
|
212
|
+
path: _path2 + ".attrs",
|
|
213
|
+
expected: "(__type.o3 | undefined)",
|
|
214
|
+
value: input3.attrs
|
|
215
|
+
})) && $vo6(input3.attrs, _path2 + ".attrs", _exceptionable2) || $report(_exceptionable2, {
|
|
216
|
+
path: _path2 + ".attrs",
|
|
217
|
+
expected: "(__type.o3 | undefined)",
|
|
218
|
+
value: input3.attrs
|
|
203
219
|
})].every((flag) => flag);
|
|
220
|
+
const $vo6 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
|
|
221
|
+
const value = input3[key];
|
|
222
|
+
if (void 0 === value)
|
|
223
|
+
return true;
|
|
224
|
+
if (RegExp(/(.*)/).test(key))
|
|
225
|
+
return "string" === typeof value || $report(_exceptionable2, {
|
|
226
|
+
path: _path2 + $join(key),
|
|
227
|
+
expected: "string",
|
|
228
|
+
value
|
|
229
|
+
});
|
|
230
|
+
return true;
|
|
231
|
+
}).every((flag) => flag)].every((flag) => flag);
|
|
204
232
|
const $vu0 = (input3, _path2, _exceptionable2 = true) => (() => {
|
|
205
233
|
if (void 0 !== input3.status)
|
|
206
234
|
return $vo0(input3, _path2, _exceptionable2);
|
|
@@ -20,7 +20,7 @@ var GRIN2Payload = {
|
|
|
20
20
|
var validGRIN2Request = (input) => {
|
|
21
21
|
const errors = [];
|
|
22
22
|
const __is = (input2) => {
|
|
23
|
-
const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && (void 0 === input3.devicePixelRatio || "number" === typeof input3.devicePixelRatio) && (void 0 === input3.width || "number" === typeof input3.width) && (void 0 === input3.height || "number" === typeof input3.height) && (void 0 === input3.pngDotRadius || "number" === typeof input3.pngDotRadius) && true && (void 0 === input3.snvindelOptions || "object" === typeof input3.snvindelOptions && null !== input3.snvindelOptions && false === Array.isArray(input3.snvindelOptions) && $io1(input3.snvindelOptions)) && (void 0 === input3.cnvOptions || "object" === typeof input3.cnvOptions && null !== input3.cnvOptions && false === Array.isArray(input3.cnvOptions) && $io2(input3.cnvOptions)) && (void 0 === input3.fusionOptions || "object" === typeof input3.fusionOptions && null !== input3.fusionOptions && false === Array.isArray(input3.fusionOptions) && $io3(input3.fusionOptions)) && (void 0 === input3.svOptions || "object" === typeof input3.svOptions && null !== input3.svOptions && false === Array.isArray(input3.svOptions) && $io4(input3.svOptions)) && (void 0 === input3.maxGenesToShow || "number" === typeof input3.maxGenesToShow);
|
|
23
|
+
const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && (void 0 === input3.devicePixelRatio || "number" === typeof input3.devicePixelRatio) && (void 0 === input3.width || "number" === typeof input3.width) && (void 0 === input3.height || "number" === typeof input3.height) && (void 0 === input3.pngDotRadius || "number" === typeof input3.pngDotRadius) && true && (void 0 === input3.qValueThreshold || "number" === typeof input3.qValueThreshold) && true && (void 0 === input3.snvindelOptions || "object" === typeof input3.snvindelOptions && null !== input3.snvindelOptions && false === Array.isArray(input3.snvindelOptions) && $io1(input3.snvindelOptions)) && (void 0 === input3.cnvOptions || "object" === typeof input3.cnvOptions && null !== input3.cnvOptions && false === Array.isArray(input3.cnvOptions) && $io2(input3.cnvOptions)) && (void 0 === input3.fusionOptions || "object" === typeof input3.fusionOptions && null !== input3.fusionOptions && false === Array.isArray(input3.fusionOptions) && $io3(input3.fusionOptions)) && (void 0 === input3.svOptions || "object" === typeof input3.svOptions && null !== input3.svOptions && false === Array.isArray(input3.svOptions) && $io4(input3.svOptions)) && (void 0 === input3.maxGenesToShow || "number" === typeof input3.maxGenesToShow);
|
|
24
24
|
const $io1 = (input3) => (void 0 === input3.minTotalDepth || "number" === typeof input3.minTotalDepth) && (void 0 === input3.minAltAlleleCount || "number" === typeof input3.minAltAlleleCount) && (void 0 === input3.consequences || Array.isArray(input3.consequences) && input3.consequences.every((elem) => "string" === typeof elem)) && (void 0 === input3.hyperMutator || "number" === typeof input3.hyperMutator) && (void 0 === input3.fivePrimeFlankSize || "number" === typeof input3.fivePrimeFlankSize) && (void 0 === input3.threePrimeFlankSize || "number" === typeof input3.threePrimeFlankSize);
|
|
25
25
|
const $io2 = (input3) => (void 0 === input3.lossThreshold || "number" === typeof input3.lossThreshold) && (void 0 === input3.gainThreshold || "number" === typeof input3.gainThreshold) && (void 0 === input3.maxSegLength || "number" === typeof input3.maxSegLength) && (void 0 === input3.hyperMutator || "number" === typeof input3.hyperMutator) && (void 0 === input3.fivePrimeFlankSize || "number" === typeof input3.fivePrimeFlankSize) && (void 0 === input3.threePrimeFlankSize || "number" === typeof input3.threePrimeFlankSize);
|
|
26
26
|
const $io3 = (input3) => (void 0 === input3.fivePrimeFlankSize || "number" === typeof input3.fivePrimeFlankSize) && (void 0 === input3.threePrimeFlankSize || "number" === typeof input3.threePrimeFlankSize);
|
|
@@ -54,6 +54,10 @@ var validGRIN2Request = (input) => {
|
|
|
54
54
|
path: _path2 + ".pngDotRadius",
|
|
55
55
|
expected: "(number | undefined)",
|
|
56
56
|
value: input3.pngDotRadius
|
|
57
|
+
}), true, void 0 === input3.qValueThreshold || "number" === typeof input3.qValueThreshold || $report(_exceptionable2, {
|
|
58
|
+
path: _path2 + ".qValueThreshold",
|
|
59
|
+
expected: "(number | undefined)",
|
|
60
|
+
value: input3.qValueThreshold
|
|
57
61
|
}), true, void 0 === input3.snvindelOptions || ("object" === typeof input3.snvindelOptions && null !== input3.snvindelOptions && false === Array.isArray(input3.snvindelOptions) || $report(_exceptionable2, {
|
|
58
62
|
path: _path2 + ".snvindelOptions",
|
|
59
63
|
expected: "(__type | undefined)",
|
package/dist/grin2.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
termdbSingleSampleMutationPayload,
|
|
48
48
|
validTermdbSingleSampleMutationRequest,
|
|
49
49
|
validTermdbSingleSampleMutationResponse
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-5L4VF3ZL.js";
|
|
51
51
|
import {
|
|
52
52
|
termdbSingleCellDEgenesPayload,
|
|
53
53
|
validTermdbSingleCellDEgenesRequest,
|
|
@@ -217,7 +217,7 @@ import {
|
|
|
217
217
|
GRIN2Payload,
|
|
218
218
|
validGRIN2Request,
|
|
219
219
|
validGRIN2Response
|
|
220
|
-
} from "./chunk-
|
|
220
|
+
} from "./chunk-D37D752M.js";
|
|
221
221
|
import {
|
|
222
222
|
healthcheckPayload,
|
|
223
223
|
validHealthCheckRequest,
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
termdbSingleSampleMutationPayload,
|
|
3
3
|
validTermdbSingleSampleMutationRequest,
|
|
4
4
|
validTermdbSingleSampleMutationResponse
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5L4VF3ZL.js";
|
|
6
6
|
import "./chunk-YNHC5SXO.js";
|
|
7
7
|
export {
|
|
8
8
|
termdbSingleSampleMutationPayload,
|
package/package.json
CHANGED
package/src/dataset.ts
CHANGED
|
@@ -1380,24 +1380,23 @@ export type Termdb = {
|
|
|
1380
1380
|
* in order to minimize the ease of extracting identifiable information from aggregate data
|
|
1381
1381
|
* in server response
|
|
1382
1382
|
*
|
|
1383
|
-
* returns: {
|
|
1383
|
+
* returns: {minSize, canAccess}, see below
|
|
1384
1384
|
*/
|
|
1385
1385
|
checkAccessToSampleData?: (
|
|
1386
1386
|
/** req.query as processed through app middleware (pre-parsed, may have req.body props, __protectec__, etc) */
|
|
1387
1387
|
q: any,
|
|
1388
1388
|
data: {
|
|
1389
|
-
/** the number of samples with matching data from one or more queried terms */
|
|
1390
|
-
|
|
1391
|
-
/** option to specify sample names that
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
sampleNames?: string[]
|
|
1389
|
+
/** the number of samples or sites with matching data from one or more queried terms */
|
|
1390
|
+
count: number
|
|
1391
|
+
/** option to specify sample names or sites that are accessible to the current user,
|
|
1392
|
+
*/
|
|
1393
|
+
names?: string[]
|
|
1395
1394
|
}
|
|
1396
1395
|
) => {
|
|
1397
|
-
/** the required minimum
|
|
1396
|
+
/** the required minimum size for the current user to access certain data,
|
|
1398
1397
|
* may be dependent on login status or other context
|
|
1399
1398
|
* */
|
|
1400
|
-
|
|
1399
|
+
minSize: number
|
|
1401
1400
|
/** whether downstreadm backend code can proceed */
|
|
1402
1401
|
canAccess: boolean
|
|
1403
1402
|
}
|
|
@@ -1562,6 +1561,7 @@ keep this setting here for reason of:
|
|
|
1562
1561
|
}
|
|
1563
1562
|
//terms are shown in the dictionary based on term and user role.
|
|
1564
1563
|
isTermVisible?: (clientAuthResult: any, ids: string) => boolean
|
|
1564
|
+
hiddenIds?: string[]
|
|
1565
1565
|
getAdditionalFilter?: (__protected__: any, term: any) => Filter | undefined
|
|
1566
1566
|
}
|
|
1567
1567
|
|
package/src/routes/grin2.ts
CHANGED
|
@@ -29,6 +29,12 @@ export type GRIN2Request = {
|
|
|
29
29
|
/** Radius of the PNG rendered dots (default: 2) */
|
|
30
30
|
pngDotRadius?: number
|
|
31
31
|
|
|
32
|
+
/** Lesion type colors */
|
|
33
|
+
lesionTypeColors?: any
|
|
34
|
+
|
|
35
|
+
/** Threshold for q-values to be included as interactive dots */
|
|
36
|
+
qValueThreshold?: number
|
|
37
|
+
|
|
32
38
|
/** Filter from existing PP infrastructure */
|
|
33
39
|
filter?: any // Filter object passed to get_samples(filter, ds)
|
|
34
40
|
|
|
@@ -14,7 +14,7 @@ type ValidResponse = {
|
|
|
14
14
|
mlst: object[]
|
|
15
15
|
/** total number of items for each dt, useful to indicate snvindel limited to 10k for a hypermutator */
|
|
16
16
|
dt2total?: { dt: number; total: number }[]
|
|
17
|
-
/**
|
|
17
|
+
/** declares presence of alternative data for some dt, e.g. a gdc case has cnv results from both snp array and wgs
|
|
18
18
|
key: dt value
|
|
19
19
|
value: array of objects, each is a distinct set of data points for this dt
|
|
20
20
|
on ui, selecting an object will allow to show this data in disco plot
|
|
@@ -30,6 +30,10 @@ type ValidResponse = {
|
|
|
30
30
|
inuse?: boolean
|
|
31
31
|
/** required list of events from this data */
|
|
32
32
|
mlst: object[]
|
|
33
|
+
/** optional info about this source */
|
|
34
|
+
attrs?: {
|
|
35
|
+
[index: string]: string
|
|
36
|
+
}
|
|
33
37
|
}[]
|
|
34
38
|
}
|
|
35
39
|
}
|