@sjcrh/proteinpaint-types 2.96.2-0 → 2.98.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.
@@ -13,8 +13,59 @@ var boxplotPayload = {
13
13
  },
14
14
  response: {
15
15
  typeId: "BoxPlotResponse"
16
- }
17
- //examples: []
16
+ },
17
+ examples: [
18
+ {
19
+ request: {
20
+ body: {
21
+ tw: {
22
+ term: { id: "subcohort", type: "categorical" },
23
+ values: [{ key: "ABC", label: "ABC" }]
24
+ },
25
+ genome: "hg38-test",
26
+ dslabel: "TermdbTest",
27
+ orderByMedian: true
28
+ }
29
+ },
30
+ response: {
31
+ body: {
32
+ absMin: 0,
33
+ absMax: 100,
34
+ plots: [
35
+ {
36
+ boxplot: {
37
+ label: "ABC",
38
+ w1: 0,
39
+ w2: 100,
40
+ p05: 0,
41
+ p25: 25,
42
+ p50: 50,
43
+ p75: 75,
44
+ p95: 100,
45
+ iqr: 50,
46
+ out: [101, 102, 106]
47
+ },
48
+ color: "blue",
49
+ descrStats: [
50
+ { id: "total", label: "Total", value: 100 },
51
+ { id: "min", label: "Min", value: 0 },
52
+ { id: "p25", label: "25%", value: 25 },
53
+ { id: "median", label: "Median", value: 50 },
54
+ { id: "mean", label: "Mean", value: 50 },
55
+ { id: "p75", label: "75%", value: 75 },
56
+ { id: "max", label: "Max", value: 100 },
57
+ { id: "sd", label: "SD", value: 0 },
58
+ { id: "variance", label: "Variance", value: 0 },
59
+ { id: "iqr", label: "IQR", value: 50 }
60
+ ],
61
+ key: "ABC"
62
+ }
63
+ ],
64
+ uncomputableValues: [{ label: "uncomputable-test", value: 1 }]
65
+ }
66
+ }
67
+ }
68
+ ]
18
69
  };
19
70
 
20
71
  // dist/termdb.boxplot.ts
@@ -59,7 +59,7 @@ var validViolinRequest = (input) => {
59
59
  const errors = [];
60
60
  const __is = (input2) => {
61
61
  const $join = import_typia.createValidate.join;
62
- const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && "string" === typeof input3.embedder && true && true && "number" === typeof input3.devicePixelRatio && (void 0 === input3.filter || "object" === typeof input3.filter && null !== input3.filter && $io1(input3.filter)) && true && "number" === typeof input3.svgw && ("horizontal" === input3.orientation || "vertical" === input3.orientation) && "string" === typeof input3.datasymbol && "number" === typeof input3.radius && "number" === typeof input3.strokeWidth && "number" === typeof input3.axisHeight && "number" === typeof input3.rightMargin && "string" === typeof input3.unit && "boolean" === typeof input3.isKDE;
62
+ const $io0 = (input3) => "number" === typeof input3.axisHeight && (Array.isArray(input3.currentGeneNames) && input3.currentGeneNames.every((elem) => "string" === typeof elem)) && "string" === typeof input3.datasymbol && "number" === typeof input3.devicePixelRatio && true && "string" === typeof input3.dslabel && (void 0 === input3.filter || "object" === typeof input3.filter && null !== input3.filter && $io1(input3.filter)) && true && "string" === typeof input3.genome && "boolean" === typeof input3.isKDE && ("horizontal" === input3.orientation || "vertical" === input3.orientation) && "number" === typeof input3.radius && "number" === typeof input3.rightMargin && true && "number" === typeof input3.strokeWidth && "number" === typeof input3.svgw && "number" === typeof input3.ticks && true && "string" === typeof input3.unit;
63
63
  const $io1 = (input3) => "lst" === input3.type && (void 0 === input3["in"] || "boolean" === typeof input3["in"]) && ("and" === input3.join || "or" === input3.join) && (void 0 === input3.tag || "string" === typeof input3.tag) && (Array.isArray(input3.lst) && input3.lst.every((elem) => "object" === typeof elem && null !== elem && $iu0(elem)));
64
64
  const $io2 = (input3) => (void 0 === input3.join || "string" === typeof input3.join) && (void 0 === input3.isnot || "boolean" === typeof input3.isnot) && ("object" === typeof input3.term && null !== input3.term && $io3(input3.term)) && (void 0 === input3.groupset_label || "string" === typeof input3.groupset_label) && (Array.isArray(input3.values) && input3.values.every((elem) => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io5(elem)));
65
65
  const $io3 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "categorical" === input3.type && (void 0 === input3.child_types || Array.isArray(input3.child_types) && input3.child_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.hashtmldetail || "boolean" === typeof input3.hashtmldetail) && (void 0 === input3.included_types || Array.isArray(input3.included_types) && input3.included_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.isleaf || "boolean" === typeof input3.isleaf) && (void 0 === input3.values || "object" === typeof input3.values && null !== input3.values && false === Array.isArray(input3.values) && $io4(input3.values)) && ("object" === typeof input3.groupsetting && null !== input3.groupsetting && $iu4(input3.groupsetting));
@@ -186,22 +186,34 @@ var validViolinRequest = (input) => {
186
186
  const $report = import_typia.createValidate.report(errors);
187
187
  ((input2, _path, _exceptionable = true) => {
188
188
  const $join = import_typia.createValidate.join;
189
- const $vo0 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.genome || $report(_exceptionable2, {
190
- path: _path2 + ".genome",
191
- expected: "string",
192
- value: input3.genome
193
- }), "string" === typeof input3.dslabel || $report(_exceptionable2, {
194
- path: _path2 + ".dslabel",
189
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.axisHeight || $report(_exceptionable2, {
190
+ path: _path2 + ".axisHeight",
191
+ expected: "number",
192
+ value: input3.axisHeight
193
+ }), (Array.isArray(input3.currentGeneNames) || $report(_exceptionable2, {
194
+ path: _path2 + ".currentGeneNames",
195
+ expected: "Array<string>",
196
+ value: input3.currentGeneNames
197
+ })) && input3.currentGeneNames.map((elem, _index1) => "string" === typeof elem || $report(_exceptionable2, {
198
+ path: _path2 + ".currentGeneNames[" + _index1 + "]",
195
199
  expected: "string",
196
- value: input3.dslabel
197
- }), "string" === typeof input3.embedder || $report(_exceptionable2, {
198
- path: _path2 + ".embedder",
200
+ value: elem
201
+ })).every((flag) => flag) || $report(_exceptionable2, {
202
+ path: _path2 + ".currentGeneNames",
203
+ expected: "Array<string>",
204
+ value: input3.currentGeneNames
205
+ }), "string" === typeof input3.datasymbol || $report(_exceptionable2, {
206
+ path: _path2 + ".datasymbol",
199
207
  expected: "string",
200
- value: input3.embedder
201
- }), true, true, "number" === typeof input3.devicePixelRatio || $report(_exceptionable2, {
208
+ value: input3.datasymbol
209
+ }), "number" === typeof input3.devicePixelRatio || $report(_exceptionable2, {
202
210
  path: _path2 + ".devicePixelRatio",
203
211
  expected: "number",
204
212
  value: input3.devicePixelRatio
213
+ }), true, "string" === typeof input3.dslabel || $report(_exceptionable2, {
214
+ path: _path2 + ".dslabel",
215
+ expected: "string",
216
+ value: input3.dslabel
205
217
  }), void 0 === input3.filter || ("object" === typeof input3.filter && null !== input3.filter || $report(_exceptionable2, {
206
218
  path: _path2 + ".filter",
207
219
  expected: "(Filter | undefined)",
@@ -210,42 +222,42 @@ var validViolinRequest = (input) => {
210
222
  path: _path2 + ".filter",
211
223
  expected: "(Filter | undefined)",
212
224
  value: input3.filter
213
- }), true, "number" === typeof input3.svgw || $report(_exceptionable2, {
214
- path: _path2 + ".svgw",
215
- expected: "number",
216
- value: input3.svgw
225
+ }), true, "string" === typeof input3.genome || $report(_exceptionable2, {
226
+ path: _path2 + ".genome",
227
+ expected: "string",
228
+ value: input3.genome
229
+ }), "boolean" === typeof input3.isKDE || $report(_exceptionable2, {
230
+ path: _path2 + ".isKDE",
231
+ expected: "boolean",
232
+ value: input3.isKDE
217
233
  }), "horizontal" === input3.orientation || "vertical" === input3.orientation || $report(_exceptionable2, {
218
234
  path: _path2 + ".orientation",
219
235
  expected: '("horizontal" | "vertical")',
220
236
  value: input3.orientation
221
- }), "string" === typeof input3.datasymbol || $report(_exceptionable2, {
222
- path: _path2 + ".datasymbol",
223
- expected: "string",
224
- value: input3.datasymbol
225
237
  }), "number" === typeof input3.radius || $report(_exceptionable2, {
226
238
  path: _path2 + ".radius",
227
239
  expected: "number",
228
240
  value: input3.radius
229
- }), "number" === typeof input3.strokeWidth || $report(_exceptionable2, {
241
+ }), "number" === typeof input3.rightMargin || $report(_exceptionable2, {
242
+ path: _path2 + ".rightMargin",
243
+ expected: "number",
244
+ value: input3.rightMargin
245
+ }), true, "number" === typeof input3.strokeWidth || $report(_exceptionable2, {
230
246
  path: _path2 + ".strokeWidth",
231
247
  expected: "number",
232
248
  value: input3.strokeWidth
233
- }), "number" === typeof input3.axisHeight || $report(_exceptionable2, {
234
- path: _path2 + ".axisHeight",
249
+ }), "number" === typeof input3.svgw || $report(_exceptionable2, {
250
+ path: _path2 + ".svgw",
235
251
  expected: "number",
236
- value: input3.axisHeight
237
- }), "number" === typeof input3.rightMargin || $report(_exceptionable2, {
238
- path: _path2 + ".rightMargin",
252
+ value: input3.svgw
253
+ }), "number" === typeof input3.ticks || $report(_exceptionable2, {
254
+ path: _path2 + ".ticks",
239
255
  expected: "number",
240
- value: input3.rightMargin
241
- }), "string" === typeof input3.unit || $report(_exceptionable2, {
256
+ value: input3.ticks
257
+ }), true, "string" === typeof input3.unit || $report(_exceptionable2, {
242
258
  path: _path2 + ".unit",
243
259
  expected: "string",
244
260
  value: input3.unit
245
- }), "boolean" === typeof input3.isKDE || $report(_exceptionable2, {
246
- path: _path2 + ".isKDE",
247
- expected: "boolean",
248
- value: input3.isKDE
249
261
  })].every((flag) => flag);
250
262
  const $vo1 = (input3, _path2, _exceptionable2 = true) => ["lst" === input3.type || $report(_exceptionable2, {
251
263
  path: _path2 + ".type",
@@ -267,12 +279,12 @@ var validViolinRequest = (input) => {
267
279
  path: _path2 + ".lst",
268
280
  expected: "Array<Filter | Tvs>",
269
281
  value: input3.lst
270
- })) && input3.lst.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
271
- path: _path2 + ".lst[" + _index1 + "]",
282
+ })) && input3.lst.map((elem, _index2) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
283
+ path: _path2 + ".lst[" + _index2 + "]",
272
284
  expected: "(CategoricalTvs | ConditionTvs | Filter | GeneVariantTvs | NumericTvs)",
273
285
  value: elem
274
- })) && $vu0(elem, _path2 + ".lst[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
275
- path: _path2 + ".lst[" + _index1 + "]",
286
+ })) && $vu0(elem, _path2 + ".lst[" + _index2 + "]", _exceptionable2) || $report(_exceptionable2, {
287
+ path: _path2 + ".lst[" + _index2 + "]",
276
288
  expected: "(CategoricalTvs | ConditionTvs | Filter | GeneVariantTvs | NumericTvs)",
277
289
  value: elem
278
290
  })).every((flag) => flag) || $report(_exceptionable2, {
@@ -304,12 +316,12 @@ var validViolinRequest = (input) => {
304
316
  path: _path2 + ".values",
305
317
  expected: "Array<BaseValue>",
306
318
  value: input3.values
307
- })) && input3.values.map((elem, _index2) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable2, {
308
- path: _path2 + ".values[" + _index2 + "]",
319
+ })) && input3.values.map((elem, _index3) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable2, {
320
+ path: _path2 + ".values[" + _index3 + "]",
309
321
  expected: "BaseValue",
310
322
  value: elem
311
- })) && $vo5(elem, _path2 + ".values[" + _index2 + "]", _exceptionable2) || $report(_exceptionable2, {
312
- path: _path2 + ".values[" + _index2 + "]",
323
+ })) && $vo5(elem, _path2 + ".values[" + _index3 + "]", _exceptionable2) || $report(_exceptionable2, {
324
+ path: _path2 + ".values[" + _index3 + "]",
313
325
  expected: "BaseValue",
314
326
  value: elem
315
327
  })).every((flag) => flag) || $report(_exceptionable2, {
@@ -333,8 +345,8 @@ var validViolinRequest = (input) => {
333
345
  path: _path2 + ".child_types",
334
346
  expected: "(Array<string> | undefined)",
335
347
  value: input3.child_types
336
- })) && input3.child_types.map((elem, _index3) => "string" === typeof elem || $report(_exceptionable2, {
337
- path: _path2 + ".child_types[" + _index3 + "]",
348
+ })) && input3.child_types.map((elem, _index4) => "string" === typeof elem || $report(_exceptionable2, {
349
+ path: _path2 + ".child_types[" + _index4 + "]",
338
350
  expected: "string",
339
351
  value: elem
340
352
  })).every((flag) => flag) || $report(_exceptionable2, {
@@ -349,8 +361,8 @@ var validViolinRequest = (input) => {
349
361
  path: _path2 + ".included_types",
350
362
  expected: "(Array<string> | undefined)",
351
363
  value: input3.included_types
352
- })) && input3.included_types.map((elem, _index4) => "string" === typeof elem || $report(_exceptionable2, {
353
- path: _path2 + ".included_types[" + _index4 + "]",
364
+ })) && input3.included_types.map((elem, _index5) => "string" === typeof elem || $report(_exceptionable2, {
365
+ path: _path2 + ".included_types[" + _index5 + "]",
354
366
  expected: "string",
355
367
  value: elem
356
368
  })).every((flag) => flag) || $report(_exceptionable2, {
@@ -445,12 +457,12 @@ var validViolinRequest = (input) => {
445
457
  path: _path2 + ".lst",
446
458
  expected: "Array<Groupset>",
447
459
  value: input3.lst
448
- })) && input3.lst.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
449
- path: _path2 + ".lst[" + _index5 + "]",
460
+ })) && input3.lst.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
461
+ path: _path2 + ".lst[" + _index6 + "]",
450
462
  expected: "Groupset",
