@sjcrh/proteinpaint-types 2.96.2-0 → 2.98.1-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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,22 @@ 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));
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) && $io6(elem2)))) && (null === input3.uncomputableValues || Array.isArray(input3.uncomputableValues) && input3.uncomputableValues.every((elem) => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io7(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 && (Array.isArray(input3.summaryStats) && input3.summaryStats.every((elem) => "object" === typeof elem && null !== elem && $io5(elem)));
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;
1494
1507
  const $io5 = (input3) => "string" === typeof input3.id && "string" === typeof input3.label && "number" === typeof input3.value;
1495
1508
  const $io6 = (input3) => (void 0 === input3.value || "string" === typeof input3.value) && (void 0 === input3.html || "string" === typeof input3.html);
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
+ });
1496
1517
  const $iu0 = (input3) => (() => {
1497
1518
  if (void 0 !== input3.status)
1498
1519
  return $io0(input3);
@@ -1505,6 +1526,7 @@ var validViolinResponse = (input) => {
1505
1526
  if (false === __is(input)) {
1506
1527
  const $report = import_typia.createValidate.report(errors);
1507
1528
  ((input2, _path, _exceptionable = true) => {
1529
+ const $join = import_typia.createValidate.join;
1508
1530
  const $vo0 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.status || $report(_exceptionable2, {
1509
1531
  path: _path2 + ".status",
1510
1532
  expected: "number",
@@ -1524,46 +1546,74 @@ var validViolinResponse = (input) => {
1524
1546
  value: input3.max
1525
1547
  }), (Array.isArray(input3.plots) || $report(_exceptionable2, {
1526
1548
  path: _path2 + ".plots",
1527
- expected: "Array<plot>",
1549
+ expected: "Array<ViolinPlotEntry>",
1528
1550
  value: input3.plots
1529
1551
  })) && input3.plots.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
1530
1552
  path: _path2 + ".plots[" + _index1 + "]",
1531
- expected: "plot",
1553
+ expected: "ViolinPlotEntry",
1532
1554
  value: elem
1533
1555
  })) && $vo2(elem, _path2 + ".plots[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
1534
1556
  path: _path2 + ".plots[" + _index1 + "]",
1535
- expected: "plot",
1557
+ expected: "ViolinPlotEntry",
1536
1558
  value: elem
1537
1559
  })).every((flag) => flag) || $report(_exceptionable2, {
1538
1560
  path: _path2 + ".plots",
1539
- expected: "Array<plot>",
1561
+ expected: "Array<ViolinPlotEntry>",
1540
1562
  value: input3.plots
1541
1563
  }), void 0 === input3.pvalues || (Array.isArray(input3.pvalues) || $report(_exceptionable2, {
1542
1564
  path: _path2 + ".pvalues",
1543
- expected: "(Array<Array<pvalueEntries>> | undefined)",
1565
+ expected: "(Array<Array<PValueEntries>> | undefined)",
1544
1566
  value: input3.pvalues
1545
1567
  })) && input3.pvalues.map((elem, _index2) => (Array.isArray(elem) || $report(_exceptionable2, {
1546
1568
  path: _path2 + ".pvalues[" + _index2 + "]",
1547
- expected: "Array<pvalueEntries>",
1569
+ expected: "Array<PValueEntries>",
1548
1570
  value: elem
1549
1571
  })) && elem.map((elem2, _index3) => ("object" === typeof elem2 && null !== elem2 && false === Array.isArray(elem2) || $report(_exceptionable2, {
1550
1572
  path: _path2 + ".pvalues[" + _index2 + "][" + _index3 + "]",
1551
- expected: "pvalueEntries",
1573
+ expected: "PValueEntries",
1552
1574
  value: elem2
1553
1575
  })) && $vo6(elem2, _path2 + ".pvalues[" + _index2 + "][" + _index3 + "]", _exceptionable2) || $report(_exceptionable2, {
1554
1576
  path: _path2 + ".pvalues[" + _index2 + "][" + _index3 + "]",
1555
- expected: "pvalueEntries",
1577
+ expected: "PValueEntries",
1556
1578
  value: elem2
1557
1579
  })).every((flag) => flag) || $report(_exceptionable2, {
1558
1580
  path: _path2 + ".pvalues[" + _index2 + "]",
1559
- expected: "Array<pvalueEntries>",
1581
+ expected: "Array<PValueEntries>",
1560
1582
  value: elem
1561
1583
  })).every((flag) => flag) || $report(_exceptionable2, {
1562
1584
  path: _path2 + ".pvalues",
1563
- expected: "(Array<Array<pvalueEntries>> | undefined)",
1585
+ expected: "(Array<Array<PValueEntries>> | undefined)",
1564
1586
  value: input3.pvalues
1565
- }), true].every((flag) => flag);
1566
- const $vo2 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.label || $report(_exceptionable2, {
1587
+ }), null === input3.uncomputableValues || (Array.isArray(input3.uncomputableValues) || $report(_exceptionable2, {
1588
+ path: _path2 + ".uncomputableValues",
1589
+ expected: "(Array<__type> | null)",
1590
+ value: input3.uncomputableValues
1591
+ })) && input3.uncomputableValues.map((elem, _index4) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable2, {
1592
+ path: _path2 + ".uncomputableValues[" + _index4 + "]",
1593
+ expected: "__type",
1594
+ value: elem
1595
+ })) && $vo7(elem, _path2 + ".uncomputableValues[" + _index4 + "]", _exceptionable2) || $report(_exceptionable2, {
1596
+ path: _path2 + ".uncomputableValues[" + _index4 + "]",
1597
+ expected: "__type",
1598
+ value: elem
1599
+ })).every((flag) => flag) || $report(_exceptionable2, {
1600
+ path: _path2 + ".uncomputableValues",
1601
+ expected: "(Array<__type> | null)",
1602
+ value: input3.uncomputableValues
1603
+ })].every((flag) => flag);
1604
+ const $vo2 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.color || $report(_exceptionable2, {
1605
+ path: _path2 + ".color",
1606
+ expected: "string",
1607
+ value: input3.color
1608
+ }), ("object" === typeof input3.density && null !== input3.density || $report(_exceptionable2, {
1609
+ path: _path2 + ".density",
1610
+ expected: "ViolinDensity",
1611
+ value: input3.density
1612
+ })) && $vo3(input3.density, _path2 + ".density", _exceptionable2) || $report(_exceptionable2, {
1613
+ path: _path2 + ".density",
1614
+ expected: "ViolinDensity",
1615
+ value: input3.density
1616
+ }), true, "string" === typeof input3.label || $report(_exceptionable2, {
1567
1617
  path: _path2 + ".label",
1568
1618
  expected: "string",
1569
1619
  value: input3.label
@@ -1571,44 +1621,57 @@ var validViolinResponse = (input) => {
1571
1621
  path: _path2 + ".plotValueCount",
1572
1622
  expected: "number",
1573
1623
  value: input3.plotValueCount
1624
+ }), "string" === typeof input3.seriesId || $report(_exceptionable2, {
1625
+ path: _path2 + ".seriesId",
1626
+ expected: "string",
1627
+ value: input3.seriesId
1574
1628
  }), "string" === typeof input3.src || $report(_exceptionable2, {
1575
1629
  path: _path2 + ".src",
1576
1630
  expected: "string",
1577
1631
  value: input3.src
1578
- }), (Array.isArray(input3.bins) || $report(_exceptionable2, {
1632
+ }), (Array.isArray(input3.summaryStats) || $report(_exceptionable2, {
1633
+ path: _path2 + ".summaryStats",
1634
+ expected: "Array<ValuesEntries>",
1635
+ value: input3.summaryStats
1636
+ })) && input3.summaryStats.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
1637
+ path: _path2 + ".summaryStats[" + _index5 + "]",
1638
+ expected: "ValuesEntries",
1639
+ value: elem
1640
+ })) && $vo5(elem, _path2 + ".summaryStats[" + _index5 + "]", _exceptionable2) || $report(_exceptionable2, {
1641
+ path: _path2 + ".summaryStats[" + _index5 + "]",
1642
+ expected: "ValuesEntries",
1643
+ value: elem
1644
+ })).every((flag) => flag) || $report(_exceptionable2, {
1645
+ path: _path2 + ".summaryStats",
1646
+ expected: "Array<ValuesEntries>",
1647
+ value: input3.summaryStats
1648
+ })].every((flag) => flag);
1649
+ const $vo3 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.bins) || $report(_exceptionable2, {
1579
1650
  path: _path2 + ".bins",
1580
- expected: "Array<binsEntries>",
1651
+ expected: "Array<BinsEntries>",
1581
1652
  value: input3.bins
1582
- })) && input3.bins.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
1583
- path: _path2 + ".bins[" + _index4 + "]",
1584
- expected: "binsEntries",
1653
+ })) && input3.bins.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
1654
+ path: _path2 + ".bins[" + _index6 + "]",
1655
+ expected: "BinsEntries",
1585
1656
  value: elem
