@sjcrh/proteinpaint-types 2.143.0 → 2.145.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-N7C4SRFX.js → chunk-2WSENLMK.js} +17 -1
- package/dist/{chunk-TCEHHLIZ.js → chunk-D6IBJJ63.js} +11 -7
- package/dist/gdc.grin2.js +1 -1
- package/dist/grin2.js +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/src/routes/gdc.grin2.ts +7 -0
- package/src/routes/grin2.ts +5 -2
- package/src/terms/geneVariant.ts +1 -10
- package/src/terms/samplelst.ts +0 -7
|
@@ -325,7 +325,7 @@ var validRunGRIN2Request = (input) => {
|
|
|
325
325
|
const errors = [];
|
|
326
326
|
const __is = (input2) => {
|
|
327
327
|
const $join = import_typia.createValidate.join;
|
|
328
|
-
const $io0 = (input3) => "object" === typeof input3.caseFiles && null !== input3.caseFiles && false === Array.isArray(input3.caseFiles) && $io1(input3.caseFiles) && (void 0 === input3.mafOptions || "object" === typeof input3.mafOptions && null !== input3.mafOptions && false === Array.isArray(input3.mafOptions) && $io3(input3.mafOptions)) && (void 0 === input3.cnvOptions || "object" === typeof input3.cnvOptions && null !== input3.cnvOptions && false === Array.isArray(input3.cnvOptions) && $io4(input3.cnvOptions));
|
|
328
|
+
const $io0 = (input3) => "object" === typeof input3.caseFiles && null !== input3.caseFiles && false === Array.isArray(input3.caseFiles) && $io1(input3.caseFiles) && (void 0 === input3.mafOptions || "object" === typeof input3.mafOptions && null !== input3.mafOptions && false === Array.isArray(input3.mafOptions) && $io3(input3.mafOptions)) && (void 0 === input3.cnvOptions || "object" === typeof input3.cnvOptions && null !== input3.cnvOptions && false === Array.isArray(input3.cnvOptions) && $io4(input3.cnvOptions)) && (void 0 === input3.devicePixelRatio || "number" === typeof input3.devicePixelRatio) && (void 0 === input3.plot_width || "number" === typeof input3.plot_width) && (void 0 === input3.plot_height || "number" === typeof input3.plot_height) && (void 0 === input3.pngDotRadius || "number" === typeof input3.pngDotRadius);
|
|
329
329
|
const $io1 = (input3) => Object.keys(input3).every((key) => {
|
|
330
330
|
const value = input3[key];
|
|
331
331
|
if (void 0 === value)
|
|
@@ -367,6 +367,22 @@ var validRunGRIN2Request = (input) => {
|
|
|
367
367
|
path: _path2 + ".cnvOptions",
|
|
368
368
|
expected: "(__type.o3 | undefined)",
|
|
369
369
|
value: input3.cnvOptions
|
|
370
|
+
}), void 0 === input3.devicePixelRatio || "number" === typeof input3.devicePixelRatio || $report(_exceptionable2, {
|
|
371
|
+
path: _path2 + ".devicePixelRatio",
|
|
372
|
+
expected: "(number | undefined)",
|
|
373
|
+
value: input3.devicePixelRatio
|
|
374
|
+
}), void 0 === input3.plot_width || "number" === typeof input3.plot_width || $report(_exceptionable2, {
|
|
375
|
+
path: _path2 + ".plot_width",
|
|
376
|
+
expected: "(number | undefined)",
|
|
377
|
+
value: input3.plot_width
|
|
378
|
+
}), void 0 === input3.plot_height || "number" === typeof input3.plot_height || $report(_exceptionable2, {
|
|
379
|
+
path: _path2 + ".plot_height",
|
|
380
|
+
expected: "(number | undefined)",
|
|
381
|
+
value: input3.plot_height
|
|
382
|
+
}), void 0 === input3.pngDotRadius || "number" === typeof input3.pngDotRadius || $report(_exceptionable2, {
|
|
383
|
+
path: _path2 + ".pngDotRadius",
|
|
384
|
+
expected: "(number | undefined)",
|
|
385
|
+
value: input3.pngDotRadius
|
|
370
386
|
})].every((flag) => flag);
|
|
371
387
|
const $vo1 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
|
|
372
388
|
const value = input3[key];
|
|
@@ -21,7 +21,7 @@ var validGRIN2Request = (input) => {
|
|
|
21
21
|
const errors = [];
|
|
22
22
|
const __is = (input2) => {
|
|
23
23
|
const $join = import_typia.createValidate.join;
|
|
24
|
-
const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && (void 0 === input3.devicePixelRatio || "number" === typeof input3.devicePixelRatio) && (void 0 === input3.
|
|
24
|
+
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));
|
|
25
25
|
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);
|
|
26
26
|
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);
|
|
27
27
|
const $io3 = (input3) => Object.keys(input3).every((key) => {
|
|
@@ -50,14 +50,18 @@ var validGRIN2Request = (input) => {
|
|
|
50
50
|
path: _path2 + ".devicePixelRatio",
|
|
51
51
|
expected: "(number | undefined)",
|
|
52
52
|
value: input3.devicePixelRatio
|
|
53
|
-
}), void 0 === input3.
|
|
54
|
-
path: _path2 + ".
|
|
53
|
+
}), void 0 === input3.width || "number" === typeof input3.width || $report(_exceptionable2, {
|
|
54
|
+
path: _path2 + ".width",
|
|
55
55
|
expected: "(number | undefined)",
|
|
56
|
-
value: input3.
|
|
57
|
-
}), void 0 === input3.
|
|
58
|
-
path: _path2 + ".
|
|
56
|
+
value: input3.width
|
|
57
|
+
}), void 0 === input3.height || "number" === typeof input3.height || $report(_exceptionable2, {
|
|
58
|
+
path: _path2 + ".height",
|
|
59
59
|
expected: "(number | undefined)",
|
|
60
|
-
value: input3.
|
|
60
|
+
value: input3.height
|
|
61
|
+
}), void 0 === input3.pngDotRadius || "number" === typeof input3.pngDotRadius || $report(_exceptionable2, {
|
|
62
|
+
path: _path2 + ".pngDotRadius",
|
|
63
|
+
expected: "(number | undefined)",
|
|
64
|
+
value: input3.pngDotRadius
|
|
61
65
|
}), true, void 0 === input3.snvindelOptions || ("object" === typeof input3.snvindelOptions && null !== input3.snvindelOptions && false === Array.isArray(input3.snvindelOptions) || $report(_exceptionable2, {
|
|
62
66
|
path: _path2 + ".snvindelOptions",
|
|
63
67
|
expected: "(__type | undefined)",
|
package/dist/gdc.grin2.js
CHANGED
package/dist/grin2.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -177,7 +177,7 @@ import {
|
|
|
177
177
|
GRIN2Payload,
|
|
178
178
|
validGRIN2Request,
|
|
179
179
|
validGRIN2Response
|
|
180
|
-
} from "./chunk-
|
|
180
|
+
} from "./chunk-D6IBJJ63.js";
|
|
181
181
|
import {
|
|
182
182
|
healthcheckPayload,
|
|
183
183
|
validHealthCheckRequest,
|
|
@@ -230,7 +230,7 @@ import {
|
|
|
230
230
|
validGdcGRIN2listResponse,
|
|
231
231
|
validRunGRIN2Request,
|
|
232
232
|
validRunGRIN2Response
|
|
233
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-2WSENLMK.js";
|
|
234
234
|
import {
|
|
235
235
|
gdcMafPayload,
|
|
236
236
|
validGdcMafRequest,
|
package/package.json
CHANGED
package/src/routes/gdc.grin2.ts
CHANGED
|
@@ -120,6 +120,13 @@ export type RunGRIN2Request = {
|
|
|
120
120
|
/** Hypermutator max cut off for CNVs per case */
|
|
121
121
|
hyperMutator?: number // Default: 500
|
|
122
122
|
}
|
|
123
|
+
/** Device pixel ratio for rendering */
|
|
124
|
+
devicePixelRatio?: number // 2
|
|
125
|
+
/** Plot dimensions */
|
|
126
|
+
plot_width?: number // 1000
|
|
127
|
+
plot_height?: number // 400
|
|
128
|
+
/** Radius of the PNG rendered dots */
|
|
129
|
+
pngDotRadius?: number // 2
|
|
123
130
|
}
|
|
124
131
|
|
|
125
132
|
/** Error entry from failed file downloads */
|
package/src/routes/grin2.ts
CHANGED
|
@@ -21,10 +21,13 @@ export type GRIN2Request = {
|
|
|
21
21
|
devicePixelRatio?: number
|
|
22
22
|
|
|
23
23
|
/** Desired plot width in pixels (default: 1000) */
|
|
24
|
-
|
|
24
|
+
width?: number
|
|
25
25
|
|
|
26
26
|
/** Desired plot height in pixels (default: 400) */
|
|
27
|
-
|
|
27
|
+
height?: number
|
|
28
|
+
|
|
29
|
+
/** Radius of the PNG rendered dots (default: 2) */
|
|
30
|
+
pngDotRadius?: number
|
|
28
31
|
|
|
29
32
|
/** Filter from existing PP infrastructure */
|
|
30
33
|
filter?: any // Filter object passed to get_samples(filter, ds)
|
package/src/terms/geneVariant.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { MinBaseQ, BaseTerm, TermGroupSetting, BaseTW, TermValues, BaseGroupSet
|
|
2
|
-
import type { TermSettingInstance } from '../termsetting.ts'
|
|
1
|
+
import type { MinBaseQ, BaseTerm, TermGroupSetting, BaseTW, TermValues, BaseGroupSet } from '../index.ts'
|
|
3
2
|
|
|
4
3
|
// q types
|
|
5
4
|
export type GvBaseQ = MinBaseQ & {
|
|
@@ -101,14 +100,6 @@ export type GvCustomGsTW = BaseTW & {
|
|
|
101
100
|
export type RawGvTW = RawGvValuesTW | RawGvPredefinedGsTW | RawGvCustomGsTW
|
|
102
101
|
export type GvTW = GvValuesTW | GvPredefinedGsTW | GvCustomGsTW
|
|
103
102
|
|
|
104
|
-
// termsetting types
|
|
105
|
-
export type GeneVariantTermSettingInstance = TermSettingInstance & {
|
|
106
|
-
q: GvQ
|
|
107
|
-
term: GvTerm
|
|
108
|
-
category2samplecount: any
|
|
109
|
-
groups: FilterGroup[] // will store groups created in edit UI
|
|
110
|
-
}
|
|
111
|
-
|
|
112
103
|
// miscellaneous types
|
|
113
104
|
export type DtTerm = {
|
|
114
105
|
id: string
|
package/src/terms/samplelst.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { BaseTerm, MinBaseQ } from '../index.ts'
|
|
2
2
|
import type { TermWrapper } from './tw.ts'
|
|
3
|
-
import type { TermSettingInstance } from '../termsetting.ts'
|
|
4
3
|
|
|
5
4
|
/*
|
|
6
5
|
--------EXPORTED--------
|
|
@@ -33,9 +32,3 @@ export type SampleLstTW = TermWrapper & {
|
|
|
33
32
|
q: SampleLstQ
|
|
34
33
|
term: SampleLstTerm
|
|
35
34
|
}
|
|
36
|
-
|
|
37
|
-
//temporary, will eventually change to SampleLstHandler
|
|
38
|
-
export type SampleLstTermSettingInstance = TermSettingInstance & {
|
|
39
|
-
q: SampleLstQ
|
|
40
|
-
term: SampleLstTerm
|
|
41
|
-
}
|