451
463
  value: elem
452
- })) && $vo7(elem, _path2 + ".lst[" + _index5 + "]", _exceptionable2) || $report(_exceptionable2, {
453
- path: _path2 + ".lst[" + _index5 + "]",
464
+ })) && $vo7(elem, _path2 + ".lst[" + _index6 + "]", _exceptionable2) || $report(_exceptionable2, {
465
+ path: _path2 + ".lst[" + _index6 + "]",
454
466
  expected: "Groupset",
455
467
  value: elem
456
468
  })).every((flag) => flag) || $report(_exceptionable2, {
@@ -474,12 +486,12 @@ var validViolinRequest = (input) => {
474
486
  path: _path2 + ".groups",
475
487
  expected: "Array<GroupEntry>",
476
488
  value: input3.groups
477
- })) && input3.groups.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
478
- path: _path2 + ".groups[" + _index6 + "]",
489
+ })) && input3.groups.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
490
+ path: _path2 + ".groups[" + _index7 + "]",
479
491
  expected: "(FilterGroup | ValuesGroup)",
480
492
  value: elem
481
- })) && $vu1(elem, _path2 + ".groups[" + _index6 + "]", _exceptionable2) || $report(_exceptionable2, {
482
- path: _path2 + ".groups[" + _index6 + "]",
493
+ })) && $vu1(elem, _path2 + ".groups[" + _index7 + "]", _exceptionable2) || $report(_exceptionable2, {
494
+ path: _path2 + ".groups[" + _index7 + "]",
483
495
  expected: "(FilterGroup | ValuesGroup)",
484
496
  value: elem
485
497
  })).every((flag) => flag) || $report(_exceptionable2, {
@@ -499,12 +511,12 @@ var validViolinRequest = (input) => {
499
511
  path: _path2 + ".values",
500
512
  expected: "Array<__type>",
501
513
  value: input3.values
502
- })) && input3.values.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
503
- path: _path2 + ".values[" + _index7 + "]",
514
+ })) && input3.values.map((elem, _index8) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
515
+ path: _path2 + ".values[" + _index8 + "]",
504
516
  expected: "__type",
505
517
  value: elem
506
- })) && $vo9(elem, _path2 + ".values[" + _index7 + "]", _exceptionable2) || $report(_exceptionable2, {
507
- path: _path2 + ".values[" + _index7 + "]",
518
+ })) && $vo9(elem, _path2 + ".values[" + _index8 + "]", _exceptionable2) || $report(_exceptionable2, {
519
+ path: _path2 + ".values[" + _index8 + "]",
508
520
  expected: "__type",
509
521
  value: elem
510
522
  })).every((flag) => flag) || $report(_exceptionable2, {
@@ -579,12 +591,12 @@ var validViolinRequest = (input) => {
579
591
  path: _path2 + ".ranges",
580
592
  expected: "Array<NumericBin>",
581
593
  value: input3.ranges
582
- })) && input3.ranges.map((elem, _index8) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
583
- path: _path2 + ".ranges[" + _index8 + "]",
594
+ })) && input3.ranges.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
595
+ path: _path2 + ".ranges[" + _index9 + "]",
584
596
  expected: "(FullyBoundedBin | StartUnboundedBin | StopUnboundedBin)",
