@sjcrh/proteinpaint-types 2.113.0 → 2.115.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.
Files changed (38) hide show
  1. package/dist/brainImaging.js +1 -1
  2. package/dist/chunk-5HL5BPE5.js +126 -0
  3. package/dist/{chunk-A72XYNKT.js → chunk-7GSVLBKZ.js} +22 -22
  4. package/dist/{chunk-7Z3AE4AY.js → chunk-C7DJDPLP.js} +592 -496
  5. package/dist/{chunk-GHAIGRB7.js → chunk-EQGBEPDC.js} +22 -22
  6. package/dist/{chunk-KHPBBU43.js → chunk-GS37E7DB.js} +592 -496
  7. package/dist/{chunk-TXZQ56TX.js → chunk-I3U2T7HV.js} +590 -494
  8. package/dist/{chunk-Q5F2XI6A.js → chunk-IJHMCHUT.js} +31 -23
  9. package/dist/{chunk-GGKNEHME.js → chunk-KBTAXZM4.js} +331 -305
  10. package/dist/{chunk-4CCAF4O5.js → chunk-KZIZMP7Y.js} +64 -64
  11. package/dist/{chunk-ES6BRZ4L.js → chunk-M26XQDA4.js} +22 -22
  12. package/dist/{chunk-FMW25T52.js → chunk-MDBZCBM2.js} +293 -197
  13. package/dist/{chunk-OJWYCYKF.js → chunk-NESPJ4GG.js} +76 -76
  14. package/dist/{chunk-2WZPM25H.js → chunk-PTYGGJLG.js} +592 -496
  15. package/dist/{chunk-ZFUF4XMD.js → chunk-ZPN2DV5E.js} +22 -22
  16. package/dist/correlationVolcano.js +1 -1
  17. package/dist/index.js +45 -37
  18. package/dist/termdb.boxplot.js +1 -1
  19. package/dist/termdb.categories.js +1 -1
  20. package/dist/termdb.cluster.js +1 -1
  21. package/dist/termdb.descrstats.js +1 -1
  22. package/dist/termdb.numericcategories.js +1 -1
  23. package/dist/termdb.percentile.js +1 -1
  24. package/dist/termdb.termsbyids.js +1 -1
  25. package/dist/termdb.topMutatedGenes.js +11 -0
  26. package/dist/termdb.topTermsByType.js +1 -1
  27. package/dist/termdb.topVariablyExpressedGenes.js +1 -1
  28. package/dist/termdb.violin.js +1 -1
  29. package/dist/wsisamples.js +11 -0
  30. package/package.json +1 -1
  31. package/src/dataset.ts +32 -9
  32. package/src/index.ts +2 -1
  33. package/src/routes/{gdc.topMutatedGenes.ts → termdb.topMutatedGenes.ts} +9 -7
  34. package/src/routes/wsisamples.ts +25 -0
  35. package/src/terms/geneVariant.ts +23 -2
  36. package/src/terms/numeric.ts +2 -2
  37. package/src/terms/term.ts +18 -9
  38. package/dist/gdc.topMutatedGenes.js +0 -11