1586
- })) && $vo3(elem, _path2 + ".bins[" + _index4 + "]", _exceptionable2) || $report(_exceptionable2, {
1587
- path: _path2 + ".bins[" + _index4 + "]",
1588
- expected: "binsEntries",
1657
+ })) && $vo4(elem, _path2 + ".bins[" + _index6 + "]", _exceptionable2) || $report(_exceptionable2, {
1658
+ path: _path2 + ".bins[" + _index6 + "]",
1659
+ expected: "BinsEntries",
1589
1660
  value: elem
1590
1661
  })).every((flag) => flag) || $report(_exceptionable2, {
1591
1662
  path: _path2 + ".bins",
1592
- expected: "Array<binsEntries>",
1663
+ expected: "Array<BinsEntries>",
1593
1664
  value: input3.bins
1594
1665
  }), "number" === typeof input3.densityMax || $report(_exceptionable2, {
1595
1666
  path: _path2 + ".densityMax",
1596
1667
  expected: "number",
1597
1668
  value: input3.densityMax
1598
- }), "number" === typeof input3.biggestBin || $report(_exceptionable2, {
1599
- path: _path2 + ".biggestBin",
1669
+ }), "number" === typeof input3.densityMin || $report(_exceptionable2, {
1670
+ path: _path2 + ".densityMin",
1600
1671
  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
1672
+ value: input3.densityMin
1610
1673
  })].every((flag) => flag);