585
597
  value: elem
586
- })) && $vu2(elem, _path2 + ".ranges[" + _index8 + "]", _exceptionable2) || $report(_exceptionable2, {
587
- path: _path2 + ".ranges[" + _index8 + "]",
598
+ })) && $vu2(elem, _path2 + ".ranges[" + _index9 + "]", _exceptionable2) || $report(_exceptionable2, {
599
+ path: _path2 + ".ranges[" + _index9 + "]",
588
600
  expected: "(FullyBoundedBin | StartUnboundedBin | StopUnboundedBin)",
589
601
  value: elem
590
602
  })).every((flag) => flag) || $report(_exceptionable2, {
@@ -595,12 +607,12 @@ var validViolinRequest = (input) => {
595
607
  path: _path2 + ".values",
596
608
  expected: "Array<__type>.o1",
597
609
  value: input3.values
598
- })) && input3.values.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
599
- path: _path2 + ".values[" + _index9 + "]",
610
+ })) && input3.values.map((elem, _index10) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
611
+ path: _path2 + ".values[" + _index10 + "]",
600
612
  expected: "__type.o2",
601
613
  value: elem
602
- })) && $vo21(elem, _path2 + ".values[" + _index9 + "]", _exceptionable2) || $report(_exceptionable2, {
603
- path: _path2 + ".values[" + _index9 + "]",
614
+ })) && $vo21(elem, _path2 + ".values[" + _index10 + "]", _exceptionable2) || $report(_exceptionable2, {
615
+ path: _path2 + ".values[" + _index10 + "]",
604
616
  expected: "__type.o2",
605
617
  value: elem
606
618
  })).every((flag) => flag) || $report(_exceptionable2, {
@@ -624,8 +636,8 @@ var validViolinRequest = (input) => {
624
636
  path: _path2 + ".child_types",
625
637
  expected: "(Array<string> | undefined)",
626
638
  value: input3.child_types
627
- })) && input3.child_types.map((elem, _index10) => "string" === typeof elem || $report(_exceptionable2, {
628
- path: _path2 + ".child_types[" + _index10 + "]",
639
+ })) && input3.child_types.map((elem, _index11) => "string" === typeof elem || $report(_exceptionable2, {
640
+ path: _path2 + ".child_types[" + _index11 + "]",
629
641
  expected: "string",
630
642
  value: elem
631
643
  })).every((flag) => flag) || $report(_exceptionable2, {
@@ -640,8 +652,8 @@ var validViolinRequest = (input) => {
640
652
  path: _path2 + ".included_types",
641
653
  expected: "(Array<string> | undefined)",
642
654
  value: input3.included_types
643
- })) && input3.included_types.map((elem, _index11) => "string" === typeof elem || $report(_exceptionable2, {
644
- path: _path2 + ".included_types[" + _index11 + "]",
655
+ })) && input3.included_types.map((elem, _index12) => "string" === typeof elem || $report(_exceptionable2, {
656
+ path: _path2 + ".included_types[" + _index12 + "]",
645
657
  expected: "string",
646
658
  value: elem
647
659
  })).every((flag) => flag) || $report(_exceptionable2, {
@@ -900,12 +912,12 @@ var validViolinRequest = (input) => {
900
912
  path: _path2 + ".lst",
901
913
  expected: "...(FullyBoundedBin | StartUnboundedBin | StopUnboundedBin)",
902
914
  value: input3.lst.slice(1)
903
- })) && input3.lst.slice(1).map((elem, _index12) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
904
- path: _path2 + ".lst[" + (1 + _index12) + "]",
915
+ })) && input3.lst.slice(1).map((elem, _index13) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
916
+ path: _path2 + ".lst[" + (1 + _index13) + "]",
905
917
  expected: "(FullyBoundedBin | StartUnboundedBin | StopUnboundedBin)",
906
918
  value: elem
907
- })) && $vu2(elem, _path2 + ".lst[" + (1 + _index12) + "]", _exceptionable2) || $report(_exceptionable2, {
908
- path: _path2 + ".lst[" + (1 + _index12) + "]",
919
+ })) && $vu2(elem, _path2 + ".lst[" + (1 + _index13) + "]", _exceptionable2) || $report(_exceptionable2, {
920
+ path: _path2 + ".lst[" + (1 + _index13) + "]",
909
921
  expected: "(FullyBoundedBin | StartUnboundedBin | StopUnboundedBin)",
910
922
  value: elem
911
923
  })).every((flag) => flag) || $report(_exceptionable2, {
@@ -970,12 +982,12 @@ var validViolinRequest = (input) => {
970
982
  path: _path2 + ".grade_and_child",
971
983
  expected: "(Array<GradeAndChildEntry> | undefined)",
972
984
  value: input3.grade_and_child
973
- })) && input3.grade_and_child.map((elem, _index13) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
974
- path: _path2 + ".grade_and_child[" + _index13 + "]",
985
+ })) && input3.grade_and_child.map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
986
+ path: _path2 + ".grade_and_child[" + _index14 + "]",
975
987
  expected: "GradeAndChildEntry",
976
988
  value: elem
