@sjcrh/proteinpaint-types 2.170.1 → 2.171.0-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-A5Z4YYMF.js → chunk-JV2F2JPK.js} +2 -2
- package/dist/{chunk-YCURJJSC.js → chunk-Y2TSHHFF.js} +18 -2
- package/dist/grin2.js +1 -1
- package/dist/index.js +2 -2
- package/dist/termdb.boxplot.js +1 -1
- package/package.json +1 -1
- package/src/routes/grin2.ts +11 -1
- package/src/routes/termdb.boxplot.ts +0 -2
|
@@ -4496,7 +4496,7 @@ var validBoxPlotResponse = (input) => {
|
|
|
4496
4496
|
return true;
|
|
4497
4497
|
});
|
|
4498
4498
|
const $io3 = (input3) => "string" === typeof input3.chartId && (Array.isArray(input3.plots) && input3.plots.every((elem) => "object" === typeof elem && null !== elem && $io4(elem))) && "number" === typeof input3.sampleCount && (void 0 === input3.wilcoxon || Array.isArray(input3.wilcoxon) && input3.wilcoxon.every((elem) => Array.isArray(elem) && (elem.length === 3 && ("object" === typeof elem[0] && null !== elem[0] && $io9(elem[0])) && ("object" === typeof elem[1] && null !== elem[1] && $io10(elem[1])) && ("object" === typeof elem[2] && null !== elem[2] && $io11(elem[2])))));
|
|
4499
|
-
const $io4 = (input3) => "object" === typeof input3.boxplot && null !== input3.boxplot && $io5(input3.boxplot) && (void 0 === input3.color || "string" === typeof input3.color) && ("object" === typeof input3.descrStats && null !== input3.descrStats && false === Array.isArray(input3.descrStats) && $io7(input3.descrStats)) && (void 0 === input3.isHidden || "boolean" === typeof input3.isHidden) && "string" === typeof input3.key &&
|
|
4499
|
+
const $io4 = (input3) => "object" === typeof input3.boxplot && null !== input3.boxplot && $io5(input3.boxplot) && (void 0 === input3.color || "string" === typeof input3.color) && ("object" === typeof input3.descrStats && null !== input3.descrStats && false === Array.isArray(input3.descrStats) && $io7(input3.descrStats)) && (void 0 === input3.isHidden || "boolean" === typeof input3.isHidden) && "string" === typeof input3.key && (void 0 === input3.seriesId || "string" === typeof input3.seriesId);
|
|
4500
4500
|
const $io5 = (input3) => (void 0 === input3.w1 || "number" === typeof input3.w1) && (void 0 === input3.w2 || "number" === typeof input3.w2) && "number" === typeof input3.p05 && "number" === typeof input3.p25 && "number" === typeof input3.p50 && "number" === typeof input3.p75 && "number" === typeof input3.p95 && "number" === typeof input3.iqr && (Array.isArray(input3.out) && input3.out.every((elem) => "object" === typeof elem && null !== elem && $io6(elem))) && "string" === typeof input3.label;
|
|
4501
4501
|
const $io6 = (input3) => "number" === typeof input3.value;
|
|
4502
4502
|
const $io7 = (input3) => Object.keys(input3).every((key) => {
|
|
@@ -4691,7 +4691,7 @@ var validBoxPlotResponse = (input) => {
|
|
|
4691
4691
|
path: _path2 + ".key",
|
|
4692
4692
|
expected: "string",
|
|
4693
4693
|
value: input3.key
|
|
4694
|
-
}),
|
|
4694
|
+
}), void 0 === input3.seriesId || "string" === typeof input3.seriesId || $report(_exceptionable2, {
|
|
4695
4695
|
path: _path2 + ".seriesId",
|
|
4696
4696
|
expected: "(string | undefined)",
|
|
4697
4697
|
value: input3.seriesId
|
|
@@ -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.qValueThreshold || "number" === typeof input3.qValueThreshold) && (void 0 === input3.logCutoff || "number" === typeof input3.logCutoff) && 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) && (void 0 === input3.logCutoff || "number" === typeof input3.logCutoff) && "number" === typeof input3.maxCappedPoints && "number" === typeof input3.hardCap && "number" === typeof input3.binSize && 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);
|
|
@@ -62,6 +62,18 @@ var validGRIN2Request = (input) => {
|
|
|
62
62
|
path: _path2 + ".logCutoff",
|
|
63
63
|
expected: "(number | undefined)",
|
|
64
64
|
value: input3.logCutoff
|
|
65
|
+
}), "number" === typeof input3.maxCappedPoints || $report(_exceptionable2, {
|
|
66
|
+
path: _path2 + ".maxCappedPoints",
|
|
67
|
+
expected: "number",
|
|
68
|
+
value: input3.maxCappedPoints
|
|
69
|
+
}), "number" === typeof input3.hardCap || $report(_exceptionable2, {
|
|
70
|
+
path: _path2 + ".hardCap",
|
|
71
|
+
expected: "number",
|
|
72
|
+
value: input3.hardCap
|
|
73
|
+
}), "number" === typeof input3.binSize || $report(_exceptionable2, {
|
|
74
|
+
path: _path2 + ".binSize",
|
|
75
|
+
expected: "number",
|
|
76
|
+
value: input3.binSize
|
|
65
77
|
}), true, void 0 === input3.snvindelOptions || ("object" === typeof input3.snvindelOptions && null !== input3.snvindelOptions && false === Array.isArray(input3.snvindelOptions) || $report(_exceptionable2, {
|
|
66
78
|
path: _path2 + ".snvindelOptions",
|
|
67
79
|
expected: "(__type | undefined)",
|
|
@@ -198,7 +210,7 @@ var validGRIN2Response = (input) => {
|
|
|
198
210
|
const __is = (input2) => {
|
|
199
211
|
const $join = import_typia.createValidate.join;
|
|
200
212
|
const $io0 = (input3) => ("error" === input3.status || "success" === input3.status) && (void 0 === input3.error || "string" === typeof input3.error) && (void 0 === input3.pngImg || "string" === typeof input3.pngImg) && (void 0 === input3.plotData || "object" === typeof input3.plotData && null !== input3.plotData && $io1(input3.plotData)) && true && (void 0 === input3.topGeneTable || "object" === typeof input3.topGeneTable && null !== input3.topGeneTable && $io5(input3.topGeneTable)) && (void 0 === input3.totalGenes || "number" === typeof input3.totalGenes) && (void 0 === input3.showingTop || "number" === typeof input3.showingTop) && (void 0 === input3.timing || "object" === typeof input3.timing && null !== input3.timing && $io8(input3.timing)) && (void 0 === input3.processingSummary || "object" === typeof input3.processingSummary && null !== input3.processingSummary && false === Array.isArray(input3.processingSummary) && $io9(input3.processingSummary)) && (void 0 === input3.cacheFileName || "string" === typeof input3.cacheFileName);
|
|
201
|
-
const $io1 = (input3) => Array.isArray(input3.points) && input3.points.every((elem) => "object" === typeof elem && null !== elem && $io2(elem)) && ("object" === typeof input3.chrom_data && null !== input3.chrom_data && false === Array.isArray(input3.chrom_data) && $io3(input3.chrom_data)) && "number" === typeof input3.total_genome_length;
|
|
213
|
+
const $io1 = (input3) => Array.isArray(input3.points) && input3.points.every((elem) => "object" === typeof elem && null !== elem && $io2(elem)) && ("object" === typeof input3.chrom_data && null !== input3.chrom_data && false === Array.isArray(input3.chrom_data) && $io3(input3.chrom_data)) && "number" === typeof input3.total_genome_length && "boolean" === typeof input3.has_capped_points;
|
|
202
214
|
const $io2 = (input3) => "number" === typeof input3.x && "number" === typeof input3.y && "string" === typeof input3.color && "string" === typeof input3.type && "string" === typeof input3.gene && "string" === typeof input3.chrom && "number" === typeof input3.start && "number" === typeof input3.end && "number" === typeof input3.pos && "number" === typeof input3.nsubj;
|
|
203
215
|
const $io3 = (input3) => Object.keys(input3).every((key) => {
|
|
204
216
|
const value = input3[key];
|
|
@@ -314,6 +326,10 @@ var validGRIN2Response = (input) => {
|
|
|
314
326
|
path: _path2 + ".total_genome_length",
|
|
315
327
|
expected: "number",
|
|
316
328
|
value: input3.total_genome_length
|
|
329
|
+
}), "boolean" === typeof input3.has_capped_points || $report(_exceptionable2, {
|
|
330
|
+
path: _path2 + ".has_capped_points",
|
|
331
|
+
expected: "boolean",
|
|
332
|
+
value: input3.has_capped_points
|
|
317
333
|
})].every((flag) => flag);
|
|
318
334
|
const $vo2 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.x || $report(_exceptionable2, {
|
|
319
335
|
path: _path2 + ".x",
|
package/dist/grin2.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -132,7 +132,7 @@ import {
|
|
|
132
132
|
boxplotPayload,
|
|
133
133
|
validBoxPlotRequest,
|
|
134
134
|
validBoxPlotResponse
|
|
135
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-JV2F2JPK.js";
|
|
136
136
|
import {
|
|
137
137
|
termdbCategoriesPayload,
|
|
138
138
|
validCategoriesRequest,
|
|
@@ -217,7 +217,7 @@ import {
|
|
|
217
217
|
GRIN2Payload,
|
|
218
218
|
validGRIN2Request,
|
|
219
219
|
validGRIN2Response
|
|
220
|
-
} from "./chunk-
|
|
220
|
+
} from "./chunk-Y2TSHHFF.js";
|
|
221
221
|
import {
|
|
222
222
|
healthcheckPayload,
|
|
223
223
|
validHealthCheckRequest,
|
package/dist/termdb.boxplot.js
CHANGED
package/package.json
CHANGED
package/src/routes/grin2.ts
CHANGED
|
@@ -32,7 +32,7 @@ export type GRIN2Request = {
|
|
|
32
32
|
/** Lesion type colors */
|
|
33
33
|
lesionTypeColors?: any
|
|
34
34
|
|
|
35
|
-
/** Threshold for q-values to be included as interactive dots */
|
|
35
|
+
/** Threshold for q-values to be included as interactive dots, have significance indicators in the table and tooltips */
|
|
36
36
|
qValueThreshold?: number
|
|
37
37
|
|
|
38
38
|
/** Log cutoff for Manhattan plot rendering before we scale the y-axis (default: 40).
|
|
@@ -40,6 +40,15 @@ export type GRIN2Request = {
|
|
|
40
40
|
* Sending it with request for consistency. In future we will allow user to set scale value or disable scaling if they wish */
|
|
41
41
|
logCutoff?: number
|
|
42
42
|
|
|
43
|
+
/** Maximum number of points to cap the dynamic y-axis in Manhattan plots */
|
|
44
|
+
maxCappedPoints: number
|
|
45
|
+
|
|
46
|
+
/** Absolute maximum cap for the y-axis in Manhattan plots regardless of its data distribution */
|
|
47
|
+
hardCap: number
|
|
48
|
+
|
|
49
|
+
/** Bin size for Manhattan plot histogram bin size. Used in the calculation of dynamic y-axis capping process (default: 10) */
|
|
50
|
+
binSize: number
|
|
51
|
+
|
|
43
52
|
/** Filter from existing PP infrastructure */
|
|
44
53
|
filter?: any // Filter object passed to get_samples(filter, ds)
|
|
45
54
|
|
|
@@ -117,6 +126,7 @@ interface grin2PlotData {
|
|
|
117
126
|
}
|
|
118
127
|
>
|
|
119
128
|
total_genome_length: number // Gives us the full length of the genome so we can easily append x buffer space when building d3 x-axis
|
|
129
|
+
has_capped_points: boolean // Whether we have capped the y-axis due to q-values exceeding the cap
|
|
120
130
|
}
|
|
121
131
|
|
|
122
132
|
/**
|
|
@@ -69,8 +69,6 @@ export type BoxPlotEntry = {
|
|
|
69
69
|
* whether or not the plot is hidden by default */
|
|
70
70
|
isHidden?: boolean
|
|
71
71
|
key: string
|
|
72
|
-
/** Formatted bins for numeric terms */
|
|
73
|
-
overlayTwBins?: any
|
|
74
72
|
/** Usually the same as key, but determined by the tw */
|
|
75
73
|
seriesId?: string
|
|
76
74
|
}
|