1611
- const $vo3 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.x0 || $report(_exceptionable2, {
1674
+ const $vo4 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.x0 || $report(_exceptionable2, {
1612
1675
  path: _path2 + ".x0",
1613
1676
  expected: "number",
1614
1677
  value: input3.x0
@@ -1621,23 +1684,6 @@ var validViolinResponse = (input) => {
1621
1684
  expected: "number",
1622
1685
  value: input3.density
1623
1686
  })].every((flag) => flag);
1624
- const $vo4 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.values) || $report(_exceptionable2, {
1625
- path: _path2 + ".values",
1626
- expected: "Array<valuesEntries>",
1627
- value: input3.values
1628
- })) && input3.values.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
1629
- path: _path2 + ".values[" + _index5 + "]",
1630
- expected: "valuesEntries",
1631
- value: elem
1632
- })) && $vo5(elem, _path2 + ".values[" + _index5 + "]", _exceptionable2) || $report(_exceptionable2, {
1633
- path: _path2 + ".values[" + _index5 + "]",
1634
- expected: "valuesEntries",
1635
- value: elem
1636
- })).every((flag) => flag) || $report(_exceptionable2, {
1637
- path: _path2 + ".values",
1638
- expected: "Array<valuesEntries>",
1639
- value: input3.values
1640
- })].every((flag) => flag);
1641
1687
  const $vo5 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.id || $report(_exceptionable2, {
1642
1688
  path: _path2 + ".id",
1643
1689
  expected: "string",
@@ -1660,6 +1706,18 @@ var validViolinResponse = (input) => {
1660
1706
  expected: "(string | undefined)",
1661
1707
  value: input3.html
1662
1708
  })].every((flag) => flag);
1709
+ const $vo7 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
1710
+ const value = input3[key];
1711
+ if (void 0 === value)
1712
+ return true;
1713
+ if (RegExp(/(.*)/).test(key))
1714
+ return "number" === typeof value || $report(_exceptionable2, {
1715
+ path: _path2 + $join(key),
1716
+ expected: "number",
1717
+ value
1718
+ });
1719
+ return true;
1720
+ }).every((flag) => flag)].every((flag) => flag);
1663
1721
  const $vu0 = (input3, _path2, _exceptionable2 = true) => (() => {
1664
1722
  if (void 0 !== input3.status)
1665
1723
  return $vo0(input3, _path2, _exceptionable2);
@@ -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
@@ -24,7 +24,7 @@ var validTermdbTopVariablyExpressedGenesRequest = (input) => {
24
24
  const $join = import_typia.createValidate.join;
25
25
  const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && "number" === typeof input3.maxGenes && (void 0 === input3.geneSet || "object" === typeof input3.geneSet && null !== input3.geneSet && $io1(input3.geneSet)) && (void 0 === input3.min_median_log2_uqfpkm || "number" === typeof input3.min_median_log2_uqfpkm) && (void 0 === input3.filter_extreme_values || "number" === typeof input3.filter_extreme_values) && (void 0 === input3.min_count || "number" === typeof input3.min_count) && (void 0 === input3.min_total_count || "number" === typeof input3.min_total_count) && (void 0 === input3.rank_type || "object" === typeof input3.rank_type && null !== input3.rank_type && $io2(input3.rank_type)) && (void 0 === input3.filter || "object" === typeof input3.filter && null !== input3.filter && $io3(input3.filter)) && true;
26
26
  const $io1 = (input3) => ("all" === input3.type || "custom" === input3.type || "msigdb" === input3.type) && (null === input3.geneList || Array.isArray(input3.geneList) && input3.geneList.every((elem) => "string" === typeof elem));
27
- const $io2 = (input3) => "var" === input3.type || "iqr" === input3.type;
27
+ const $io2 = (input3) => "iqr" === input3.type || "var" === input3.type;
28
28
  const $io3 = (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)));
29
29
  const $io4 = (input3) => (void 0 === input3.join || "string" === typeof input3.join) && (void 0 === input3.isnot || "boolean" === typeof input3.isnot) && ("object" === typeof input3.term && null !== input3.term && $io5(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) && $io7(elem)));