977
- })) && $vo24(elem, _path2 + ".grade_and_child[" + _index13 + "]", _exceptionable2) || $report(_exceptionable2, {
978
- path: _path2 + ".grade_and_child[" + _index13 + "]",
989
+ })) && $vo24(elem, _path2 + ".grade_and_child[" + _index14 + "]", _exceptionable2) || $report(_exceptionable2, {
990
+ path: _path2 + ".grade_and_child[" + _index14 + "]",
979
991
  expected: "GradeAndChildEntry",
980
992
  value: elem
981
993
  })).every((flag) => flag) || $report(_exceptionable2, {
@@ -999,8 +1011,8 @@ var validViolinRequest = (input) => {
999
1011
  path: _path2 + ".child_types",
1000
1012
  expected: "(Array<string> | undefined)",
1001
1013
  value: input3.child_types
1002
- })) && input3.child_types.map((elem, _index14) => "string" === typeof elem || $report(_exceptionable2, {
1003
- path: _path2 + ".child_types[" + _index14 + "]",
1014
+ })) && input3.child_types.map((elem, _index15) => "string" === typeof elem || $report(_exceptionable2, {
1015
+ path: _path2 + ".child_types[" + _index15 + "]",
1004
1016
  expected: "string",
1005
1017
  value: elem
1006
1018
  })).every((flag) => flag) || $report(_exceptionable2, {
@@ -1015,8 +1027,8 @@ var validViolinRequest = (input) => {
1015
1027
  path: _path2 + ".included_types",
1016
1028
  expected: "(Array<string> | undefined)",
1017
1029
  value: input3.included_types
1018
- })) && input3.included_types.map((elem, _index15) => "string" === typeof elem || $report(_exceptionable2, {
1019
- path: _path2 + ".included_types[" + _index15 + "]",
1030
+ })) && input3.included_types.map((elem, _index16) => "string" === typeof elem || $report(_exceptionable2, {
1031
+ path: _path2 + ".included_types[" + _index16 + "]",
1020
1032
  expected: "string",
1021
1033
  value: elem
1022
1034
  })).every((flag) => flag) || $report(_exceptionable2, {
@@ -1073,12 +1085,12 @@ var validViolinRequest = (input) => {
1073
1085
  path: _path2 + ".values",
1074
1086
  expected: "Array<GeneVariantTvsValue>",
1075
1087
  value: input3.values
1076
- })) && input3.values.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
1077
- path: _path2 + ".values[" + _index16 + "]",
1088
+ })) && input3.values.map((elem, _index17) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
1089
+ path: _path2 + ".values[" + _index17 + "]",
1078
1090
  expected: "(CNVTvsValue | FusionTvsValue | SNVIndelTvsValue | SVTvsValue)",
1079
1091
  value: elem
1080
- })) && $vu3(elem, _path2 + ".values[" + _index16 + "]", _exceptionable2) || $report(_exceptionable2, {
1081
- path: _path2 + ".values[" + _index16 + "]",
1092
+ })) && $vu3(elem, _path2 + ".values[" + _index17 + "]", _exceptionable2) || $report(_exceptionable2, {
1093
+ path: _path2 + ".values[" + _index17 + "]",
1082
1094
  expected: "(CNVTvsValue | FusionTvsValue | SNVIndelTvsValue | SVTvsValue)",
1083
1095
  value: elem
1084
1096
  })).every((flag) => flag) || $report(_exceptionable2, {
@@ -1102,8 +1114,8 @@ var validViolinRequest = (input) => {
1102
1114
  path: _path2 + ".child_types",
1103
1115
  expected: "(Array<string> | undefined)",
1104
1116
  value: input3.child_types
1105
- })) && input3.child_types.map((elem, _index17) => "string" === typeof elem || $report(_exceptionable2, {
1106
- path: _path2 + ".child_types[" + _index17 + "]",
1117
+ })) && input3.child_types.map((elem, _index18) => "string" === typeof elem || $report(_exceptionable2, {
1118
+ path: _path2 + ".child_types[" + _index18 + "]",
1107
1119
  expected: "string",
1108
1120
  value: elem
1109
1121
  })).every((flag) => flag) || $report(_exceptionable2, {
@@ -1118,8 +1130,8 @@ var validViolinRequest = (input) => {
1118
1130
  path: _path2 + ".included_types",
1119
1131
  expected: "(Array<string> | undefined)",
1120
1132
  value: input3.included_types
1121
- })) && input3.included_types.map((elem, _index18) => "string" === typeof elem || $report(_exceptionable2, {
1122
- path: _path2 + ".included_types[" + _index18 + "]",
1133
+ })) && input3.included_types.map((elem, _index19) => "string" === typeof elem || $report(_exceptionable2, {
1134
+ path: _path2 + ".included_types[" + _index19 + "]",
1123
1135
  expected: "string",
1124
1136
  value: elem
1125
1137
  })).every((flag) => flag) || $report(_exceptionable2, {
@@ -1183,8 +1195,8 @@ var validViolinRequest = (input) => {
1183
1195
  path: _path2 + ".child_types",
1184
1196
  expected: "(Array<string> | undefined)",
1185
1197
  value: input3.child_types
1186
- })) && input3.child_types.map((elem, _index19) => "string" === typeof elem || $report(_exceptionable2, {
1187
- path: _path2 + ".child_types[" + _index19 + "]",
1198
+ })) && input3.child_types.map((elem, _index20) => "string" === typeof elem || $report(_exceptionable2, {
1199
+ path: _path2 + ".child_types[" + _index20 + "]",
1188
1200
  expected: "string",
1189
1201
  value: elem
1190
1202
  })).every((flag) => flag) || $report(_exceptionable2, {
@@ -1199,8 +1211,8 @@ var validViolinRequest = (input) => {
1199
1211
  path: _path2 + ".included_types",
1200
1212
  expected: "(Array<string> | undefined)",
1201
1213
  value: input3.included_types
1202
- })) && input3.included_types.map((elem, _index20) => "string" === typeof elem || $report(_exceptionable2, {
1203
- path: _path2 + ".included_types[" + _index20 + "]",
1214
+ })) && input3.included_types.map((elem, _index21) => "string" === typeof elem || $report(_exceptionable2, {
1215
+ path: _path2 + ".included_types[" + _index21 + "]",
1204
1216
  expected: "string",
1205
1217
  value: elem
1206
1218
  })).every((flag) => flag) || $report(_exceptionable2, {
@@ -1252,8 +1264,8 @@ var validViolinRequest = (input) => {
1252
1264
  path: _path2 + ".mclassLst",
1253
1265
  expected: "Array<SNVIndelClasses>",
1254
1266
  value: input3.mclassLst
1255
- })) && input3.mclassLst.map((elem, _index21) => "M" === elem || "E" === elem || "F" === elem || "N" === elem || "S" === elem || "D" === elem || "I" === elem || "P" === elem || "L" === elem || "Intron" === elem || "Blank" === elem || "WT" === elem || "ITD" === elem || "DEL" === elem || "NLOSS" === elem || "CLOSS" === elem || "Utr3" === elem || "Utr5" === elem || "X" === elem || "noncoding" === elem || $report(_exceptionable2, {
1256
- path: _path2 + ".mclassLst[" + _index21 + "]",
1267
+ })) && input3.mclassLst.map((elem, _index22) => "M" === elem || "E" === elem || "F" === elem || "N" === elem || "S" === elem || "D" === elem || "I" === elem || "P" === elem || "L" === elem || "Intron" === elem || "Blank" === elem || "WT" === elem || "ITD" === elem || "DEL" === elem || "NLOSS" === elem || "CLOSS" === elem || "Utr3" === elem || "Utr5" === elem || "X" === elem || "noncoding" === elem || $report(_exceptionable2, {
1268
+ path: _path2 + ".mclassLst[" + _index22 + "]",
1257
1269
  expected: '("Blank" | "CLOSS" | "D" | "DEL" | "E" | "F" | "I" | "ITD" | "Intron" | "L" | "M" | "N" | "NLOSS" | "P" | "S" | "Utr3" | "Utr5" | "WT" | "X" | "noncoding")',
1258
1270
  value: elem
1259
1271
  })).every((flag) => flag) || $report(_exceptionable2, {
@@ -1264,8 +1276,8 @@ var validViolinRequest = (input) => {
1264
1276
  path: _path2 + ".mclassExcludeLst",
1265
1277
  expected: "Array<SNVIndelClasses>",
1266
1278
  value: input3.mclassExcludeLst
1267
- })) && input3.mclassExcludeLst.map((elem, _index22) => "M" === elem || "E" === elem || "F" === elem || "N" === elem || "S" === elem || "D" === elem || "I" === elem || "P" === elem || "L" === elem || "Intron" === elem || "Blank" === elem || "WT" === elem || "ITD" === elem || "DEL" === elem || "NLOSS" === elem || "CLOSS" === elem || "Utr3" === elem || "Utr5" === elem || "X" === elem || "noncoding" === elem || $report(_exceptionable2, {
1268
- path: _path2 + ".mclassExcludeLst[" + _index22 + "]",
1279
+ })) && input3.mclassExcludeLst.map((elem, _index23) => "M" === elem || "E" === elem || "F" === elem || "N" === elem || "S" === elem || "D" === elem || "I" === elem || "P" === elem || "L" === elem || "Intron" === elem || "Blank" === elem || "WT" === elem || "ITD" === elem || "DEL" === elem || "NLOSS" === elem || "CLOSS" === elem || "Utr3" === elem || "Utr5" === elem || "X" === elem || "noncoding" === elem || $report(_exceptionable2, {
1280
+ path: _path2 + ".mclassExcludeLst[" + _index23 + "]",
1269
1281
  expected: '("Blank" | "CLOSS" | "D" | "DEL" | "E" | "F" | "I" | "ITD" | "Intron" | "L" | "M" | "N" | "NLOSS" | "P" | "S" | "Utr3" | "Utr5" | "WT" | "X" | "noncoding")',
1270
1282
  value: elem
1271
1283
  })).every((flag) => flag) || $report(_exceptionable2, {
@@ -1285,8 +1297,8 @@ var validViolinRequest = (input) => {
1285
1297
  path: _path2 + ".mclassLst",
1286
1298
  expected: "Array<CNVClasses>",
1287
1299
  value: input3.mclassLst
1288
- })) && input3.mclassLst.map((elem, _index23) => "Blank" === elem || "WT" === elem || "CNV_amp" === elem || "CNV_loss" === elem || "CNV_loh" === elem || "CNV_amplification" === elem || "CNV_homozygous_deletion" === elem || $report(_exceptionable2, {
1289
- path: _path2 + ".mclassLst[" + _index23 + "]",
1300
+ })) && input3.mclassLst.map((elem, _index24) => "Blank" === elem || "WT" === elem || "CNV_amp" === elem || "CNV_loss" === elem || "CNV_loh" === elem || "CNV_amplification" === elem || "CNV_homozygous_deletion" === elem || $report(_exceptionable2, {
1301
+ path: _path2 + ".mclassLst[" + _index24 + "]",
1290
1302
  expected: '("Blank" | "CNV_amp" | "CNV_amplification" | "CNV_homozygous_deletion" | "CNV_loh" | "CNV_loss" | "WT")',
1291
1303
  value: elem
1292
1304
  })).every((flag) => flag) || $report(_exceptionable2, {
@@ -1297,8 +1309,8 @@ var validViolinRequest = (input) => {
1297
1309
  path: _path2 + ".mclassExcludeLst",
1298
1310
  expected: "Array<CNVClasses>",
1299
1311
  value: input3.mclassExcludeLst
1300
- })) && input3.mclassExcludeLst.map((elem, _index24) => "Blank" === elem || "WT" === elem || "CNV_amp" === elem || "CNV_loss" === elem || "CNV_loh" === elem || "CNV_amplification" === elem || "CNV_homozygous_deletion" === elem || $report(_exceptionable2, {
1301
- path: _path2 + ".mclassExcludeLst[" + _index24 + "]",
1312
+ })) && input3.mclassExcludeLst.map((elem, _index25) => "Blank" === elem || "WT" === elem || "CNV_amp" === elem || "CNV_loss" === elem || "CNV_loh" === elem || "CNV_amplification" === elem || "CNV_homozygous_deletion" === elem || $report(_exceptionable2, {
1313
+ path: _path2 + ".mclassExcludeLst[" + _index25 + "]",
1302
1314
  expected: '("Blank" | "CNV_amp" | "CNV_amplification" | "CNV_homozygous_deletion" | "CNV_loh" | "CNV_loss" | "WT")',
1303
1315
  value: elem
1304
1316
  })).every((flag) => flag) || $report(_exceptionable2, {
@@ -1318,8 +1330,8 @@ var validViolinRequest = (input) => {
1318
1330
  path: _path2 + ".mclassLst",
1319
1331
  expected: "Array<SVClasses>",
1320
1332
  value: input3.mclassLst
1321
- })) && input3.mclassLst.map((elem, _index25) => "Blank" === elem || "WT" === elem || "SV" === elem || $report(_exceptionable2, {
1322
- path: _path2 + ".mclassLst[" + _index25 + "]",
1333
+ })) && input3.mclassLst.map((elem, _index26) => "Blank" === elem || "WT" === elem || "SV" === elem || $report(_exceptionable2, {
1334
+ path: _path2 + ".mclassLst[" + _index26 + "]",
1323
1335
  expected: '("Blank" | "SV" | "WT")',
1324
1336
  value: elem
1325
1337
  })).every((flag) => flag) || $report(_exceptionable2, {
@@ -1330,8 +1342,8 @@ var validViolinRequest = (input) => {
1330
1342
  path: _path2 + ".mclassExcludeLst",
1331
1343
  expected: "Array<SVClasses>",
1332
1344
  value: input3.mclassExcludeLst
1333
- })) && input3.mclassExcludeLst.map((elem, _index26) => "Blank" === elem || "WT" === elem || "SV" === elem || $report(_exceptionable2, {
1334
- path: _path2 + ".mclassExcludeLst[" + _index26 + "]",
1345
+ })) && input3.mclassExcludeLst.map((elem, _index27) => "Blank" === elem || "WT" === elem || "SV" === elem || $report(_exceptionable2, {
1346
+ path: _path2 + ".mclassExcludeLst[" + _index27 + "]",
1335
1347
  expected: '("Blank" | "SV" | "WT")',
1336
1348
  value: elem
1337
1349
  })).every((flag) => flag) || $report(_exceptionable2, {
@@ -1351,8 +1363,8 @@ var validViolinRequest = (input) => {
1351
1363
  path: _path2 + ".mclassLst",
1352
1364
  expected: "Array<FusionRNAClasses>",
1353
1365
  value: input3.mclassLst
1354
- })) && input3.mclassLst.map((elem, _index27) => "Blank" === elem || "WT" === elem || "Fuserna" === elem || $report(_exceptionable2, {
1355
- path: _path2 + ".mclassLst[" + _index27 + "]",
1366
+ })) && input3.mclassLst.map((elem, _index28) => "Blank" === elem || "WT" === elem || "Fuserna" === elem || $report(_exceptionable2, {
1367
+ path: _path2 + ".mclassLst[" + _index28 + "]",
1356
1368
  expected: '("Blank" | "Fuserna" | "WT")',
1357
1369
  value: elem
1358
1370
  })).every((flag) => flag) || $report(_exceptionable2, {
@@ -1363,8 +1375,8 @@ var validViolinRequest = (input) => {
1363
1375
  path: _path2 + ".mclassExcludeLst",
1364
1376
  expected: "Array<FusionRNAClasses>",
1365
1377
  value: input3.mclassExcludeLst
1366
- })) && input3.mclassExcludeLst.map((elem, _index28) => "Blank" === elem || "WT" === elem || "Fuserna" === elem || $report(_exceptionable2, {
1367
- path: _path2 + ".mclassExcludeLst[" + _index28 + "]",
1378
+ })) && input3.mclassExcludeLst.map((elem, _index29) => "Blank" === elem || "WT" === elem || "Fuserna" === elem || $report(_exceptionable2, {
1379
+ path: _path2 + ".mclassExcludeLst[" + _index29 + "]",
1368
1380
  expected: '("Blank" | "Fuserna" | "WT")',
1369
1381
  value: elem
1370
1382
  })).every((flag) => flag) || $report(_exceptionable2, {
@@ -1417,7 +1429,7 @@ var validViolinRequest = (input) => {
1417
1429
  });
1418
1430
  })();