@@ -62,7 +62,7 @@ var validViolinRequest = (input) => {
62
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
- 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));
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)) && true && ("object" === typeof input3.groupsetting && null !== input3.groupsetting && $iu4(input3.groupsetting));
66
66
  const $io4 = (input3) => Object.keys(input3).every((key) => {
67
67
  const value = input3[key];
68
68
  if (void 0 === value)
@@ -75,13 +75,13 @@ var validViolinRequest = (input) => {
75
75
  });
76
76
  const $io5 = (input3) => (void 0 === input3.key || "string" === typeof input3.key) && (void 0 === input3.uncomputable || "boolean" === typeof input3.uncomputable) && (void 0 === input3.label || "string" === typeof input3.label || "number" === typeof input3.label) && (void 0 === input3.order || "string" === typeof input3.order) && (void 0 === input3.color || "string" === typeof input3.color) && (void 0 === input3.group || "number" === typeof input3.group) && (void 0 === input3.filter || "object" === typeof input3.filter && null !== input3.filter && $io1(input3.filter));
77
77
  const $io6 = (input3) => (void 0 === input3.disabled || "boolean" === typeof input3.disabled) && (Array.isArray(input3.lst) && input3.lst.every((elem) => "object" === typeof elem && null !== elem && $io7(elem)));
78
- const $io7 = (input3) => "string" === typeof input3.name && (void 0 === input3.is_grade || "boolean" === typeof input3.is_grade) && (void 0 === input3.is_subcondition || "boolean" === typeof input3.is_subcondition) && (Array.isArray(input3.groups) && input3.groups.every((elem) => "object" === typeof elem && null !== elem && $iu1(elem)));
78
+ const $io7 = (input3) => "string" === typeof input3.name && (void 0 === input3.is_grade || "boolean" === typeof input3.is_grade) && (void 0 === input3.is_subcondition || "boolean" === typeof input3.is_subcondition) && (void 0 === input3.id || "string" === typeof input3.id) && (Array.isArray(input3.groups) && input3.groups.every((elem) => "object" === typeof elem && null !== elem && $iu1(elem)));
79
79
  const $io8 = (input3) => "string" === typeof input3.name && "string" === typeof input3.type && (Array.isArray(input3.values) && input3.values.every((elem) => "object" === typeof elem && null !== elem && $io9(elem))) && (void 0 === input3.uncomputable || "boolean" === typeof input3.uncomputable);
80
80
  const $io9 = (input3) => ("string" === typeof input3.key || "number" === typeof input3.key) && "string" === typeof input3.label;
81
- const $io10 = (input3) => "string" === typeof input3.name && "filter" === input3.type && ("object" === typeof input3.filter && null !== input3.filter && $io1(input3.filter));
81
+ const $io10 = (input3) => "string" === typeof input3.name && "filter" === input3.type && true && (void 0 === input3.uncomputable || "boolean" === typeof input3.uncomputable);
82
82
  const $io11 = (input3) => "boolean" === typeof input3.disabled && (void 0 === input3.lst || Array.isArray(input3.lst) && input3.lst.length === 0);
83
83
  const $io12 = (input3) => (void 0 === input3.join || "string" === typeof input3.join) && (void 0 === input3.isnot || "boolean" === typeof input3.isnot) && ("object" === typeof input3.term && null !== input3.term && $io13(input3.term)) && (Array.isArray(input3.ranges) && input3.ranges.every((elem) => "object" === typeof elem && null !== elem && $iu2(elem))) && (Array.isArray(input3.values) && input3.values.every((elem) => "object" === typeof elem && null !== elem && $io22(elem)));
84
- const $io13 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && ("integer" === input3.type || "float" === input3.type || "geneExpression" === input3.type || "metaboliteIntensity" === 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.bins && null !== input3.bins && $io14(input3.bins)) && (void 0 === input3.unit || "string" === typeof input3.unit) && (void 0 === input3.continuousColorScale || "object" === typeof input3.continuousColorScale && null !== input3.continuousColorScale && $io21(input3.continuousColorScale));
84
+ const $io13 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && ("integer" === input3.type || "float" === input3.type || "geneExpression" === input3.type || "metaboliteIntensity" === input3.type || "date" === 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)) && true && ("object" === typeof input3.bins && null !== input3.bins && $io14(input3.bins)) && (void 0 === input3.unit || "string" === typeof input3.unit) && (void 0 === input3.continuousColorScale || "object" === typeof input3.continuousColorScale && null !== input3.continuousColorScale && $io21(input3.continuousColorScale));
85
85
  const $io14 = (input3) => "object" === typeof input3["default"] && null !== input3["default"] && $iu5(input3["default"]) && ("object" === typeof input3.less && null !== input3.less && $iu5(input3.less)) && (void 0 === input3.label_offset || "number" === typeof input3.label_offset) && (void 0 === input3.label_offset_ignored || "boolean" === typeof input3.label_offset_ignored) && (void 0 === input3.rounding || "string" === typeof input3.rounding) && (void 0 === input3.min || "number" === typeof input3.min) && (void 0 === input3.max || "number" === typeof input3.max);
86
86
  const $io15 = (input3) => (void 0 === input3.hiddenValues || "object" === typeof input3.hiddenValues && null !== input3.hiddenValues && false === Array.isArray(input3.hiddenValues) && $io16(input3.hiddenValues)) && (void 0 === input3.isAtomic || true === input3.isAtomic) && (void 0 === input3.name || "string" === typeof input3.name) && (void 0 === input3.reuseId || "string" === typeof input3.reuseId) && "regular-bin" === input3.type && (void 0 === input3.mode || "discrete" === input3.mode) && "number" === typeof input3.bin_size && ("object" === typeof input3.first_bin && null !== input3.first_bin && $iu6(input3.first_bin)) && (void 0 === input3.last_bin || "object" === typeof input3.last_bin && null !== input3.last_bin && $iu7(input3.last_bin)) && (void 0 === input3.label_offset || "number" === typeof input3.label_offset);