30
30
  const $io5 = (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) && $io6(input3.values)) && ("object" === typeof input3.groupsetting && null !== input3.groupsetting && $iu4(input3.groupsetting));
@@ -221,7 +221,7 @@ var validTermdbTopVariablyExpressedGenesRequest = (input) => {
221
221
  expected: "(Array<string> | null)",
222
222
  value: input3.geneList
223
223
  })].every((flag) => flag);
224
- const $vo2 = (input3, _path2, _exceptionable2 = true) => ["var" === input3.type || "iqr" === input3.type || $report(_exceptionable2, {
224
+ const $vo2 = (input3, _path2, _exceptionable2 = true) => ["iqr" === input3.type || "var" === input3.type || $report(_exceptionable2, {
225
225
  path: _path2 + ".type",
226
226
  expected: '("iqr" | "var")',
227
227
  value: input3.type
package/dist/index.js CHANGED
@@ -2,12 +2,12 @@ import {
2
2
  termdbTopVariablyExpressedGenesPayload,
3
3
  validTermdbTopVariablyExpressedGenesRequest,
4
4
  validTermdbTopVariablyExpressedGenesResponse
5
- } from "./chunk-WCMW6A75.js";
5
+ } from "./chunk-Y4KYTIK6.js";
6
6
  import {
7
7
  validViolinRequest,
8
8
  validViolinResponse,
9
9
  violinPayload
10
- } from "./chunk-MRCMGCVR.js";
10
+ } from "./chunk-GQVW2DPA.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
  termdbTopVariablyExpressedGenesPayload,
3
3
  validTermdbTopVariablyExpressedGenesRequest,
4
4
  validTermdbTopVariablyExpressedGenesResponse
5
- } from "./chunk-WCMW6A75.js";
5
+ } from "./chunk-Y4KYTIK6.js";
6
6
  import "./chunk-Z6B6IQIY.js";
7
7
  export {
8
8
  termdbTopVariablyExpressedGenesPayload,
@@ -2,7 +2,7 @@ import {
2
2
  validViolinRequest,
3
3
  validViolinResponse,
4
4
  violinPayload
5
- } from "./chunk-MRCMGCVR.js";
5
+ } from "./chunk-GQVW2DPA.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.1-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/dataset.ts CHANGED
@@ -951,6 +951,15 @@ type SurvivalSettings = {
951
951
  xTickValues?: number[]
952
952
  }
953
953
 
954
+ type RegressionSettings = {
955
+ /** disable interactions */
956
+ disableInteractions?: boolean
957
+ /** hide type III statistics table in results */
958
+ hideType3?: boolean
959
+ /** hide statistical tests table in results */
960
+ hideTests?: boolean
961
+ }
962
+
954
963
  type MatrixSettings = {
955
964
  maxSample?: number
956
965
  svgCanvasSwitch?: number
@@ -1021,6 +1030,11 @@ type Survival = {
1021
1030
  settings?: SurvivalSettings
1022
1031
  }
1023
1032
 
1033
+ type Regression = {
1034
+ /** default settings for regression */
1035
+ settings?: RegressionSettings
1036
+ }
1037
+
1024
1038
  type MatrixPlotsEntry = {
1025
1039
  name: string
1026
1040
  file: string
@@ -1132,17 +1146,13 @@ keep this setting here for reason of:
1132
1146
  matrix?: Matrix
1133
1147
  numericDictTermCluster?: NumericDictTermCluster
1134
1148
  survival?: Survival
1149
+ regression?: Regression
1135
1150
  logscaleBase2?: boolean
1136
1151
  plotConfigByCohort?: PlotConfigByCohort
1137
1152
  /** Functionality */
1138
1153
  dataDownloadCatch?: DataDownloadCatch
1139
1154
  helpPages?: URLEntry[]
1140
1155
  multipleTestingCorrection?: MultipleTestingCorrection
1141
- /** regression settings for neuro-oncology portals:
1142
- - no interaction terms
1143
- - report event counts of cox coefficients
1144
- - hide type III stats and miscellaneous statistical tests */
1145
- neuroOncRegression?: boolean
1146
1156
  urlTemplates?: {
1147
1157
  /** gene link definition */
1148
1158
  gene?: UrlTemplateBase
@@ -1676,15 +1686,10 @@ export type PreInit = {
1676
1686
  }
1677
1687
  }
1678
1688
 
1679
- /** supply "isSupported()" kind of callback per chart type,
1680
- that will overwrite default logic in getSupportedChartTypes()
1681
- - the callback can have arbitrary logic based on requirements from this ds
1682
- - can supply ()=>false to hide charts that will otherwise shown
1683
- - can define arbitrary chart type names for purpose-specific charts
1684
- */
1685
-
1689
+ /** see details in termdb.server.init.ts
1690
+ */
1686
1691
  export type isSupportedChartCallbacks = {
1687
- [chartType: string]: (f: any, auth: any) => boolean | undefined
1692
+ [chartType: string]: (f: any) => boolean | undefined
1688
1693
  }
1689
1694
 
1690
1695
  export type Mds3 = BaseMds & {
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'
@@ -62,11 +62,11 @@ export type BoxPlotData = {
62
62
  }
63
63
 
64
64
  export type BoxPlotDescrStatsEntry = {
65
- /** Use lower case for sanity check
66
- * 'total' | 'min' | 'p25' | 'median' | 'mean' | 'p75' | 'max' | 'sd' | 'variance' | 'iqr'
67
- */
68
- id: string
65
+ /** Short hand for summary stat. Use lower case for sanity check */
66
+ id: 'total' | 'min' | 'p25' | 'median' | 'mean' | 'p75' | 'max' | 'sd' | 'variance' | 'iqr' | string
67
+ /** Full label displayed to the user */
69
68
  label: string
69
+ /** Calculated value. */
70
70
  value: number
71
71
  }
72
72
 
@@ -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,106 @@ 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
- summaryStats: {
63
- values: valuesEntries[]
64
- }
92
+ /** Descriptive stats (i.e. min, max, sd, etc.) */
93
+ summaryStats: ValuesEntries[]
65
94
  }
66
95
 
67
96
  export type ViolinResponse = ValidResponse | ErrorResponse
68
97
 
69
98
  type ValidResponse = {
99
+ /** Absolute min value for all plots */
70
100
  min: number
101
+ /** Absolute max value for all plots */
71
102
  max: number
72
- plots: plot[]
73
- pvalues?: pvalueEntries[][]
74
- uncomputableValueObj: any
103
+ plots: ViolinPlotEntry[]
104
+ pvalues?: PValueEntries[][]
105
+ uncomputableValues: { [index: string]: number }[] | null
75
106
  }
76
107
 
77
108
  export const violinPayload: RoutePayload = {
@@ -0,0 +1,46 @@
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
+ type SampleEntry = {
10
+ /** stringified integer sample id */
11
+ sample: string | number
12
+ } & {
13
+ /** key and values for terms, separated by tw.$id */
14
+ [index: string]: {
15
+ key: number
16
+ value: number
17
+ }
18
+ }
19
+
20
+ export type ValidGetDataResponse = {
21
+ samples: {
22
+ [index: string | number]: SampleEntry
23
+ }
24
+ /** Metadata */
25
+ refs: {
26
+ /** metadata about terms
27
+ * Index is <tw.$id> */
28
+ byTermId: Record<
29
+ string,
30
+ {
31
+ keyOrder?: any
32
+ /** CTE.bins */
33
+ bins?: any
34
+ /** CTE.events. These info are not available in term object and is computed during run time. */
35
+ events?: any
36
+ }
37
+ >
38
+ /** metadata about samples (e.g. print names). avoid duplicating such in sample data elements (e.g. mutations)
39
+ [sample integer id]: {label: [string sample name for display], ...}
40
+ May return as an empty object. */
41
+ bySampleId: Record<string, { label: string }> | object
42
+ }
43
+ sampleType?: any
44
+ }
45
+
46
+ export type GetDataResponse = ValidGetDataResponse | { error: string }