@sjcrh/proteinpaint-types 2.132.0 → 2.132.1-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-45AF7AQH.js → chunk-7YC2GEEO.js} +23 -1
- package/dist/{chunk-3VVALC2P.js → chunk-QHN3YO6Q.js} +2 -2
- package/dist/gdc.grin2.js +1 -1
- package/dist/index.js +2 -2
- package/dist/termdb.categories.js +1 -1
- package/package.json +1 -1
- package/src/dataset.ts +24 -5
- package/src/routes/gdc.grin2.ts +10 -1
- package/src/routes/termdb.categories.ts +1 -0
- package/src/vocab.ts +1 -0
|
@@ -452,9 +452,10 @@ var validRunGRIN2Request = (input) => {
|
|
|
452
452
|
var validRunGRIN2Response = (input) => {
|
|
453
453
|
const errors = [];
|
|
454
454
|
const __is = (input2) => {
|
|
455
|
-
const $io0 = (input3) => ("success" === input3.status || "error" === input3.status) && (void 0 === input3.error || "string" === typeof input3.error) && (void 0 === input3.pngImg || "string" === typeof input3.pngImg) && true && true && (void 0 === input3.rustResult || "object" === typeof input3.rustResult && null !== input3.rustResult && $io1(input3.rustResult));
|
|
455
|
+
const $io0 = (input3) => ("success" === input3.status || "error" === input3.status) && (void 0 === input3.error || "string" === typeof input3.error) && (void 0 === input3.pngImg || "string" === typeof input3.pngImg) && true && true && (void 0 === input3.rustResult || "object" === typeof input3.rustResult && null !== input3.rustResult && $io1(input3.rustResult)) && (void 0 === input3.timing || "object" === typeof input3.timing && null !== input3.timing && $io4(input3.timing));
|
|
456
456
|
const $io1 = (input3) => Array.isArray(input3.successful_data) && input3.successful_data.every((elem) => Array.isArray(elem) && elem.every((elem2) => "string" === typeof elem2)) && (Array.isArray(input3.failed_files) && input3.failed_files.every((elem) => "object" === typeof elem && null !== elem && $io2(elem))) && ("object" === typeof input3.summary && null !== input3.summary && ("number" === typeof input3.summary.total_files && "number" === typeof input3.summary.successful_files && "number" === typeof input3.summary.failed_files));
|
|
457
457
|
const $io2 = (input3) => "string" === typeof input3.case_id && "string" === typeof input3.data_type && "string" === typeof input3.error_type && "string" === typeof input3.error_details && "number" === typeof input3.attempts_made;
|
|
458
|
+
const $io4 = (input3) => "number" === typeof input3.rustProcessingTime && "number" === typeof input3.grin2Time && "number" === typeof input3.totalTime;
|
|
458
459
|
return "object" === typeof input2 && null !== input2 && $io0(input2);
|
|
459
460
|
};
|
|
460
461
|
if (false === __is(input)) {
|
|
@@ -480,6 +481,14 @@ var validRunGRIN2Response = (input) => {
|
|
|
480
481
|
path: _path2 + ".rustResult",
|
|
481
482
|
expected: "(RustGRIN2Result | undefined)",
|
|
482
483
|
value: input3.rustResult
|
|
484
|
+
}), void 0 === input3.timing || ("object" === typeof input3.timing && null !== input3.timing || $report(_exceptionable2, {
|
|
485
|
+
path: _path2 + ".timing",
|
|
486
|
+
expected: "(__type | undefined)",
|
|
487
|
+
value: input3.timing
|
|
488
|
+
})) && $vo4(input3.timing, _path2 + ".timing", _exceptionable2) || $report(_exceptionable2, {
|
|
489
|
+
path: _path2 + ".timing",
|
|
490
|
+
expected: "(__type | undefined)",
|
|
491
|
+
value: input3.timing
|
|
483
492
|
})].every((flag) => flag);
|
|
484
493
|
const $vo1 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.successful_data) || $report(_exceptionable2, {
|
|
485
494
|
path: _path2 + ".successful_data",
|
|
@@ -560,6 +569,19 @@ var validRunGRIN2Response = (input) => {
|
|
|
560
569
|
expected: "number",
|
|
561
570
|
value: input3.failed_files
|
|
562
571
|
})].every((flag) => flag);
|
|
572
|
+
const $vo4 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.rustProcessingTime || $report(_exceptionable2, {
|
|
573
|
+
path: _path2 + ".rustProcessingTime",
|
|
574
|
+
expected: "number",
|
|
575
|
+
value: input3.rustProcessingTime
|
|
576
|
+
}), "number" === typeof input3.grin2Time || $report(_exceptionable2, {
|
|
577
|
+
path: _path2 + ".grin2Time",
|
|
578
|
+
expected: "number",
|
|
579
|
+
value: input3.grin2Time
|
|
580
|
+
}), "number" === typeof input3.totalTime || $report(_exceptionable2, {
|
|
581
|
+
path: _path2 + ".totalTime",
|
|
582
|
+
expected: "number",
|
|
583
|
+
value: input3.totalTime
|
|
584
|
+
})].every((flag) => flag);
|
|
563
585
|
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
564
586
|
path: _path + "",
|
|
565
587
|
expected: "RunGRIN2Response",
|
|
@@ -58,7 +58,7 @@ var validCategoriesRequest = (input) => {
|
|
|
58
58
|
const errors = [];
|
|
59
59
|
const __is = (input2) => {
|
|
60
60
|
const $join = import_typia.createValidate.join;
|
|
61
|
-
const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && "string" === typeof input3.embedder && ("object" === typeof input3.tw && null !== input3.tw && $iu5(input3.tw)) && (void 0 === input3.filter || "object" === typeof input3.filter && null !== input3.filter && $io12(input3.filter)) && (void 0 === input3.currentGeneNames || Array.isArray(input3.currentGeneNames) && input3.currentGeneNames.every((elem) => "string" === typeof elem)) && true;
|
|
61
|
+
const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && "string" === typeof input3.embedder && ("object" === typeof input3.tw && null !== input3.tw && $iu5(input3.tw)) && (void 0 === input3.filter || "object" === typeof input3.filter && null !== input3.filter && $io12(input3.filter)) && true && (void 0 === input3.currentGeneNames || Array.isArray(input3.currentGeneNames) && input3.currentGeneNames.every((elem) => "string" === typeof elem)) && true;
|
|
62
62
|
const $io1 = (input3) => (void 0 === input3.id || "string" === typeof input3.id) && (void 0 === input3.$id || "string" === typeof input3.$id) && (void 0 === input3.isAtomic || true === input3.isAtomic) && true && (void 0 === input3.settings || "object" === typeof input3.settings && null !== input3.settings && false === Array.isArray(input3.settings) && $io2(input3.settings)) && true && (void 0 === input3.minNumSamples || "number" === typeof input3.minNumSamples) && true && ("CatTWValues" === input3.type || "CatTWPredefinedGS" === input3.type || "CatTWCustomGS" === input3.type) && ("object" === typeof input3.q && null !== input3.q && false === Array.isArray(input3.q) && $iu6(input3.q)) && ("object" === typeof input3.term && null !== input3.term && $io15(input3.term));
|
|
63
63
|
const $io2 = (input3) => Object.keys(input3).every((key) => {
|
|
64
64
|
const value = input3[key];
|
|
@@ -356,7 +356,7 @@ var validCategoriesRequest = (input) => {
|
|
|
356
356
|
path: _path2 + ".filter",
|
|
357
357
|
expected: "(Filter | undefined)",
|
|
358
358
|
value: input3.filter
|
|
359
|
-
}), void 0 === input3.currentGeneNames || (Array.isArray(input3.currentGeneNames) || $report(_exceptionable2, {
|
|
359
|
+
}), true, void 0 === input3.currentGeneNames || (Array.isArray(input3.currentGeneNames) || $report(_exceptionable2, {
|
|
360
360
|
path: _path2 + ".currentGeneNames",
|
|
361
361
|
expected: "(Array<string> | undefined)",
|
|
362
362
|
value: input3.currentGeneNames
|
package/dist/gdc.grin2.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -112,7 +112,7 @@ import {
|
|
|
112
112
|
termdbCategoriesPayload,
|
|
113
113
|
validCategoriesRequest,
|
|
114
114
|
validCategoriesResponse
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-QHN3YO6Q.js";
|
|
116
116
|
import {
|
|
117
117
|
termdbClusterPayload,
|
|
118
118
|
validTermdbClusterRequest,
|
|
@@ -175,7 +175,7 @@ import {
|
|
|
175
175
|
validGdcGRIN2listResponse,
|
|
176
176
|
validRunGRIN2Request,
|
|
177
177
|
validRunGRIN2Response
|
|
178
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-7YC2GEEO.js";
|
|
179
179
|
import {
|
|
180
180
|
gdcMafPayload,
|
|
181
181
|
validGdcMafRequest,
|
package/package.json
CHANGED
package/src/dataset.ts
CHANGED
|
@@ -910,6 +910,13 @@ type Mds3Queries = {
|
|
|
910
910
|
snvindel?: SnvIndelQuery
|
|
911
911
|
svfusion?: SvFusion
|
|
912
912
|
cnv?: CnvSegmentQuery
|
|
913
|
+
/** gene-level cnv, only available on gdc; query by gene symbol, ds must define getter
|
|
914
|
+
*/
|
|
915
|
+
geneCnv?: {
|
|
916
|
+
bygene: {
|
|
917
|
+
get: (q: any) => any
|
|
918
|
+
}
|
|
919
|
+
}
|
|
913
920
|
trackLst?: TrackLst
|
|
914
921
|
ld?: LdQuery
|
|
915
922
|
defaultCoord?: string
|
|
@@ -928,11 +935,6 @@ type Mds3Queries = {
|
|
|
928
935
|
file: string
|
|
929
936
|
}
|
|
930
937
|
singleCell?: SingleCellQuery
|
|
931
|
-
geneCnv?: {
|
|
932
|
-
bygene?: {
|
|
933
|
-
gdcapi: true
|
|
934
|
-
}
|
|
935
|
-
}
|
|
936
938
|
singleSampleGenomeQuantification?: SingleSampleGenomeQuantification
|
|
937
939
|
singleSampleGbtk?: SingleSampleGbtk
|
|
938
940
|
/** depreciated. replaced by WSImages */
|
|
@@ -2034,6 +2036,23 @@ export type Mds3 = BaseMds & {
|
|
|
2034
2036
|
validate_filter0?: (f: any) => void
|
|
2035
2037
|
ssm2canonicalisoform?: GdcApi
|
|
2036
2038
|
variant2samples?: Variant2Samples
|
|
2039
|
+
/** disables switching to genomic mode for the protein view mds3 tk of this ds
|
|
2040
|
+
works by preventing block gmmode menu from showing "genomic" option
|
|
2041
|
+
is only passed via mds3 adhoc ds copy, but not termdbConfig
|
|
2042
|
+
for lack of a better place to put this attribute, as it's not appropriate to put in queries.snvindel{}
|
|
2043
|
+
as snvindel is optional so even a cnv-only ds can disable genomic mode
|
|
2044
|
+
*/
|
|
2045
|
+
noGenomicMode4lollipopTk?: true
|
|
2046
|
+
/** if ds.queries{} exists, server launch adds this convenient getter to wrap multiple queries data types
|
|
2047
|
+
*/
|
|
2048
|
+
mayGetGeneVariantData?: (f: any) => void
|
|
2049
|
+
/** optional key-value pairs to pass to genomic queries getter when called in mayGetGeneVariantData()
|
|
2050
|
+
- only used in mayGetGeneVariantData! not in mds3.load.js
|
|
2051
|
+
- for now only passed to snvindel.*.get and not yet other data types; add when needed
|
|
2052
|
+
the param contents will be assessed by ds specific getter
|
|
2053
|
+
this is serverside only, not passed to termdbConfig
|
|
2054
|
+
*/
|
|
2055
|
+
mayGetGeneVariantDataParam?: { [key: string]: any }
|
|
2037
2056
|
// !!! TODO: improve these type definitions below !!!
|
|
2038
2057
|
getHostHeaders?: (q?: any) => any
|
|
2039
2058
|
serverconfigFeatures?: any
|
package/src/routes/gdc.grin2.ts
CHANGED
|
@@ -160,8 +160,17 @@ export type RunGRIN2Response = {
|
|
|
160
160
|
download?: any
|
|
161
161
|
/** Table of top genes indentified by analysis */
|
|
162
162
|
topGeneTable?: any
|
|
163
|
-
/** Data from Rust for making the
|
|
163
|
+
/** Data from Rust for making the analysis summary div */
|
|
164
164
|
rustResult?: RustGRIN2Result
|
|
165
|
+
/** Timing info from nodejs */
|
|
166
|
+
timing?: {
|
|
167
|
+
/** Time taken to run Rust processing */
|
|
168
|
+
rustProcessingTime: number
|
|
169
|
+
/** Time taken to run GRIN2 processing */
|
|
170
|
+
grin2Time: number
|
|
171
|
+
/** Total time taken for the entire run */
|
|
172
|
+
totalTime: number
|
|
173
|
+
}
|
|
165
174
|
}
|
|
166
175
|
/**
|
|
167
176
|
* Route payload definitions for type checking
|
|
@@ -9,6 +9,7 @@ export type CategoriesRequest = {
|
|
|
9
9
|
/** termwrapper object */
|
|
10
10
|
tw: TermWrapper
|
|
11
11
|
filter?: Filter
|
|
12
|
+
filter0?: any
|
|
12
13
|
/** quick fix only for gdc */
|
|
13
14
|
currentGeneNames?: string[]
|
|
14
15
|
/** optional property added by mds3 tk, to limit to cases mutated in this region */
|