1419
1431
  const $vu4 = (input3, _path2, _exceptionable2 = true) => (() => {
1420
- if (Array.isArray(input3.lst) && input3.lst.map((elem, _index29) => "object" === typeof elem && null !== elem && $vo7(elem, _path2 + ".lst[" + _index29 + "]", false)).every((flag) => flag))
1432
+ if (Array.isArray(input3.lst) && input3.lst.map((elem, _index30) => "object" === typeof elem && null !== elem && $vo7(elem, _path2 + ".lst[" + _index30 + "]", false)).every((flag) => flag))
1421
1433
  return $vo6(input3, _path2, _exceptionable2);
1422
1434
  return $vo11(input3, _path2, _exceptionable2);
1423
1435
  })();
@@ -1486,13 +1498,31 @@ var validViolinRequest = (input) => {
1486
1498
  var validViolinResponse = (input) => {
1487
1499
  const errors = [];
1488
1500
  const __is = (input2) => {
1501
+ const $join = import_typia.createValidate.join;
1489
1502
  const $io0 = (input3) => "number" === typeof input3.status && "string" === typeof input3.error;
1490
- const $io1 = (input3) => "number" === typeof input3.min && "number" === typeof input3.max && (Array.isArray(input3.plots) && input3.plots.every((elem) => "object" === typeof elem && null !== elem && $io2(elem))) && (void 0 === input3.pvalues || Array.isArray(input3.pvalues) && input3.pvalues.every((elem) => Array.isArray(elem) && elem.every((elem2) => "object" === typeof elem2 && null !== elem2 && false === Array.isArray(elem2) && $io6(elem2)))) && true;
1491
- const $io2 = (input3) => "string" === typeof input3.label && "number" === typeof input3.plotValueCount && "string" === typeof input3.src && (Array.isArray(input3.bins) && input3.bins.every((elem) => "object" === typeof elem && null !== elem && $io3(elem))) && "number" === typeof input3.densityMax && "number" === typeof input3.biggestBin && ("object" === typeof input3.summaryStats && null !== input3.summaryStats && $io4(input3.summaryStats));
1492
- const $io3 = (input3) => "number" === typeof input3.x0 && "number" === typeof input3.x1 && "number" === typeof input3.density;
1493
- const $io4 = (input3) => Array.isArray(input3.values) && input3.values.every((elem) => "object" === typeof elem && null !== elem && $io5(elem));
1494
- const $io5 = (input3) => "string" === typeof input3.id && "string" === typeof input3.label && "number" === typeof input3.value;
1495
- const $io6 = (input3) => (void 0 === input3.value || "string" === typeof input3.value) && (void 0 === input3.html || "string" === typeof input3.html);
1503
+ const $io1 = (input3) => "number" === typeof input3.min && "number" === typeof input3.max && (Array.isArray(input3.plots) && input3.plots.every((elem) => "object" === typeof elem && null !== elem && $io2(elem))) && (void 0 === input3.pvalues || Array.isArray(input3.pvalues) && input3.pvalues.every((elem) => Array.isArray(elem) && elem.every((elem2) => "object" === typeof elem2 && null !== elem2 && false === Array.isArray(elem2) && $io8(elem2)))) && (null === input3.uncomputableValueObj || Array.isArray(input3.uncomputableValueObj) && input3.uncomputableValueObj.every((elem) => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io9(elem)));
1504
+ const $io2 = (input3) => "string" === typeof input3.color && ("object" === typeof input3.density && null !== input3.density && $io3(input3.density)) && true && "string" === typeof input3.label && "number" === typeof input3.plotValueCount && "string" === typeof input3.seriesId && "string" === typeof input3.src && ("object" === typeof input3.summaryStats && null !== input3.summaryStats && $io5(input3.summaryStats)) && (null === input3.uncomputableValueObj || "object" === typeof input3.uncomputableValueObj && null !== input3.uncomputableValueObj && false === Array.isArray(input3.uncomputableValueObj) && $io7(input3.uncomputableValueObj));
1505
+ const $io3 = (input3) => Array.isArray(input3.bins) && input3.bins.every((elem) => "object" === typeof elem && null !== elem && $io4(elem)) && "number" === typeof input3.densityMax && "number" === typeof input3.densityMin;
1506
+ const $io4 = (input3) => "number" === typeof input3.x0 && "number" === typeof input3.x1 && "number" === typeof input3.density;
1507
+ const $io5 = (input3) => Array.isArray(input3.values) && input3.values.every((elem) => "object" === typeof elem && null !== elem && $io6(elem));
1508
+ const $io6 = (input3) => "string" === typeof input3.id && "string" === typeof input3.label && "number" === typeof input3.value;
1509
+ const $io7 = (input3) => Object.keys(input3).every((key) => {
1510
+ const value = input3[key];
1511
+ if (void 0 === value)
1512
+ return true;
1513
+ if (RegExp(/(.*)/).test(key))
1514
+ return "number" === typeof value;
1515
+ return true;
1516
+ });
1517
+ const $io8 = (input3) => (void 0 === input3.value || "string" === typeof input3.value) && (void 0 === input3.html || "string" === typeof input3.html);
1518
+ const $io9 = (input3) => Object.keys(input3).every((key) => {
1519
+ const value = input3[key];
1520
+ if (void 0 === value)
1521
+ return true;
1522
+ if (RegExp(/(.*)/).test(key))
1523
+ return "number" === typeof value;
1524
+ return true;
1525
+ });
1496
1526
  const $iu0 = (input3) => (() => {
1497
1527
  if (void 0 !== input3.status)
1498
1528
  return $io0(input3);
@@ -1505,6 +1535,7 @@ var validViolinResponse = (input) => {
1505
1535
  if (false === __is(input)) {
1506
1536
  const $report = import_typia.createValidate.report(errors);
1507
1537
  ((input2, _path, _exceptionable = true) => {
1538
+ const $join = import_typia.createValidate.join;
1508
1539
  const $vo0 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.status || $report(_exceptionable2, {
1509
1540
  path: _path2 + ".status",
1510
1541
  expected: "number",
@@ -1524,46 +1555,74 @@ var validViolinResponse = (input) => {
1524
1555
  value: input3.max
1525
1556
  }), (Array.isArray(input3.plots) || $report(_exceptionable2, {
1526
1557
  path: _path2 + ".plots",
1527
- expected: "Array<plot>",
1558
+ expected: "Array<ViolinPlotEntry>",
1528
1559
  value: input3.plots
1529
1560
  })) && input3.plots.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
1530
1561
  path: _path2 + ".plots[" + _index1 + "]",
1531
- expected: "plot",
1562
+ expected: "ViolinPlotEntry",
1532
1563
  value: elem
1533
1564
  })) && $vo2(elem, _path2 + ".plots[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
1534
1565
  path: _path2 + ".plots[" + _index1 + "]",
1535
- expected: "plot",
1566
+ expected: "ViolinPlotEntry",
1536
1567
  value: elem
1537
1568
  })).every((flag) => flag) || $report(_exceptionable2, {
1538
1569
  path: _path2 + ".plots",
1539
- expected: "Array<plot>",
1570
+ expected: "Array<ViolinPlotEntry>",
1540
1571
  value: input3.plots
1541
1572
  }), void 0 === input3.pvalues || (Array.isArray(input3.pvalues) || $report(_exceptionable2, {
1542
1573
  path: _path2 + ".pvalues",
1543
- expected: "(Array<Array<pvalueEntries>> | undefined)",
1574
+ expected: "(Array<Array<PValueEntries>> | undefined)",
1544
1575
  value: input3.pvalues
1545
1576
  })) && input3.pvalues.map((elem, _index2) => (Array.isArray(elem) || $report(_exceptionable2, {
1546
1577
  path: _path2 + ".pvalues[" + _index2 + "]",
1547
- expected: "Array<pvalueEntries>",
1578
+ expected: "Array<PValueEntries>",
1548
1579
  value: elem
1549
1580
  })) && elem.map((elem2, _index3) => ("object" === typeof elem2 && null !== elem2 && false === Array.isArray(elem2) || $report(_exceptionable2, {
1550
1581
  path: _path2 + ".pvalues[" + _index2 + "][" + _index3 + "]",
1551
- expected: "pvalueEntries",
1582
+ expected: "PValueEntries",
1552
1583
  value: elem2
1553
- })) && $vo6(elem2, _path2 + ".pvalues[" + _index2 + "][" + _index3 + "]", _exceptionable2) || $report(_exceptionable2, {
1584
+ })) && $vo8(elem2, _path2 + ".pvalues[" + _index2 + "][" + _index3 + "]", _exceptionable2) || $report(_exceptionable2, {
1554
1585
  path: _path2 + ".pvalues[" + _index2 + "][" + _index3 + "]",
1555
- expected: "pvalueEntries",
1586
+ expected: "PValueEntries",
1556
1587
  value: elem2
1557
1588
  })).every((flag) => flag) || $report(_exceptionable2, {
1558
1589
  path: _path2 + ".pvalues[" + _index2 + "]",
1559
- expected: "Array<pvalueEntries>",
1590
+ expected: "Array<PValueEntries>",
1560
1591
  value: elem
1561
1592
  })).every((flag) => flag) || $report(_exceptionable2, {
1562
1593
  path: _path2 + ".pvalues",
1563
- expected: "(Array<Array<pvalueEntries>> | undefined)",
1594
+ expected: "(Array<Array<PValueEntries>> | undefined)",
1564
1595
  value: input3.pvalues
1565
- }), true].every((flag) => flag);
1566
- const $vo2 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.label || $report(_exceptionable2, {
1596
+ }), null === input3.uncomputableValueObj || (Array.isArray(input3.uncomputableValueObj) || $report(_exceptionable2, {
1597
+ path: _path2 + ".uncomputableValueObj",
1598
+ expected: "(Array<__type> | null)",
1599
+ value: input3.uncomputableValueObj
1600
+ })) && input3.uncomputableValueObj.map((elem, _index4) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable2, {
1601
+ path: _path2 + ".uncomputableValueObj[" + _index4 + "]",
1602
+ expected: "__type.o2",
1603
+ value: elem
1604
+ })) && $vo9(elem, _path2 + ".uncomputableValueObj[" + _index4 + "]", _exceptionable2) || $report(_exceptionable2, {
1605
+ path: _path2 + ".uncomputableValueObj[" + _index4 + "]",
1606
+ expected: "__type.o2",
1607
+ value: elem
1608
+ })).every((flag) => flag) || $report(_exceptionable2, {
1609
+ path: _path2 + ".uncomputableValueObj",
1610
+ expected: "(Array<__type> | null)",
1611
+ value: input3.uncomputableValueObj
1612
+ })].every((flag) => flag);
1613
+ const $vo2 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.color || $report(_exceptionable2, {
1614
+ path: _path2 + ".color",
1615
+ expected: "string",
1616
+ value: input3.color
1617
+ }), ("object" === typeof input3.density && null !== input3.density || $report(_exceptionable2, {
1618
+ path: _path2 + ".density",
1619
+ expected: "ViolinDensity",
1620
+ value: input3.density
1621
+ })) && $vo3(input3.density, _path2 + ".density", _exceptionable2) || $report(_exceptionable2, {
1622
+ path: _path2 + ".density",
1623
+ expected: "ViolinDensity",
1624
+ value: input3.density
1625
+ }), true, "string" === typeof input3.label || $report(_exceptionable2, {
1567
1626
  path: _path2 + ".label",
1568
1627
  expected: "string",
1569
1628
  value: input3.label
@@ -1571,44 +1630,57 @@ var validViolinResponse = (input) => {
1571
1630
  path: _path2 + ".plotValueCount",
1572
1631
  expected: "number",
1573
1632
  value: input3.plotValueCount
1633
+ }), "string" === typeof input3.seriesId || $report(_exceptionable2, {
1634
+ path: _path2 + ".seriesId",
1635
+ expected: "string",
1636
+ value: input3.seriesId
1574
1637
  }), "string" === typeof input3.src || $report(_exceptionable2, {
1575
1638
  path: _path2 + ".src",
1576
1639
  expected: "string",
1577
1640
  value: input3.src
1578
- }), (Array.isArray(input3.bins) || $report(_exceptionable2, {
1641
+ }), ("object" === typeof input3.summaryStats && null !== input3.summaryStats || $report(_exceptionable2, {
1642
+ path: _path2 + ".summaryStats",
1643
+ expected: "__type",
1644
+ value: input3.summaryStats
1645
+ })) && $vo5(input3.summaryStats, _path2 + ".summaryStats", _exceptionable2) || $report(_exceptionable2, {
1646
+ path: _path2 + ".summaryStats",
1647
+ expected: "__type",
1648
+ value: input3.summaryStats
1649
+ }), null === input3.uncomputableValueObj || ("object" === typeof input3.uncomputableValueObj && null !== input3.uncomputableValueObj && false === Array.isArray(input3.uncomputableValueObj) || $report(_exceptionable2, {
1650
+ path: _path2 + ".uncomputableValueObj",
1651
+ expected: "(__type.o1 | null)",
1652
+ value: input3.uncomputableValueObj
1653
+ })) && $vo7(input3.uncomputableValueObj, _path2 + ".uncomputableValueObj", _exceptionable2) || $report(_exceptionable2, {
1654
+ path: _path2 + ".uncomputableValueObj",
1655
+ expected: "(__type.o1 | null)",
1656
+ value: input3.uncomputableValueObj
1657
+ })].every((flag) => flag);
1658
+ const $vo3 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.bins) || $report(_exceptionable2, {
1579
1659
  path: _path2 + ".bins",
1580
- expected: "Array<binsEntries>",
1660
+ expected: "Array<BinsEntries>",
1581
1661
  value: input3.bins
1582
- })) && input3.bins.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
1583
- path: _path2 + ".bins[" + _index4 + "]",
1584
- expected: "binsEntries",
1662
+ })) && input3.bins.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
1663
+ path: _path2 + ".bins[" + _index5 + "]",
1664
+ expected: "BinsEntries",
1585
1665
  value: elem
