@sjcrh/proteinpaint-types 2.141.0 → 2.143.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/aiProjectAdmin.js +2 -2
- package/dist/aiProjectSelectedWSImages.js +11 -0
- package/dist/brainImaging.js +2 -2
- package/dist/brainImagingSamples.js +2 -2
- package/dist/burden.js +2 -2
- package/dist/{chunk-W6NLM363.js → chunk-2744ACBX.js} +1 -1
- package/dist/{chunk-F5XGJIUS.js → chunk-2BCLGYAG.js} +1 -1
- package/dist/{chunk-L5DFYFWX.js → chunk-2C4X5B6N.js} +1 -1
- package/dist/{chunk-KEJROUTM.js → chunk-4DNCZQOB.js} +271 -265
- package/dist/{chunk-WCWYMCZD.js → chunk-4MLQS6N7.js} +235 -127
- package/dist/{chunk-I7FTK55B.js → chunk-4VEXL32Q.js} +560 -410
- package/dist/{chunk-K5POIB3P.js → chunk-4ZMQ5CTL.js} +1 -1
- package/dist/{chunk-QWAPDNYB.js → chunk-5KADNZH2.js} +578 -428
- package/dist/{chunk-I2KWGMNM.js → chunk-62XTWOVJ.js} +1 -1
- package/dist/{chunk-FXCCZCTN.js → chunk-6GKG55BT.js} +1 -1
- package/dist/{chunk-EOBFYFLQ.js → chunk-6SOULHNE.js} +692 -460
- package/dist/{chunk-77RH7U6G.js → chunk-74B7B2CV.js} +505 -391
- package/dist/{chunk-S6OBK4RE.js → chunk-7ICZFAGK.js} +252 -140
- package/dist/{chunk-J4QAF4EU.js → chunk-7MUISZHS.js} +1 -1
- package/dist/{chunk-SMS3Y2XZ.js → chunk-BCBSHTHS.js} +1 -1
- package/dist/{chunk-56JQGGZJ.js → chunk-C246BWQE.js} +812 -568
- package/dist/{chunk-3C26VWPU.js → chunk-CP26DR4V.js} +1 -1
- package/dist/{chunk-ERSTC6X6.js → chunk-CQXBQY2H.js} +1 -1
- package/dist/{chunk-CQDDRHRY.js → chunk-CT6IBFVP.js} +9 -4
- package/dist/{chunk-ZVTZJRGS.js → chunk-D7AKQKDG.js} +1 -1
- package/dist/{chunk-YGX6BZZY.js → chunk-EIJT53QB.js} +1 -1
- package/dist/{chunk-VKBTOKI2.js → chunk-EOKM345J.js} +1 -1
- package/dist/{chunk-XEQWKMZN.js → chunk-EYKGJDKU.js} +1 -1
- package/dist/{chunk-EH7VAE5S.js → chunk-FMC4G5BP.js} +1 -1
- package/dist/{chunk-KRYTJ2SL.js → chunk-FTPYJPUB.js} +1 -1
- package/dist/{chunk-VMQUAU5V.js → chunk-FXXE4S7M.js} +574 -424
- package/dist/{chunk-UYBVE3DL.js → chunk-GCAZSDCW.js} +574 -424
- package/dist/{chunk-5S3UWYSK.js → chunk-GTS2G4R4.js} +1 -1
- package/dist/{chunk-KFVYRW7D.js → chunk-HQV2A7JV.js} +1 -1
- package/dist/{chunk-TMQI47YT.js → chunk-J2Y7RIN2.js} +29 -25
- package/dist/{chunk-HNETXFC7.js → chunk-K4FSDTDW.js} +1 -1
- package/dist/{chunk-HIPWQ6AW.js → chunk-KCMPDEH7.js} +1 -1
- package/dist/chunk-KVE2NBC6.js +132 -0
- package/dist/{chunk-QX3MRSSK.js → chunk-LRVF7U64.js} +1 -1
- package/dist/{chunk-5XCPOWFN.js → chunk-MHDQO7R5.js} +1 -1
- package/dist/{chunk-K4RV3N2T.js → chunk-MIOIOFBZ.js} +1 -1
- package/dist/{chunk-424IUJWR.js → chunk-MMFL6N5M.js} +237 -129
- package/dist/{chunk-LDQNJLYQ.js → chunk-N7C4SRFX.js} +1 -1
- package/dist/chunk-NO2EZKW4.js +291 -0
- package/dist/{chunk-HKGWC7OO.js → chunk-P25WDNMD.js} +1 -1
- package/dist/{chunk-FYRWYZEE.js → chunk-PPPSDO6G.js} +36 -40
- package/dist/{chunk-KVUJPR42.js → chunk-PTE2I7DF.js} +1 -1
- package/dist/{chunk-AASWRJMS.js → chunk-Q3HGHP3J.js} +1 -1
- package/dist/{chunk-WMI4VKU3.js → chunk-TCEHHLIZ.js} +206 -51
- package/dist/{chunk-T3GTEGQN.js → chunk-U3AOS5QJ.js} +235 -127
- package/dist/{chunk-X2CX5K24.js → chunk-U3BTVE5T.js} +1 -1
- package/dist/{chunk-HUMZDPUU.js → chunk-U4A647KI.js} +1 -1
- package/dist/{chunk-4GCROGGK.js → chunk-UBOVHONH.js} +1 -1
- package/dist/{chunk-GGZUN2GE.js → chunk-UGYLBYUU.js} +1 -1
- package/dist/{chunk-XJU4JALX.js → chunk-USAQULWA.js} +35 -31
- package/dist/{chunk-IVU6STSJ.js → chunk-X4JBWMXY.js} +1 -1
- package/dist/{chunk-LPBYQJG4.js → chunk-XIRCL7KT.js} +1 -1
- package/dist/{chunk-CNSSF43V.js → chunk-YNHC5SXO.js} +14 -14
- package/dist/{chunk-B43GFRT4.js → chunk-YPEFUAJW.js} +1 -1
- package/dist/{chunk-VMSVBNM6.js → chunk-YSTMGNYR.js} +1 -1
- package/dist/{chunk-XT2IWGYK.js → chunk-ZCV62ELK.js} +1 -1
- package/dist/{chunk-E5MPHTIA.js → chunk-ZIOJDN75.js} +1 -1
- package/dist/clearwsisession.js +1 -1
- package/dist/clearwsisessions.js +2 -2
- package/dist/correlationVolcano.js +2 -2
- package/dist/dataset.js +2 -2
- package/dist/deleteWSIAnnotation.js +11 -0
- package/dist/dsdata.js +2 -2
- package/dist/dzimages.js +2 -2
- package/dist/gdc.grin2.js +2 -2
- package/dist/gdc.maf.js +2 -2
- package/dist/gdc.mafBuild.js +2 -2
- package/dist/genelookup.js +2 -2
- package/dist/genesetEnrichment.js +2 -2
- package/dist/genesetOverrepresentation.js +2 -2
- package/dist/grin2.js +2 -2
- package/dist/healthcheck.js +2 -2
- package/dist/hicdata.js +2 -2
- package/dist/hicgenome.js +2 -2
- package/dist/hicstat.js +2 -2
- package/dist/img.js +2 -2
- package/dist/index.js +118 -102
- package/dist/isoformlst.js +2 -2
- package/dist/ntseq.js +2 -2
- package/dist/pdomain.js +2 -2
- package/dist/samplewsimages.js +2 -2
- package/dist/saveWSIAnnotation.js +11 -0
- package/dist/snp.js +2 -2
- package/dist/termdb.DE.js +2 -2
- package/dist/termdb.boxplot.js +2 -2
- package/dist/termdb.categories.js +2 -2
- package/dist/termdb.cluster.js +2 -2
- package/dist/termdb.cohort.summary.js +2 -2
- package/dist/termdb.cohorts.js +2 -2
- package/dist/termdb.descrstats.js +2 -2
- package/dist/termdb.filterTermValues.js +2 -2
- package/dist/termdb.numericcategories.js +2 -2
- package/dist/termdb.percentile.js +2 -2
- package/dist/termdb.profileFormScores.js +2 -2
- package/dist/termdb.profileScores.js +2 -2
- package/dist/termdb.rootterm.js +2 -2
- package/dist/termdb.sampleImages.js +2 -2
- package/dist/termdb.singleSampleMutation.js +2 -2
- package/dist/termdb.singlecellDEgenes.js +2 -2
- package/dist/termdb.singlecellData.js +2 -2
- package/dist/termdb.singlecellSamples.js +2 -2
- package/dist/termdb.termchildren.js +2 -2
- package/dist/termdb.termsbyids.js +2 -2
- package/dist/termdb.topMutatedGenes.js +2 -2
- package/dist/termdb.topTermsByType.js +2 -2
- package/dist/termdb.topVariablyExpressedGenes.js +2 -2
- package/dist/termdb.violin.js +2 -2
- package/dist/tileserver.js +2 -2
- package/dist/wsimages.js +2 -2
- package/dist/wsisamples.js +2 -2
- package/package.json +1 -1
- package/src/dataset.ts +19 -7
- package/src/index.ts +3 -1
- package/src/routes/aiProjectAdmin.ts +10 -8
- package/src/routes/aiProjectSelectedWSImages.ts +23 -0
- package/src/routes/deleteWSIAnnotation.ts +23 -0
- package/src/routes/grin2.ts +42 -0
- package/src/routes/samplewsimages.ts +5 -3
- package/src/routes/saveWSIAnnotation.ts +24 -0
- package/src/routes/termdb.boxplot.ts +23 -1
- package/src/routes/termdb.violin.ts +4 -2
- package/src/routes/wsimages.ts +2 -1
- package/src/termdb.matrix.ts +2 -0
- package/src/terms/categorical.ts +3 -2
- package/src/terms/condition.ts +25 -8
- package/src/terms/date.ts +7 -5
- package/src/terms/geneExpression.ts +22 -8
- package/src/terms/metaboliteIntensity.ts +13 -3
- package/src/terms/numeric.ts +6 -1
- package/src/terms/q.ts +60 -1
- package/src/terms/samplelst.ts +2 -2
- package/src/terms/singleCellCellType.ts +1 -1
- package/src/terms/snp.ts +2 -2
- package/src/terms/snps.ts +2 -2
- package/src/terms/ssGSEA.ts +4 -2
- package/src/terms/term.ts +2 -134
- package/src/terms/tw.ts +17 -2
- package/dist/sampleWsiAiApi.js +0 -11
- package/src/routes/sampleWsiAiApi.ts +0 -21
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__toESM,
|
|
3
3
|
require_lib
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YNHC5SXO.js";
|
|
5
5
|
|
|
6
6
|
// dist/grin2.ts
|
|
7
7
|
var import_typia = __toESM(require_lib(), 1);
|
|
@@ -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 && 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));
|
|
24
|
+
const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && (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) && 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) => {
|
|
@@ -46,6 +46,18 @@ var validGRIN2Request = (input) => {
|
|
|
46
46
|
path: _path2 + ".dslabel",
|
|
47
47
|
expected: "string",
|
|
48
48
|
value: input3.dslabel
|
|
49
|
+
}), void 0 === input3.devicePixelRatio || "number" === typeof input3.devicePixelRatio || $report(_exceptionable2, {
|
|
50
|
+
path: _path2 + ".devicePixelRatio",
|
|
51
|
+
expected: "(number | undefined)",
|
|
52
|
+
value: input3.devicePixelRatio
|
|
53
|
+
}), void 0 === input3.plot_width || "number" === typeof input3.plot_width || $report(_exceptionable2, {
|
|
54
|
+
path: _path2 + ".plot_width",
|
|
55
|
+
expected: "(number | undefined)",
|
|
56
|
+
value: input3.plot_width
|
|
57
|
+
}), void 0 === input3.plot_height || "number" === typeof input3.plot_height || $report(_exceptionable2, {
|
|
58
|
+
path: _path2 + ".plot_height",
|
|
59
|
+
expected: "(number | undefined)",
|
|
60
|
+
value: input3.plot_height
|
|
49
61
|
}), true, void 0 === input3.snvindelOptions || ("object" === typeof input3.snvindelOptions && null !== input3.snvindelOptions && false === Array.isArray(input3.snvindelOptions) || $report(_exceptionable2, {
|
|
50
62
|
path: _path2 + ".snvindelOptions",
|
|
51
63
|
expected: "(__type | undefined)",
|
|
@@ -142,18 +154,30 @@ var validGRIN2Request = (input) => {
|
|
|
142
154
|
var validGRIN2Response = (input) => {
|
|
143
155
|
const errors = [];
|
|
144
156
|
const __is = (input2) => {
|
|
145
|
-
const $
|
|
146
|
-
const $
|
|
147
|
-
const $
|
|
148
|
-
const $
|
|
149
|
-
const $
|
|
150
|
-
|
|
151
|
-
|
|
157
|
+
const $join = import_typia.createValidate.join;
|
|
158
|
+
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 && $io9(input3.processingSummary));
|
|
159
|
+
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)) && "boolean" === typeof input3.y_axis_scaled && "number" === typeof input3.scale_factor && "number" === typeof input3.total_genome_length && "number" === typeof input3.plot_width && "number" === typeof input3.plot_height && "number" === typeof input3.device_pixel_ratio && "number" === typeof input3.dpi;
|
|
160
|
+
const $io2 = (input3) => "number" === typeof input3.x && "number" === typeof input3.y && "number" === typeof input3.svg_x && "number" === typeof input3.svg_y && "string" === typeof input3.color && "string" === typeof input3.type && "string" === typeof input3.gene && "string" === typeof input3.chrom && "number" === typeof input3.pos && "number" === typeof input3.q_value;
|
|
161
|
+
const $io3 = (input3) => Object.keys(input3).every((key) => {
|
|
162
|
+
const value = input3[key];
|
|
163
|
+
if (void 0 === value)
|
|
164
|
+
return true;
|
|
165
|
+
if (RegExp(/(.*)/).test(key))
|
|
166
|
+
return "object" === typeof value && null !== value && ("number" === typeof value.start && "number" === typeof value.size && "number" === typeof value.center);
|
|
167
|
+
return true;
|
|
168
|
+
});
|
|
169
|
+
const $io5 = (input3) => Array.isArray(input3.columns) && input3.columns.every((elem) => "object" === typeof elem && null !== elem && $io6(elem)) && (Array.isArray(input3.rows) && input3.rows.every((elem) => Array.isArray(elem) && elem.every((elem2) => "object" === typeof elem2 && null !== elem2 && $io7(elem2))));
|
|
170
|
+
const $io6 = (input3) => "string" === typeof input3.label && "boolean" === typeof input3.sortable;
|
|
171
|
+
const $io7 = (input3) => "string" === typeof input3.value || "number" === typeof input3.value;
|
|
172
|
+
const $io8 = (input3) => "number" === typeof input3.processingTime && "number" === typeof input3.grin2Time && "number" === typeof input3.totalTime;
|
|
173
|
+
const $io9 = (input3) => "number" === typeof input3.totalSamples && "number" === typeof input3.successfulSamples && "number" === typeof input3.failedSamples && (Array.isArray(input3.failedFiles) && input3.failedFiles.every((elem) => "object" === typeof elem && null !== elem && $io10(elem)));
|
|
174
|
+
const $io10 = (input3) => "string" === typeof input3.sampleName && "string" === typeof input3.filePath && "string" === typeof input3.error;
|
|
152
175
|
return "object" === typeof input2 && null !== input2 && $io0(input2);
|
|
153
176
|
};
|
|
154
177
|
if (false === __is(input)) {
|
|
155
178
|
const $report = import_typia.createValidate.report(errors);
|
|
156
179
|
((input2, _path, _exceptionable = true) => {
|
|
180
|
+
const $join = import_typia.createValidate.join;
|
|
157
181
|
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["error" === input3.status || "success" === input3.status || $report(_exceptionable2, {
|
|
158
182
|
path: _path2 + ".status",
|
|
159
183
|
expected: '("error" | "success")',
|
|
@@ -166,13 +190,21 @@ var validGRIN2Response = (input) => {
|
|
|
166
190
|
path: _path2 + ".pngImg",
|
|
167
191
|
expected: "(string | undefined)",
|
|
168
192
|
value: input3.pngImg
|
|
193
|
+
}), void 0 === input3.plotData || ("object" === typeof input3.plotData && null !== input3.plotData || $report(_exceptionable2, {
|
|
194
|
+
path: _path2 + ".plotData",
|
|
195
|
+
expected: "(grin2PlotData | undefined)",
|
|
196
|
+
value: input3.plotData
|
|
197
|
+
})) && $vo1(input3.plotData, _path2 + ".plotData", _exceptionable2) || $report(_exceptionable2, {
|
|
198
|
+
path: _path2 + ".plotData",
|
|
199
|
+
expected: "(grin2PlotData | undefined)",
|
|
200
|
+
value: input3.plotData
|
|
169
201
|
}), true, void 0 === input3.topGeneTable || ("object" === typeof input3.topGeneTable && null !== input3.topGeneTable || $report(_exceptionable2, {
|
|
170
202
|
path: _path2 + ".topGeneTable",
|
|
171
|
-
expected: "(__type | undefined)",
|
|
203
|
+
expected: "(__type.o2 | undefined)",
|
|
172
204
|
value: input3.topGeneTable
|
|
173
|
-
})) && $
|
|
205
|
+
})) && $vo5(input3.topGeneTable, _path2 + ".topGeneTable", _exceptionable2) || $report(_exceptionable2, {
|
|
174
206
|
path: _path2 + ".topGeneTable",
|
|
175
|
-
expected: "(__type | undefined)",
|
|
207
|
+
expected: "(__type.o2 | undefined)",
|
|
176
208
|
value: input3.topGeneTable
|
|
177
209
|
}), void 0 === input3.totalGenes || "number" === typeof input3.totalGenes || $report(_exceptionable2, {
|
|
178
210
|
path: _path2 + ".totalGenes",
|
|
@@ -184,63 +216,186 @@ var validGRIN2Response = (input) => {
|
|
|
184
216
|
value: input3.showingTop
|
|
185
217
|
}), void 0 === input3.timing || ("object" === typeof input3.timing && null !== input3.timing || $report(_exceptionable2, {
|
|
186
218
|
path: _path2 + ".timing",
|
|
187
|
-
expected: "(__type.
|
|
219
|
+
expected: "(__type.o5 | undefined)",
|
|
188
220
|
value: input3.timing
|
|
189
|
-
})) && $
|
|
221
|
+
})) && $vo8(input3.timing, _path2 + ".timing", _exceptionable2) || $report(_exceptionable2, {
|
|
190
222
|
path: _path2 + ".timing",
|
|
191
|
-
expected: "(__type.
|
|
223
|
+
expected: "(__type.o5 | undefined)",
|
|
192
224
|
value: input3.timing
|
|
193
225
|
}), void 0 === input3.processingSummary || ("object" === typeof input3.processingSummary && null !== input3.processingSummary || $report(_exceptionable2, {
|
|
194
226
|
path: _path2 + ".processingSummary",
|
|
195
|
-
expected: "(__type.
|
|
227
|
+
expected: "(__type.o6 | undefined)",
|
|
196
228
|
value: input3.processingSummary
|
|
197
|
-
})) && $
|
|
229
|
+
})) && $vo9(input3.processingSummary, _path2 + ".processingSummary", _exceptionable2) || $report(_exceptionable2, {
|
|
198
230
|
path: _path2 + ".processingSummary",
|
|
199
|
-
expected: "(__type.
|
|
231
|
+
expected: "(__type.o6 | undefined)",
|
|
200
232
|
value: input3.processingSummary
|
|
201
233
|
})].every((flag) => flag);
|
|
202
|
-
const $vo1 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.
|
|
203
|
-
path: _path2 + ".
|
|
234
|
+
const $vo1 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.points) || $report(_exceptionable2, {
|
|
235
|
+
path: _path2 + ".points",
|
|
236
|
+
expected: "Array<__type>",
|
|
237
|
+
value: input3.points
|
|
238
|
+
})) && input3.points.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
|
|
239
|
+
path: _path2 + ".points[" + _index1 + "]",
|
|
240
|
+
expected: "__type",
|
|
241
|
+
value: elem
|
|
242
|
+
})) && $vo2(elem, _path2 + ".points[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
243
|
+
path: _path2 + ".points[" + _index1 + "]",
|
|
244
|
+
expected: "__type",
|
|
245
|
+
value: elem
|
|
246
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
247
|
+
path: _path2 + ".points",
|
|
204
248
|
expected: "Array<__type>",
|
|
249
|
+
value: input3.points
|
|
250
|
+
}), ("object" === typeof input3.chrom_data && null !== input3.chrom_data && false === Array.isArray(input3.chrom_data) || $report(_exceptionable2, {
|
|
251
|
+
path: _path2 + ".chrom_data",
|
|
252
|
+
expected: "Record<string, __type>",
|
|
253
|
+
value: input3.chrom_data
|
|
254
|
+
})) && $vo3(input3.chrom_data, _path2 + ".chrom_data", _exceptionable2) || $report(_exceptionable2, {
|
|
255
|
+
path: _path2 + ".chrom_data",
|
|
256
|
+
expected: "Record<string, __type>",
|
|
257
|
+
value: input3.chrom_data
|
|
258
|
+
}), "boolean" === typeof input3.y_axis_scaled || $report(_exceptionable2, {
|
|
259
|
+
path: _path2 + ".y_axis_scaled",
|
|
260
|
+
expected: "boolean",
|
|
261
|
+
value: input3.y_axis_scaled
|
|
262
|
+
}), "number" === typeof input3.scale_factor || $report(_exceptionable2, {
|
|
263
|
+
path: _path2 + ".scale_factor",
|
|
264
|
+
expected: "number",
|
|
265
|
+
value: input3.scale_factor
|
|
266
|
+
}), "number" === typeof input3.total_genome_length || $report(_exceptionable2, {
|
|
267
|
+
path: _path2 + ".total_genome_length",
|
|
268
|
+
expected: "number",
|
|
269
|
+
value: input3.total_genome_length
|
|
270
|
+
}), "number" === typeof input3.plot_width || $report(_exceptionable2, {
|
|
271
|
+
path: _path2 + ".plot_width",
|
|
272
|
+
expected: "number",
|
|
273
|
+
value: input3.plot_width
|
|
274
|
+
}), "number" === typeof input3.plot_height || $report(_exceptionable2, {
|
|
275
|
+
path: _path2 + ".plot_height",
|
|
276
|
+
expected: "number",
|
|
277
|
+
value: input3.plot_height
|
|
278
|
+
}), "number" === typeof input3.device_pixel_ratio || $report(_exceptionable2, {
|
|
279
|
+
path: _path2 + ".device_pixel_ratio",
|
|
280
|
+
expected: "number",
|
|
281
|
+
value: input3.device_pixel_ratio
|
|
282
|
+
}), "number" === typeof input3.dpi || $report(_exceptionable2, {
|
|
283
|
+
path: _path2 + ".dpi",
|
|
284
|
+
expected: "number",
|
|
285
|
+
value: input3.dpi
|
|
286
|
+
})].every((flag) => flag);
|
|
287
|
+
const $vo2 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.x || $report(_exceptionable2, {
|
|
288
|
+
path: _path2 + ".x",
|
|
289
|
+
expected: "number",
|
|
290
|
+
value: input3.x
|
|
291
|
+
}), "number" === typeof input3.y || $report(_exceptionable2, {
|
|
292
|
+
path: _path2 + ".y",
|
|
293
|
+
expected: "number",
|
|
294
|
+
value: input3.y
|
|
295
|
+
}), "number" === typeof input3.svg_x || $report(_exceptionable2, {
|
|
296
|
+
path: _path2 + ".svg_x",
|
|
297
|
+
expected: "number",
|
|
298
|
+
value: input3.svg_x
|
|
299
|
+
}), "number" === typeof input3.svg_y || $report(_exceptionable2, {
|
|
300
|
+
path: _path2 + ".svg_y",
|
|
301
|
+
expected: "number",
|
|
302
|
+
value: input3.svg_y
|
|
303
|
+
}), "string" === typeof input3.color || $report(_exceptionable2, {
|
|
304
|
+
path: _path2 + ".color",
|
|
305
|
+
expected: "string",
|
|
306
|
+
value: input3.color
|
|
307
|
+
}), "string" === typeof input3.type || $report(_exceptionable2, {
|
|
308
|
+
path: _path2 + ".type",
|
|
309
|
+
expected: "string",
|
|
310
|
+
value: input3.type
|
|
311
|
+
}), "string" === typeof input3.gene || $report(_exceptionable2, {
|
|
312
|
+
path: _path2 + ".gene",
|
|
313
|
+
expected: "string",
|
|
314
|
+
value: input3.gene
|
|
315
|
+
}), "string" === typeof input3.chrom || $report(_exceptionable2, {
|
|
316
|
+
path: _path2 + ".chrom",
|
|
317
|
+
expected: "string",
|
|
318
|
+
value: input3.chrom
|
|
319
|
+
}), "number" === typeof input3.pos || $report(_exceptionable2, {
|
|
320
|
+
path: _path2 + ".pos",
|
|
321
|
+
expected: "number",
|
|
322
|
+
value: input3.pos
|
|
323
|
+
}), "number" === typeof input3.q_value || $report(_exceptionable2, {
|
|
324
|
+
path: _path2 + ".q_value",
|
|
325
|
+
expected: "number",
|
|
326
|
+
value: input3.q_value
|
|
327
|
+
})].every((flag) => flag);
|
|
328
|
+
const $vo3 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
|
|
329
|
+
const value = input3[key];
|
|
330
|
+
if (void 0 === value)
|
|
331
|
+
return true;
|
|
332
|
+
if (RegExp(/(.*)/).test(key))
|
|
333
|
+
return ("object" === typeof value && null !== value || $report(_exceptionable2, {
|
|
334
|
+
path: _path2 + $join(key),
|
|
335
|
+
expected: "__type.o1",
|
|
336
|
+
value
|
|
337
|
+
})) && $vo4(value, _path2 + $join(key), _exceptionable2) || $report(_exceptionable2, {
|
|
338
|
+
path: _path2 + $join(key),
|
|
339
|
+
expected: "__type.o1",
|
|
340
|
+
value
|
|
341
|
+
});
|
|
342
|
+
return true;
|
|
343
|
+
}).every((flag) => flag)].every((flag) => flag);
|
|
344
|
+
const $vo4 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.start || $report(_exceptionable2, {
|
|
345
|
+
path: _path2 + ".start",
|
|
346
|
+
expected: "number",
|
|
347
|
+
value: input3.start
|
|
348
|
+
}), "number" === typeof input3.size || $report(_exceptionable2, {
|
|
349
|
+
path: _path2 + ".size",
|
|
350
|
+
expected: "number",
|
|
351
|
+
value: input3.size
|
|
352
|
+
}), "number" === typeof input3.center || $report(_exceptionable2, {
|
|
353
|
+
path: _path2 + ".center",
|
|
354
|
+
expected: "number",
|
|
355
|
+
value: input3.center
|
|
356
|
+
})].every((flag) => flag);
|
|
357
|
+
const $vo5 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.columns) || $report(_exceptionable2, {
|
|
358
|
+
path: _path2 + ".columns",
|
|
359
|
+
expected: "Array<__type>.o1",
|
|
205
360
|
value: input3.columns
|
|
206
|
-
})) && input3.columns.map((elem,
|
|
207
|
-
path: _path2 + ".columns[" +
|
|
208
|
-
expected: "__type.
|
|
361
|
+
})) && input3.columns.map((elem, _index2) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
|
|
362
|
+
path: _path2 + ".columns[" + _index2 + "]",
|
|
363
|
+
expected: "__type.o3",
|
|
209
364
|
value: elem
|
|
210
|
-
})) && $
|
|
211
|
-
path: _path2 + ".columns[" +
|
|
212
|
-
expected: "__type.
|
|
365
|
+
})) && $vo6(elem, _path2 + ".columns[" + _index2 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
366
|
+
path: _path2 + ".columns[" + _index2 + "]",
|
|
367
|
+
expected: "__type.o3",
|
|
213
368
|
value: elem
|
|
214
369
|
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
215
370
|
path: _path2 + ".columns",
|
|
216
|
-
expected: "Array<__type
|
|
371
|
+
expected: "Array<__type>.o1",
|
|
217
372
|
value: input3.columns
|
|
218
373
|
}), (Array.isArray(input3.rows) || $report(_exceptionable2, {
|
|
219
374
|
path: _path2 + ".rows",
|
|
220
375
|
expected: "Array<Array<__type>>",
|
|
221
376
|
value: input3.rows
|
|
222
|
-
})) && input3.rows.map((elem,
|
|
223
|
-
path: _path2 + ".rows[" +
|
|
224
|
-
expected: "Array<__type>.
|
|
377
|
+
})) && input3.rows.map((elem, _index3) => (Array.isArray(elem) || $report(_exceptionable2, {
|
|
378
|
+
path: _path2 + ".rows[" + _index3 + "]",
|
|
379
|
+
expected: "Array<__type>.o2",
|
|
225
380
|
value: elem
|
|
226
|
-
})) && elem.map((elem2,
|
|
227
|
-
path: _path2 + ".rows[" +
|
|
228
|
-
expected: "__type.
|
|
381
|
+
})) && elem.map((elem2, _index4) => ("object" === typeof elem2 && null !== elem2 || $report(_exceptionable2, {
|
|
382
|
+
path: _path2 + ".rows[" + _index3 + "][" + _index4 + "]",
|
|
383
|
+
expected: "__type.o4",
|
|
229
384
|
value: elem2
|
|
230
|
-
})) && $
|
|
231
|
-
path: _path2 + ".rows[" +
|
|
232
|
-
expected: "__type.
|
|
385
|
+
})) && $vo7(elem2, _path2 + ".rows[" + _index3 + "][" + _index4 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
386
|
+
path: _path2 + ".rows[" + _index3 + "][" + _index4 + "]",
|
|
387
|
+
expected: "__type.o4",
|
|
233
388
|
value: elem2
|
|
234
389
|
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
235
|
-
path: _path2 + ".rows[" +
|
|
236
|
-
expected: "Array<__type>.
|
|
390
|
+
path: _path2 + ".rows[" + _index3 + "]",
|
|
391
|
+
expected: "Array<__type>.o2",
|
|
237
392
|
value: elem
|
|
238
393
|
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
239
394
|
path: _path2 + ".rows",
|
|
240
395
|
expected: "Array<Array<__type>>",
|
|
241
396
|
value: input3.rows
|
|
242
397
|
})].every((flag) => flag);
|
|
243
|
-
const $
|
|
398
|
+
const $vo6 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.label || $report(_exceptionable2, {
|
|
244
399
|
path: _path2 + ".label",
|
|
245
400
|
expected: "string",
|
|
246
401
|
value: input3.label
|
|
@@ -249,12 +404,12 @@ var validGRIN2Response = (input) => {
|
|
|
249
404
|
expected: "boolean",
|
|
250
405
|
value: input3.sortable
|
|
251
406
|
})].every((flag) => flag);
|
|
252
|
-
const $
|
|
407
|
+
const $vo7 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.value || "number" === typeof input3.value || $report(_exceptionable2, {
|
|
253
408
|
path: _path2 + ".value",
|
|
254
409
|
expected: "(number | string)",
|
|
255
410
|
value: input3.value
|
|
256
411
|
})].every((flag) => flag);
|
|
257
|
-
const $
|
|
412
|
+
const $vo8 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.processingTime || $report(_exceptionable2, {
|
|
258
413
|
path: _path2 + ".processingTime",
|
|
259
414
|
expected: "number",
|
|
260
415
|
value: input3.processingTime
|
|
@@ -267,7 +422,7 @@ var validGRIN2Response = (input) => {
|
|
|
267
422
|
expected: "number",
|
|
268
423
|
value: input3.totalTime
|
|
269
424
|
})].every((flag) => flag);
|
|
270
|
-
const $
|
|
425
|
+
const $vo9 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.totalSamples || $report(_exceptionable2, {
|
|
271
426
|
path: _path2 + ".totalSamples",
|
|
272
427
|
expected: "number",
|
|
273
428
|
value: input3.totalSamples
|
|
@@ -281,22 +436,22 @@ var validGRIN2Response = (input) => {
|
|
|
281
436
|
value: input3.failedSamples
|
|
282
437
|
}), (Array.isArray(input3.failedFiles) || $report(_exceptionable2, {
|
|
283
438
|
path: _path2 + ".failedFiles",
|
|
284
|
-
expected: "Array<__type>.
|
|
439
|
+
expected: "Array<__type>.o3",
|
|
285
440
|
value: input3.failedFiles
|
|
286
|
-
})) && input3.failedFiles.map((elem,
|
|
287
|
-
path: _path2 + ".failedFiles[" +
|
|
288
|
-
expected: "__type.
|
|
441
|
+
})) && input3.failedFiles.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
|
|
442
|
+
path: _path2 + ".failedFiles[" + _index5 + "]",
|
|
443
|
+
expected: "__type.o7",
|
|
289
444
|
value: elem
|
|
290
|
-
})) && $
|
|
291
|
-
path: _path2 + ".failedFiles[" +
|
|
292
|
-
expected: "__type.
|
|
445
|
+
})) && $vo10(elem, _path2 + ".failedFiles[" + _index5 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
446
|
+
path: _path2 + ".failedFiles[" + _index5 + "]",
|
|
447
|
+
expected: "__type.o7",
|
|
293
448
|
value: elem
|
|
294
449
|
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
295
450
|
path: _path2 + ".failedFiles",
|
|
296
|
-
expected: "Array<__type>.
|
|
451
|
+
expected: "Array<__type>.o3",
|
|
297
452
|
value: input3.failedFiles
|
|
298
453
|
})].every((flag) => flag);
|
|
299
|
-
const $
|
|
454
|
+
const $vo10 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.sampleName || $report(_exceptionable2, {
|
|
300
455
|
path: _path2 + ".sampleName",
|
|
301
456
|
expected: "string",
|
|
302
457
|
value: input3.sampleName
|