87
87
  const $io16 = (input3) => Object.keys(input3).every((key) => {
@@ -99,11 +99,11 @@ var validViolinRequest = (input) => {
99
99
  const $io21 = (input3) => "string" === typeof input3.minColor && "string" === typeof input3.maxColor;
100
100
  const $io22 = (input3) => "string" === typeof input3.key && "number" === typeof input3.value && true === input3.uncomputable && (void 0 === input3.label || "string" === typeof input3.label);
101
101
  const $io23 = (input3) => (void 0 === input3.join || "string" === typeof input3.join) && (void 0 === input3.isnot || "boolean" === typeof input3.isnot) && ("object" === typeof input3.term && null !== input3.term && $io24(input3.term)) && (void 0 === input3.value_by_max_grade || "boolean" === typeof input3.value_by_max_grade) && (void 0 === input3.value_by_most_recent || "boolean" === typeof input3.value_by_most_recent) && (void 0 === input3.value_by_computable_grade || "boolean" === typeof input3.value_by_computable_grade) && (void 0 === input3.grade_and_child || Array.isArray(input3.grade_and_child) && input3.grade_and_child.every((elem) => "object" === typeof elem && null !== elem && $io25(elem)));
102
- const $io24 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "condition" === 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));
102
+ const $io24 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "condition" === 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)) && true;
103
103
  const $io25 = (input3) => "number" === typeof input3.grade && "string" === typeof input3.grade_label && (void 0 === input3.child_id || "string" === typeof input3.child_id) && "string" === typeof input3.child_label;
104
104
  const $io26 = (input3) => (void 0 === input3.join || "string" === typeof input3.join) && (void 0 === input3.isnot || "boolean" === typeof input3.isnot) && ("object" === typeof input3.term && null !== input3.term && $iu8(input3.term)) && (Array.isArray(input3.values) && input3.values.every((elem) => "object" === typeof elem && null !== elem && $iu3(elem)));
105
- const $io27 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "geneVariant" === 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 && $io6(input3.groupsetting)) && "gene" === input3.kind && "string" === typeof input3.gene && (void 0 === input3.chr || "string" === typeof input3.chr) && (void 0 === input3.start || "number" === typeof input3.start) && (void 0 === input3.stop || "number" === typeof input3.stop);
106
- const $io28 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "geneVariant" === 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 && $io6(input3.groupsetting)) && "coord" === input3.kind && "string" === typeof input3.chr && "number" === typeof input3.start && "number" === typeof input3.stop;
105
+ const $io27 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "geneVariant" === 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)) && true && ("object" === typeof input3.groupsetting && null !== input3.groupsetting && $io6(input3.groupsetting)) && "gene" === input3.kind && "string" === typeof input3.gene && (void 0 === input3.chr || "string" === typeof input3.chr) && (void 0 === input3.start || "number" === typeof input3.start) && (void 0 === input3.stop || "number" === typeof input3.stop);
106
+ const $io28 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "geneVariant" === 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)) && true && ("object" === typeof input3.groupsetting && null !== input3.groupsetting && $io6(input3.groupsetting)) && "coord" === input3.kind && "string" === typeof input3.chr && "number" === typeof input3.start && "number" === typeof input3.stop;
107
107
  const $io29 = (input3) => 1 === input3.dt && (Array.isArray(input3.mclassLst) && input3.mclassLst.every((elem) => "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)) && (Array.isArray(input3.mclassExcludeLst) && input3.mclassExcludeLst.every((elem) => "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)) && (void 0 === input3.origin || "somatic" === input3.origin || "germline" === input3.origin);
108
108
  const $io30 = (input3) => 4 === input3.dt && (Array.isArray(input3.mclassLst) && input3.mclassLst.every((elem) => "Blank" === elem || "WT" === elem || "CNV_amp" === elem || "CNV_loss" === elem || "CNV_loh" === elem || "CNV_amplification" === elem || "CNV_homozygous_deletion" === elem)) && (Array.isArray(input3.mclassExcludeLst) && input3.mclassExcludeLst.every((elem) => "Blank" === elem || "WT" === elem || "CNV_amp" === elem || "CNV_loss" === elem || "CNV_loh" === elem || "CNV_amplification" === elem || "CNV_homozygous_deletion" === elem)) && (void 0 === input3.origin || "somatic" === input3.origin || "germline" === input3.origin);
109
109
  const $io31 = (input3) => 5 === input3.dt && (Array.isArray(input3.mclassLst) && input3.mclassLst.every((elem) => "Blank" === elem || "WT" === elem || "SV" === elem)) && (Array.isArray(input3.mclassExcludeLst) && input3.mclassExcludeLst.every((elem) => "Blank" === elem || "WT" === elem || "SV" === elem)) && (void 0 === input3.origin || "somatic" === input3.origin || "germline" === input3.origin);