1586
- })) && $vo3(elem, _path2 + ".bins[" + _index4 + "]", _exceptionable2) || $report(_exceptionable2, {
1587
- path: _path2 + ".bins[" + _index4 + "]",
1588
- expected: "binsEntries",
1666
+ })) && $vo4(elem, _path2 + ".bins[" + _index5 + "]", _exceptionable2) || $report(_exceptionable2, {
1667
+ path: _path2 + ".bins[" + _index5 + "]",
1668
+ expected: "BinsEntries",
1589
1669
  value: elem
1590
1670
  })).every((flag) => flag) || $report(_exceptionable2, {
1591
1671
  path: _path2 + ".bins",
1592
- expected: "Array<binsEntries>",
1672
+ expected: "Array<BinsEntries>",
1593
1673
  value: input3.bins
1594
1674
  }), "number" === typeof input3.densityMax || $report(_exceptionable2, {
1595
1675
  path: _path2 + ".densityMax",
1596
1676
  expected: "number",
1597
1677
  value: input3.densityMax
1598
- }), "number" === typeof input3.biggestBin || $report(_exceptionable2, {
1599
- path: _path2 + ".biggestBin",
1678
+ }), "number" === typeof input3.densityMin || $report(_exceptionable2, {
1679
+ path: _path2 + ".densityMin",
1600
1680
  expected: "number",
1601
- value: input3.biggestBin
1602
- }), ("object" === typeof input3.summaryStats && null !== input3.summaryStats || $report(_exceptionable2, {
1603
- path: _path2 + ".summaryStats",
1604
- expected: "__type",
1605
- value: input3.summaryStats
1606
- })) && $vo4(input3.summaryStats, _path2 + ".summaryStats", _exceptionable2) || $report(_exceptionable2, {
1607
- path: _path2 + ".summaryStats",
1608
- expected: "__type",
1609
- value: input3.summaryStats
1681
+ value: input3.densityMin
1610
1682
  })].every((flag) => flag);
1611
- const $vo3 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.x0 || $report(_exceptionable2, {
1683
+ const $vo4 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.x0 || $report(_exceptionable2, {
1612
1684
  path: _path2 + ".x0",
1613
1685
  expected: "number",
1614
1686
  value: input3.x0
@@ -1621,24 +1693,24 @@ var validViolinResponse = (input) => {
1621
1693
  expected: "number",
1622
1694
  value: input3.density
1623
1695
  })].every((flag) => flag);
1624
- const $vo4 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.values) || $report(_exceptionable2, {
1696
+ const $vo5 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.values) || $report(_exceptionable2, {
1625
1697
  path: _path2 + ".values",
1626
- expected: "Array<valuesEntries>",
1698
+ expected: "Array<ValuesEntries>",
1627
1699
  value: input3.values
1628
- })) && input3.values.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
1629
- path: _path2 + ".values[" + _index5 + "]",
1630
- expected: "valuesEntries",
1700
+ })) && input3.values.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
1701
+ path: _path2 + ".values[" + _index6 + "]",
1702
+ expected: "ValuesEntries",
1631
1703
  value: elem
1632
- })) && $vo5(elem, _path2 + ".values[" + _index5 + "]", _exceptionable2) || $report(_exceptionable2, {
1633
- path: _path2 + ".values[" + _index5 + "]",
1634
- expected: "valuesEntries",
1704
+ })) && $vo6(elem, _path2 + ".values[" + _index6 + "]", _exceptionable2) || $report(_exceptionable2, {
1705
+ path: _path2 + ".values[" + _index6 + "]",
1706
+ expected: "ValuesEntries",
1635
1707
  value: elem
1636
1708
  })).every((flag) => flag) || $report(_exceptionable2, {
1637
1709
  path: _path2 + ".values",
1638
- expected: "Array<valuesEntries>",
1710
+ expected: "Array<ValuesEntries>",
1639
1711
  value: input3.values
1640
1712
  })].every((flag) => flag);
1641
- const $vo5 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.id || $report(_exceptionable2, {
1713
+ const $vo6 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.id || $report(_exceptionable2, {
1642
1714
  path: _path2 + ".id",
1643
1715
  expected: "string",
1644
1716
  value: input3.id
@@ -1651,7 +1723,19 @@ var validViolinResponse = (input) => {
1651
1723
  expected: "number",
1652
1724
  value: input3.value
1653
1725
  })].every((flag) => flag);
1654
- const $vo6 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.value || "string" === typeof input3.value || $report(_exceptionable2, {
1726
+ const $vo7 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
1727
+ const value = input3[key];
1728
+ if (void 0 === value)
1729
+ return true;
1730
+ if (RegExp(/(.*)/).test(key))
1731
+ return "number" === typeof value || $report(_exceptionable2, {
1732
+ path: _path2 + $join(key),
1733
+ expected: "number",
1734
+ value
1735
+ });
1736
+ return true;
1737
+ }).every((flag) => flag)].every((flag) => flag);
1738
+ const $vo8 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.value || "string" === typeof input3.value || $report(_exceptionable2, {
1655
1739
  path: _path2 + ".value",
1656
1740
  expected: "(string | undefined)",
1657
1741
  value: input3.value
@@ -1660,6 +1744,18 @@ var validViolinResponse = (input) => {
1660
1744
  expected: "(string | undefined)",
1661
1745
  value: input3.html
1662
1746
  })].every((flag) => flag);
1747
+ const $vo9 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
1748
+ const value = input3[key];
1749
+ if (void 0 === value)
1750
+ return true;
1751
+ if (RegExp(/(.*)/).test(key))
1752
+ return "number" === typeof value || $report(_exceptionable2, {
1753
+ path: _path2 + $join(key),
1754
+ expected: "number",
1755
+ value
1756
+ });
1757
+ return true;
1758
+ }).every((flag) => flag)].every((flag) => flag);
1663
1759
  const $vu0 = (input3, _path2, _exceptionable2 = true) => (() => {
1664
1760
  if (void 0 !== input3.status)
1665
1761
  return $vo0(input3, _path2, _exceptionable2);
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  validViolinRequest,
8
8
  validViolinResponse,
9
9
  violinPayload
10
- } from "./chunk-MRCMGCVR.js";
10
+ } from "./chunk-SRDMLS6D.js";
11
11
  import {
12
12
  tilePayload,
13
13
  validTileRequest,
@@ -132,7 +132,7 @@ import {
132
132
  boxplotPayload,
133
133
  validBoxPlotRequest,
134
134
  validBoxPlotResponse
135
- } from "./chunk-RIJYASPK.js";
135
+ } from "./chunk-OAO3UWUX.js";
136
136
  import {
137
137
  gdcTopMutatedGenePayload,
138
138
  validGdcTopMutatedGeneRequest,
@@ -2,7 +2,7 @@ import {
2
2
  boxplotPayload,
3
3
  validBoxPlotRequest,
4
4
  validBoxPlotResponse
5
- } from "./chunk-RIJYASPK.js";
5
+ } from "./chunk-OAO3UWUX.js";
6
6
  import "./chunk-Z6B6IQIY.js";
7
7
  export {
8
8
  boxplotPayload,
@@ -2,7 +2,7 @@ import {
2
2
  validViolinRequest,
3
3
  validViolinResponse,
4
4
  violinPayload
5
- } from "./chunk-MRCMGCVR.js";
5
+ } from "./chunk-SRDMLS6D.js";
6
6
  import "./chunk-Z6B6IQIY.js";