@@ -382,7 +382,7 @@ var validViolinRequest = (input) => {
382
382
  path: _path2 + ".values",
383
383
  expected: "(TermValues | undefined)",
384
384
  value: input3.values
385
- }), ("object" === typeof input3.groupsetting && null !== input3.groupsetting || $report(_exceptionable2, {
385
+ }), true, ("object" === typeof input3.groupsetting && null !== input3.groupsetting || $report(_exceptionable2, {
386
386
  path: _path2 + ".groupsetting",
387
387
  expected: "(EnabledTermGroupSetting | __type.o1)",
388
388
  value: input3.groupsetting
@@ -483,6 +483,10 @@ var validViolinRequest = (input) => {
483
483
  path: _path2 + ".is_subcondition",
484
484
  expected: "(boolean | undefined)",
485
485
  value: input3.is_subcondition
486
+ }), void 0 === input3.id || "string" === typeof input3.id || $report(_exceptionable2, {
487
+ path: _path2 + ".id",
488
+ expected: "(string | undefined)",
489
+ value: input3.id
486
490
  }), (Array.isArray(input3.groups) || $report(_exceptionable2, {
487
491
  path: _path2 + ".groups",
488
492
  expected: "Array<GroupEntry>",
@@ -546,14 +550,10 @@ var validViolinRequest = (input) => {
546
550
  path: _path2 + ".type",
547
551
  expected: '"filter"',
548
552
  value: input3.type
549
- }), ("object" === typeof input3.filter && null !== input3.filter || $report(_exceptionable2, {
550
- path: _path2 + ".filter",
551
- expected: "Filter",
552
- value: input3.filter
553
- })) && $vo1(input3.filter, _path2 + ".filter", _exceptionable2) || $report(_exceptionable2, {
554
- path: _path2 + ".filter",
555
- expected: "Filter",
556
- value: input3.filter
553
+ }), true, void 0 === input3.uncomputable || "boolean" === typeof input3.uncomputable || $report(_exceptionable2, {
554
+ path: _path2 + ".uncomputable",
555
+ expected: "(boolean | undefined)",
556
+ value: input3.uncomputable
557
557
  })].every((flag) => flag);
558
558
  const $vo11 = (input3, _path2, _exceptionable2 = true) => ["boolean" === typeof input3.disabled || $report(_exceptionable2, {
559
559
  path: _path2 + ".disabled",
@@ -629,9 +629,9 @@ var validViolinRequest = (input) => {
629
629
  path: _path2 + ".name",
630
630
  expected: "string",
631
631
  value: input3.name
632
- }), "integer" === input3.type || "float" === input3.type || "geneExpression" === input3.type || "metaboliteIntensity" === input3.type || $report(_exceptionable2, {
632
+ }), "integer" === input3.type || "float" === input3.type || "geneExpression" === input3.type || "metaboliteIntensity" === input3.type || "date" === input3.type || $report(_exceptionable2, {
633
633
  path: _path2 + ".type",
634
- expected: '("float" | "geneExpression" | "integer" | "metaboliteIntensity")',
634
+ expected: '("date" | "float" | "geneExpression" | "integer" | "metaboliteIntensity")',
635
635
  value: input3.type
636
636
  }), void 0 === input3.child_types || (Array.isArray(input3.child_types) || $report(_exceptionable2, {
637
637
  path: _path2 + ".child_types",
@@ -673,7 +673,7 @@ var validViolinRequest = (input) => {
673
673
  path: _path2 + ".values",
674
674
  expected: "(TermValues | undefined)",
675
675
  value: input3.values
676
- }), ("object" === typeof input3.bins && null !== input3.bins || $report(_exceptionable2, {
676
+ }), true, ("object" === typeof input3.bins && null !== input3.bins || $report(_exceptionable2, {
677
677
  path: _path2 + ".bins",
678
678
  expected: "PresetNumericBins",
679
679
  value: input3.bins
@@ -1065,7 +1065,7 @@ var validViolinRequest = (input) => {
1065
1065
  path: _path2 + ".values",
1066
1066
  expected: "(TermValues | undefined)",
1067
1067
  value: input3.values
1068
- })].every((flag) => flag);
1068
+ }), true].every((flag) => flag);
1069
1069
  const $vo25 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.grade || $report(_exceptionable2, {
1070
1070
  path: _path2 + ".grade",
1071
1071
  expected: "number",
@@ -1168,7 +1168,7 @@ var validViolinRequest = (input) => {
1168
1168
  path: _path2 + ".values",
1169
1169
  expected: "(TermValues | undefined)",
1170
1170
  value: input3.values
1171
- }), ("object" === typeof input3.groupsetting && null !== input3.groupsetting || $report(_exceptionable2, {
1171
+ }), true, ("object" === typeof input3.groupsetting && null !== input3.groupsetting || $report(_exceptionable2, {
1172
1172
  path: _path2 + ".groupsetting",
1173
1173
  expected: "EnabledTermGroupSetting",
1174
1174
  value: input3.groupsetting
@@ -1249,7 +1249,7 @@ var validViolinRequest = (input) => {
1249
1249
  path: _path2 + ".values",
1250
1250
  expected: "(TermValues | undefined)",
1251
1251
  value: input3.values
1252
- }), ("object" === typeof input3.groupsetting && null !== input3.groupsetting || $report(_exceptionable2, {
1252
+ }), true, ("object" === typeof input3.groupsetting && null !== input3.groupsetting || $report(_exceptionable2, {
1253
1253
  path: _path2 + ".groupsetting",
1254
1254
  expected: "EnabledTermGroupSetting",
1255
1255
  value: input3.groupsetting
@@ -2,7 +2,7 @@ import {
2
2
  CorrelationVolcanoPayload,
3
3
  validCorrelationVolcanoRequest,
4
4
  validCorrelationVolcanoResponse
5
- } from "./chunk-FMW25T52.js";
5
+ } from "./chunk-MDBZCBM2.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  CorrelationVolcanoPayload,
package/dist/index.js CHANGED
@@ -1,28 +1,28 @@
1
- import {
2
- termChildrenPayload,
3
- validTermChildrenRequest,
4
- validTermChildrenResponse
5
- } from "./chunk-HKGWC7OO.js";
6
1
  import {
7
2
  termsByIdsPayload,
8
3
  validTermsByIdsRequest,
9
4
  validTermsByIdsResponse
10
- } from "./chunk-TXZQ56TX.js";
5
+ } from "./chunk-I3U2T7HV.js";
6
+ import {
7
+ topMutatedGenePayload,
8
+ validTopMutatedGeneRequest,
9
+ validTopMutatedGeneResponse
10
+ } from "./chunk-IJHMCHUT.js";
11
11
  import {
12
12
  termdbTopTermsByTypePayload,
13
13
  validTermdbTopTermsByTypeRequest,
14
14
  validTermdbTopTermsByTypeResponse
15
- } from "./chunk-4CCAF4O5.js";
15
+ } from "./chunk-KZIZMP7Y.js";
16
16
  import {
17
17
  termdbTopVariablyExpressedGenesPayload,
18
18
  validTermdbTopVariablyExpressedGenesRequest,
19
19
  validTermdbTopVariablyExpressedGenesResponse
20
- } from "./chunk-A72XYNKT.js";
20
+ } from "./chunk-7GSVLBKZ.js";
21
21
  import {
22
22
  validViolinRequest,
23
23
  validViolinResponse,
24
24
  violinPayload
25
- } from "./chunk-ZFUF4XMD.js";
25
+ } from "./chunk-ZPN2DV5E.js";
26
26
  import {
27
27
  tilePayload,
28
28
  validTileRequest,
@@ -34,15 +34,15 @@ import {
34
34
  wsImagesPayload
35
35
  } from "./chunk-UZH5HOBP.js";
36
36
  import {
37
- numericCategoriesPayload,
38
- validNumericCategoriesRequest,
39
- validNumericCategoriesResponse
40
- } from "./chunk-ES6BRZ4L.js";
37
+ validWSISamplesRequest,
38
+ validWSSamplesResponse,
39
+ wsiSamplesPayload
40
+ } from "./chunk-5HL5BPE5.js";
41
41
  import {
42
42
  percentilePayload,
43
43
  validPercentileRequest,
44
44
  validPercentileResponse
45
- } from "./chunk-GHAIGRB7.js";
45
+ } from "./chunk-EQGBEPDC.js";
46
46
  import {
47
47
  rootTermPayload,
48
48
  validRootTermRequest,
@@ -74,10 +74,10 @@ import {
74
74
  validTermdbSingleCellSamplesResponse
75
75
  } from "./chunk-GRI3224V.js";
76
76
  import {
77
- snpPayload,
78
- validSnpRequest,
79
- validSnpResponse
80
- } from "./chunk-J4QAF4EU.js";
77
+ termChildrenPayload,
78
+ validTermChildrenRequest,
79
+ validTermChildrenResponse
80
+ } from "./chunk-HKGWC7OO.js";
81
81
  import {
82
82
  diffExpPayload,
83
83
  validDERequest,
@@ -87,17 +87,17 @@ import {
87
87
  boxplotPayload,
88
88
  validBoxPlotRequest,
89
89
  validBoxPlotResponse
90
- } from "./chunk-2WZPM25H.js";
90
+ } from "./chunk-PTYGGJLG.js";
91
91
  import {
92
92
  termdbCategoriesPayload,
93
93
  validCategoriesRequest,
94
94
  validCategoriesResponse
95
- } from "./chunk-7Z3AE4AY.js";
95
+ } from "./chunk-C7DJDPLP.js";
96
96
  import {
97
97
  termdbClusterPayload,
98
98
  validTermdbClusterRequest,
99
99
  validTermdbClusterResponse
100
- } from "./chunk-OJWYCYKF.js";
100
+ } from "./chunk-NESPJ4GG.js";
101
101
  import {
102
102
  termdbCohortSummaryPayload,
103
103
  validTermdbCohortSummaryRequest,
@@ -112,12 +112,12 @@ import {
112
112
  descrStatsPayload,
113
113
  validDescrStatsRequest,
114
114
  validDescrStatsResponse
115
- } from "./chunk-KHPBBU43.js";
115
+ } from "./chunk-GS37E7DB.js";
116
116
  import {
117
- hicGenomePayload,
118
- validHicGenomeRequest,
119
- validHicGenomeResponse
120
- } from "./chunk-I2KWGMNM.js";
117
+ numericCategoriesPayload,
118
+ validNumericCategoriesRequest,
119
+ validNumericCategoriesResponse
120
+ } from "./chunk-M26XQDA4.js";
121
121
  import {
122
122
  hicstatPayload,
123
123
  validHicstatRequest,
@@ -148,6 +148,11 @@ import {
148
148
  validSampleWSImagesRequest,
149
149
  validSampleWSImagesResponse
150
150
  } from "./chunk-W4JULXYD.js";
151
+ import {
152
+ snpPayload,
153
+ validSnpRequest,
154
+ validSnpResponse
155
+ } from "./chunk-J4QAF4EU.js";
151
156
  import {
152
157
  gdcMafPayload,
153
158
  validGdcMafRequest,
@@ -158,11 +163,6 @@ import {
158
163
  validGdcMafBuildRequest,
159
164
  validGdcMafBuildResponse
160
165
  } from "./chunk-F5XGJIUS.js";
161
- import {
162
- gdcTopMutatedGenePayload,
163
- validGdcTopMutatedGeneRequest,
164
- validGdcTopMutatedGeneResponse
165
- } from "./chunk-Q5F2XI6A.js";
166
166
  import {
167
167
  geneLookupPayload,
168
168
  validGeneLookupRequest,
@@ -188,11 +188,16 @@ import {
188
188
  validHicdataRequest,
189
189
  validHicdataResponse
190
190
  } from "./chunk-VKBTOKI2.js";
191
+ import {
192
+ hicGenomePayload,
193
+ validHicGenomeRequest,
194
+ validHicGenomeResponse
195
+ } from "./chunk-I2KWGMNM.js";
191
196
  import {
192
197
  brainImagingPayload,
193
198
  validBrainImagingRequest,
194
199
  validBrainImagingResponse
195
- } from "./chunk-GGKNEHME.js";
200
+ } from "./chunk-KBTAXZM4.js";
196
201
  import {
197
202
  brainImagingSamplesPayload,
198
203
  validBrainImagingSamplesRequest,
@@ -207,7 +212,7 @@ import {
207
212
  CorrelationVolcanoPayload,
208
213
  validCorrelationVolcanoRequest,
209
214
  validCorrelationVolcanoResponse
210
- } from "./chunk-FMW25T52.js";
215
+ } from "./chunk-MDBZCBM2.js";
211
216
  import {
212
217
  datasetPayload,
213
218
  validDatasetRequest,
@@ -237,7 +242,6 @@ export {
237
242
  dsDataPayload,
238
243
  dzImagesPayload,
239
244
  gdcMafPayload,
240
- gdcTopMutatedGenePayload,
241
245
  geneLookupPayload,
242
246
  genesetEnrichmentPayload,
243
247
  genesetOverrepresentationPayload,
@@ -268,6 +272,7 @@ export {
268
272
  termdbTopVariablyExpressedGenesPayload,
269
273
  termsByIdsPayload,
270
274
  tilePayload,
275
+ topMutatedGenePayload,
271
276
  validBoxPlotRequest,
272
277
  validBoxPlotResponse,
273
278
  validBrainImagingRequest,
@@ -294,8 +299,6 @@ export {
294
299
  validGdcMafBuildResponse,
295
300
  validGdcMafRequest,
296
301
  validGdcMafResponse,
297
- validGdcTopMutatedGeneRequest,
298
- validGdcTopMutatedGeneResponse,
299
302
  validGeneLookupRequest,
300
303
  validGeneLookupResponse,
301
304
  validGenesetEnrichmentRequest,
@@ -352,12 +355,17 @@ export {
352
355
  validTermsByIdsResponse,
353
356
  validTileRequest,
354
357
  validTileResponse,
358
+ validTopMutatedGeneRequest,
359
+ validTopMutatedGeneResponse,
355
360
  validViolinRequest,
356
361
  validViolinResponse,
362
+ validWSISamplesRequest,
357
363
  validWSImagesRequest,
358
364
  validWSImagesResponse,
365
+ validWSSamplesResponse,
359
366
  validimgRequest,
360
367
  validimgResponse,
361
368
  violinPayload,
362
- wsImagesPayload
369
+ wsImagesPayload,
370
+ wsiSamplesPayload
363
371
  };
@@ -2,7 +2,7 @@ import {
2
2
  boxplotPayload,
3
3
  validBoxPlotRequest,
4
4
  validBoxPlotResponse
5
- } from "./chunk-2WZPM25H.js";
5
+ } from "./chunk-PTYGGJLG.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  boxplotPayload,
@@ -2,7 +2,7 @@ import {
2
2
  termdbCategoriesPayload,
3
3
  validCategoriesRequest,
4
4
  validCategoriesResponse
5
- } from "./chunk-7Z3AE4AY.js";
5
+ } from "./chunk-C7DJDPLP.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  termdbCategoriesPayload,
@@ -2,7 +2,7 @@ import {
2
2
  termdbClusterPayload,
3
3
  validTermdbClusterRequest,
4
4
  validTermdbClusterResponse
5
- } from "./chunk-OJWYCYKF.js";
5
+ } from "./chunk-NESPJ4GG.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  termdbClusterPayload,
@@ -2,7 +2,7 @@ import {
2
2
  descrStatsPayload,
3
3
  validDescrStatsRequest,
4
4
  validDescrStatsResponse
5
- } from "./chunk-KHPBBU43.js";
5
+ } from "./chunk-GS37E7DB.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  descrStatsPayload,
@@ -2,7 +2,7 @@ import {
2
2
  numericCategoriesPayload,
3
3
  validNumericCategoriesRequest,
4
4
  validNumericCategoriesResponse
5
- } from "./chunk-ES6BRZ4L.js";
5
+ } from "./chunk-M26XQDA4.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  numericCategoriesPayload,
@@ -2,7 +2,7 @@ import {
2
2
  percentilePayload,
3
3
  validPercentileRequest,
4
4
  validPercentileResponse
5
- } from "./chunk-GHAIGRB7.js";
5
+ } from "./chunk-EQGBEPDC.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  percentilePayload,
@@ -2,7 +2,7 @@ import {
2
2
  termsByIdsPayload,
3
3
  validTermsByIdsRequest,
4
4
  validTermsByIdsResponse
5
- } from "./chunk-TXZQ56TX.js";
5
+ } from "./chunk-I3U2T7HV.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  termsByIdsPayload,
@@ -0,0 +1,11 @@
1
+ import {
2
+ topMutatedGenePayload,
3
+ validTopMutatedGeneRequest,
4
+ validTopMutatedGeneResponse
5
+ } from "./chunk-IJHMCHUT.js";
6
+ import "./chunk-CNSSF43V.js";
7
+ export {
8
+ topMutatedGenePayload,
9
+ validTopMutatedGeneRequest,
10
+ validTopMutatedGeneResponse
11
+ };
@@ -2,7 +2,7 @@ import {
2
2
  termdbTopTermsByTypePayload,
3
3
  validTermdbTopTermsByTypeRequest,
4
4
  validTermdbTopTermsByTypeResponse
5
- } from "./chunk-4CCAF4O5.js";
5
+ } from "./chunk-KZIZMP7Y.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  termdbTopTermsByTypePayload,
@@ -2,7 +2,7 @@ import {
2
2
  termdbTopVariablyExpressedGenesPayload,
3
3
  validTermdbTopVariablyExpressedGenesRequest,
4
4
  validTermdbTopVariablyExpressedGenesResponse
5
- } from "./chunk-A72XYNKT.js";
5
+ } from "./chunk-7GSVLBKZ.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  termdbTopVariablyExpressedGenesPayload,
@@ -2,7 +2,7 @@ import {
2
2
  validViolinRequest,
3
3
  validViolinResponse,
4
4
  violinPayload
5
- } from "./chunk-ZFUF4XMD.js";
5
+ } from "./chunk-ZPN2DV5E.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  validViolinRequest,
@@ -0,0 +1,11 @@
1
+ import {
2
+ validWSISamplesRequest,
3
+ validWSSamplesResponse,
4
+ wsiSamplesPayload
5
+ } from "./chunk-5HL5BPE5.js";
6
+ import "./chunk-CNSSF43V.js";
7
+ export {
8
+ validWSISamplesRequest,
9
+ validWSSamplesResponse,
10
+ wsiSamplesPayload
11
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.113.0",
3
+ "version": "2.115.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
@@ -1,4 +1,6 @@
1
1
  import type { Mclass } from './Mclass.ts'
2
+ import type { WSImage } from './routes/samplewsimages.ts'
3
+ import type { WSISample } from './routes/wsisamples.ts'
2
4
 
3
5
  /*** General usage types ***/
4
6
  type FileObj = {
@@ -95,8 +97,14 @@ type bcfMafFile = {
95
97
  type SnvindelByIsoform = {
96
98
  /** if true, served from gdc. no other parameters */
97
99
  gdcapi?: true
98
- /** getter function to retrieve data. dynamically added or ds-supplied */
99
- get?: (f: any) => void
100
+ /** getter function to retrieve data. dynamically added or ds-supplied
101
+ first argument is required and allow for 2 additional ones
102
+ */
103
+ get?: (f: any, f2?: any, f3?: any) => void
104
+ /** if true, all tw from one client query must be processed via one call to snvindel.byisoform.get()
105
+ and no longer processes each tw by calling mayGetGeneVariantData()
106
+ */
107
+ processTwsInOneQuery?: true
100
108
  }
101
109
 
102
110
  type SnvindelByRange = {
@@ -207,7 +215,7 @@ type Filter = {
207
215
 
208
216
  type VariantFilter = {
209
217
  opts: { joinWith: string[] }
210
- filter: Filter
218
+ filter?: Filter
211
219
  terms: FilterTermEntry[]
212
220
  }
213
221
 
@@ -455,6 +463,8 @@ type TopVariablyExpressedGenesQuery = {
455
463
  }
456
464
 
457
465
  type TopMutatedGenes = {
466
+ /** ds supplied getter. if not, dynamically adds one during launch */
467
+ get?: (f: any) => void
458
468
  /** Specifies the dom element rendered in the menu */
459
469
  arguments?: GeneArgumentEntry[]
460
470
  }
@@ -582,6 +592,8 @@ export type GeneExpressionQueryNative = {
582
592
  samples?: number[]
583
593
  /** dynamically added flag during launch */
584
594
  nochr?: boolean
595
+ /** if true, the file is in HDF5 format */
596
+ hdf5File?: boolean
585
597
  /** dynamically added getter */
586
598
  get?: (param: any) => void
587
599
  /** This dictionary is used to store/cache the default bins calculated for a geneExpression term when initialized in the fillTermWrapper */
@@ -845,10 +857,16 @@ image file to sample mapping is stored in wsimages table
845
857
  export type WSImages = {
846
858
  // type of the image, e.g. H&E
847
859
  type: string
848
- // path to the folder where sample images are stored
849
- imageBySampleFolder?: string
850
860
 
851
- sources?: string
861
+ /* path to the folder where sample images are stored
862
+ required; for both cases where image files are hosted locally, or loaded from remote via ds-supplied getter
863
+ */
864
+ imageBySampleFolder: string
865
+
866
+ /** either ds supplied or dynamically added on launch with built in logic (retrieve the sample list from the wsimages table) */
867
+ getSamples?: () => Promise<Array<WSISample>>
868
+ /** either ds supplied or dynamically added on launch with built in logic */
869
+ getWSImages?: (sampleName: string) => Promise<WSImage[]>
852
870
  }
853
871
 
854
872
  /*** types supporting Termdb ***/
@@ -1218,9 +1236,14 @@ keep this setting here for reason of:
1218
1236
  ssm?: UrlTemplateSsm | UrlTemplateSsm[]
1219
1237
  }
1220
1238
 
1221
- q?: {
1239
+ /** ds-defined or dynamically created */
1240
+ termtypeByCohort?: any
1241
+ /** ds-defined or dynamically created callbacks
1242
+ {
1222
1243
  getSupportedChartTypes: (a: any) => any
1223
1244
  }
1245
+ */
1246
+ q?: any
1224
1247
  termMatch2geneSet?: any
1225
1248
  mclass?: Mclass
1226
1249
  lollipop?: any
@@ -1357,7 +1380,7 @@ export type Cohort = {
1357
1380
  /** if present, means correlation volcano plot analysis is enabled */
1358
1381
  correlationVolcano?: CorrelationVolcano
1359
1382
  cumburden?: CumBurdenData
1360
- db: FileObj
1383
+ db?: FileObj
1361
1384
  /** customize the default chart to open on mass ui when there's no charts. if
1362
1385
  * missing it opens dictionary ui */
1363
1386
  defaultChartType?: string
@@ -1786,7 +1809,7 @@ export type Mds3 = BaseMds & {
1786
1809
  queries?: Mds3Queries
1787
1810
  cohort?: Cohort
1788
1811
  isSupportedChartOverride?: isSupportedChartCallbacks
1789
- // TODO: termdb should be nested under cohort
1812
+ // TODO FIXME nest termdb under cohort
1790
1813
  termdb?: Termdb
1791
1814
  validate_filter0?: (f: any) => void
1792
1815
  ssm2canonicalisoform?: GdcApi
package/src/index.ts CHANGED
@@ -17,7 +17,7 @@ export * from './routes/errorResponse.ts'
17
17
  export * from './routes/filter.gdc.ts'
18
18
  export * from './routes/gdc.maf.ts'
19
19
  export * from './routes/gdc.mafBuild.ts'
20
- export * from './routes/gdc.topMutatedGenes.ts'
20
+ export * from './routes/termdb.topMutatedGenes.ts'
21
21
  export * from './routes/genelookup.ts'
22
22
  export * from './routes/genesetEnrichment.ts'
23
23
  export * from './routes/genesetOverrepresentation.ts'
@@ -54,6 +54,7 @@ export * from './routes/termdb.topVariablyExpressedGenes.ts'
54
54
  export * from './routes/termdb.violin.ts'
55
55
  export * from './routes/tileserver.ts'
56
56
  export * from './routes/wsimages.ts'
57
+ export * from './routes/wsisamples.ts'
57
58
  export * from './terms/categorical.ts'
58
59
  export * from './terms/condition.ts'
59
60
  export * from './terms/numeric.ts'