7
7
  export {
8
8
  validViolinRequest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.96.2-0",
3
+ "version": "2.98.0",
4
4
  "type": "module",
5
5
  "description": "Shared type definitions between ProteinPaint server and client code",
6
6
  "main": "src/index.ts",
package/src/index.ts CHANGED
@@ -3,6 +3,7 @@ export * from './genome.ts'
3
3
  export * from './dataset.ts'
4
4
  export * from './termsetting.ts'
5
5
  export * from './filter.ts'
6
+ export * from './termdb.matrix.ts'
6
7
  export * from './routes/routeApi.ts'
7
8
  export * from './routes/brainImaging.ts'
8
9
  export * from './routes/brainImagingSamples.ts'
@@ -76,6 +76,57 @@ export const boxplotPayload: RoutePayload = {
76
76
  },
77
77
  response: {
78
78
  typeId: 'BoxPlotResponse'
79
- }
80
- //examples: []
79
+ },
80
+ examples: [
81
+ {
82
+ request: {
83
+ body: {
84
+ tw: {
85
+ term: { id: 'subcohort', type: 'categorical' },
86
+ values: [{ key: 'ABC', label: 'ABC' }]
87
+ },
88
+ genome: 'hg38-test',
89
+ dslabel: 'TermdbTest',
90
+ orderByMedian: true
91
+ }
92
+ },
93
+ response: {
94
+ body: {
95
+ absMin: 0,
96
+ absMax: 100,
97
+ plots: [
98
+ {
99
+ boxplot: {
100
+ label: 'ABC',
101
+ w1: 0,
102
+ w2: 100,
103
+ p05: 0,
104
+ p25: 25,
105
+ p50: 50,
106
+ p75: 75,
107
+ p95: 100,
108
+ iqr: 50,
109
+ out: [101, 102, 106]
110
+ },
111
+ color: 'blue',
112
+ descrStats: [
113
+ { id: 'total', label: 'Total', value: 100 },
114
+ { id: 'min', label: 'Min', value: 0 },
115
+ { id: 'p25', label: '25%', value: 25 },
116
+ { id: 'median', label: 'Median', value: 50 },
117
+ { id: 'mean', label: 'Mean', value: 50 },
118
+ { id: 'p75', label: '75%', value: 75 },
119
+ { id: 'max', label: 'Max', value: 100 },
120
+ { id: 'sd', label: 'SD', value: 0 },
121
+ { id: 'variance', label: 'Variance', value: 0 },
122
+ { id: 'iqr', label: 'IQR', value: 50 }
123
+ ],
124
+ key: 'ABC'
125
+ }
126
+ ],
127
+ uncomputableValues: [{ label: 'uncomputable-test', value: 1 }]
128
+ }
129
+ }
130
+ }
131
+ ]
81
132
  }
@@ -3,75 +3,109 @@ import type { Filter } from '../filter.ts'
3
3
  import type { ErrorResponse } from './errorResponse.ts'
4
4
 
5
5
  export type ViolinRequest = {
6
- genome: string
7
- dslabel: string
8
- embedder: string
9
- /** main tw to fetch numeric data to show in violin */
10
- tw: any
6
+ /** A number representing the dimension perpendicular to the violin spread
7
+ * (the height of the axis) */
8
+ axisHeight: number
9
+ /** ?? TODO: Needs description */
10
+ currentGeneNames: string[]
11
+ /** A string representing the type of symbol used on the plot, which can be
12
+ * either 'circles' or 'rugs' */
13
+ datasymbol: string
14
+ /** A number representing the device's pixel ratio, which may be used for
15
+ * rendering quality adjustments */
16
+ devicePixelRatio: number
11
17
  /** optional tw to divide tw data into multiple violins and show under one axis */
12
18
  divideTw?: any
13
- /** A number representing the device's pixel ratio, which may be used for rendering quality adjustments */
14
- devicePixelRatio: number
19
+ /** Reference label (i.e. short label) for the ds */
20
+ dslabel: string
15
21
  /** optional mass filter */
16
22
  filter?: Filter
17
23
  /** optional read-only invisible filter TODO GdcFilter0 */
18
24
  filter0?: any
19
- /** A number representing the width of the SVG (Scalable Vector Graphics) box, used for rendering the chart */
20
- svgw: number
21
- /** A string with two possible values: 'horizontal' or 'vertical', indicating the orientation of the chart, either horizontal or vertical */
25
+ /** Reference label */
26
+ genome: string
27
+ /** If true, uses KDE method to build plot. Otherwise a histogram is rendered */
28
+ isKDE: boolean
29
+ /** A string with two possible values: 'horizontal' or 'vertical',
30
+ * indicating the orientation of the chart, either horizontal or vertical */
22
31
  orientation: 'horizontal' | 'vertical'
23
- /** A string representing the type of symbol used on the plot, which can be either 'circles' or 'rugs' */
24
- datasymbol: string
25
32
  /** A number representing the radius of the data symbols rendered on the plot */
26
33
  radius: number
27
- /** A number representing the width of the stroke used to generate the data symbols (data symbols are rendered on the server side) */
28
- strokeWidth: number
29
- /** A number representing the dimension perpendicular to the violin spread (the height of the axis) */
30
- axisHeight: number
31
34
  /** A number representing the right margin of the chart or plot */
32
35
  rightMargin: number
36
+ /** Term may be scaled from regression analysis. Equivalent of term.q.scale */
37
+ scale?: any
38
+ /** A number representing the width of the stroke used to generate the data symbols
39
+ * (data symbols are rendered on the server side) */
40
+ strokeWidth: number
41
+ /** A number representing the width of the SVG (Scalable Vector Graphics) box, used for
42
+ * rendering the chart */
43
+ svgw: number
44
+ /** Number of bins to build the plot. Default is 20. */
45
+ ticks: number
46
+ /** main tw to fetch numeric data to show in violin */
47
+ tw: any
33
48
  /** A string representing a unit of measurement (e.g., 'log' for log scale) */
34
49
  unit: string
35
- /** ?? */
36
- isKDE: boolean
37
50
  }
38
51
 
39
- interface binsEntries {
52
+ /** ?? TODO: Needs description */
53
+ interface BinsEntries {
40
54
  x0: number
41
55
  x1: number
42
56
  density: number
43
57
  }
44
- interface valuesEntries {
58
+
59
+ /** ?? TODO: Needs description */
60
+ interface ValuesEntries {
45
61
  id: string
46
62
  label: string
47
63
  value: number
48
64
  }
49
65
 
50
- interface pvalueEntries {
66
+ /** Computed in wilcoxon to show in table */
67
+ interface PValueEntries {
51
68
  value?: string
52
69
  html?: string
53
70
  }
54
71
 
55
- type plot = {
72
+ /** ?? TODO: Needs description */
73
+ type ViolinDensity = {
74
+ bins: BinsEntries[]
75
+ densityMax: number
76
+ densityMin: number
77
+ }
78
+
79
+ export type ViolinPlotEntry = {
80
+ /** Color to render */
81
+ color: string
82
+ density: ViolinDensity
83
+ divideTwBins: any
84
+ /** Text for label */
56
85
  label: string
86
+ /** Number of samples/cases/patients/etc. */
57
87
  plotValueCount: number
88
+ /** Cooresponds to the tw.$id */
89
+ seriesId: string
90
+ /** Plot image to display */
58
91
  src: string
59
- bins: binsEntries[]
60
- densityMax: number
61
- biggestBin: number
62
92
  summaryStats: {
63
- values: valuesEntries[]
93
+ /** Descriptive stats (i.e. min, max, sd, etc.) */
94
+ values: ValuesEntries[]
64
95
  }
96
+ uncomputableValueObj: { [index: string]: number } | null
65
97
  }
66
98
 
67
99
  export type ViolinResponse = ValidResponse | ErrorResponse
68
100
 
69
101
  type ValidResponse = {
102
+ /** Absolute min value for all plots */
70
103
  min: number
104
+ /** Absolute max value for all plots */
71
105
  max: number
72
- plots: plot[]
73
- pvalues?: pvalueEntries[][]
74
- uncomputableValueObj: any
106
+ plots: ViolinPlotEntry[]
107
+ pvalues?: PValueEntries[][]
108
+ uncomputableValueObj: { [index: string]: number }[] | null
75
109
  }
76
110
 
77
111
  export const violinPayload: RoutePayload = {
@@ -0,0 +1,45 @@
1
+ /******* server/src/termdb.matrix.js is ~not~ a route *****
2
+ * getData() is used frequently in other routes or typescript files.
3
+ * Although the original file is 1) not ts and 2) not a route, a type
4
+ * is still needed when func used in other ts files.
5
+ *
6
+ * Use this type for that purpose.
7
+ */
8
+
9
+ export type ValidGetDataResponse = {
10
+ samples: Record<
11
+ string,
12
+ {
13
+ /** stringified integer sample id */
14
+ key: number
15
+ /** value: {
16
+ sample: integerId,
17
+ <tw.$id>: {key, value},
18
+ <more terms...>
19
+ } */
20
+ value: number
21
+ }
22
+ >
23
+ /** Metadata */
24
+ refs: {
25
+ /** metadata about terms
26
+ * Index is <tw.$id> */
27
+ byTermId: Record<
28
+ string,
29
+ {
30
+ keyOrder?: any
31
+ /** CTE.bins */
32
+ bins?: any
33
+ /** CTE.events. These info are not available in term object and is computed during run time. */
34
+ events?: any
35
+ }
36
+ >
37
+ /** metadata about samples (e.g. print names). avoid duplicating such in sample data elements (e.g. mutations)
38
+ [sample integer id]: {label: [string sample name for display], ...}
39
+ May return as an empty object. */
40
+ bySampleId: Record<string, { label: string }> | object
41
+ }
42
+ sampleType?: any
43
+ }
44
+
45
+ export type GetDataResponse = ValidGetDataResponse | { error: string }