@sjcrh/proteinpaint-types 2.167.0 → 2.170.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-EBPGV76U.js → chunk-33FYSH3O.js} +130 -2
  3. package/dist/{chunk-GIPUG4HD.js → chunk-447IAMTQ.js} +130 -2
  4. package/dist/{chunk-ZXPLL3NT.js → chunk-53QZTLJK.js} +417 -185
  5. package/dist/{chunk-5F24QFE7.js → chunk-BPDR66LV.js} +385 -151
  6. package/dist/{chunk-C27KCAQH.js → chunk-CUU7POGC.js} +417 -185
  7. package/dist/{chunk-GZKTMVAU.js → chunk-HDED6K55.js} +515 -153
  8. package/dist/{chunk-E4Z7PJZQ.js → chunk-HRH4GGV2.js} +503 -235
  9. package/dist/{chunk-LXW2FSLR.js → chunk-MH3TDIL4.js} +439 -207
  10. package/dist/{chunk-OLWNM7QP.js → chunk-MJEQEGN4.js} +130 -2
  11. package/dist/{chunk-5OMJAZK4.js → chunk-QL6YSLN6.js} +171 -43
  12. package/dist/{chunk-OLXOQLZH.js → chunk-TVS2JEXL.js} +130 -2
  13. package/dist/{chunk-CC32XCET.js → chunk-UQNHLAZN.js} +660 -298
  14. package/dist/{chunk-VQOCGHP2.js → chunk-YCURJJSC.js} +5 -1
  15. package/dist/{chunk-MCL6EDOS.js → chunk-ZAMM6EMS.js} +421 -189
  16. package/dist/correlationVolcano.js +1 -1
  17. package/dist/grin2.js +1 -1
  18. package/dist/index.js +14 -14
  19. package/dist/termdb.boxplot.js +1 -1
  20. package/dist/termdb.categories.js +1 -1
  21. package/dist/termdb.chat.js +1 -1
  22. package/dist/termdb.cluster.js +1 -1
  23. package/dist/termdb.descrstats.js +1 -1
  24. package/dist/termdb.numericcategories.js +1 -1
  25. package/dist/termdb.percentile.js +1 -1
  26. package/dist/termdb.termsbyids.js +1 -1
  27. package/dist/termdb.topTermsByType.js +1 -1
  28. package/dist/termdb.topVariablyExpressedGenes.js +1 -1
  29. package/dist/termdb.violin.js +1 -1
  30. package/package.json +1 -1
  31. package/src/dataset.ts +8 -2
  32. package/src/filter.ts +7 -1
  33. package/src/index.ts +1 -0
  34. package/src/routes/grin2.ts +5 -0
  35. package/src/routes/termdb.boxplot.ts +7 -9
  36. package/src/terms/term.ts +3 -1
  37. package/src/terms/termCollection.ts +52 -0
  38. package/src/terms/tw.ts +3 -2
@@ -114,6 +114,8 @@ var validViolinRequest = (input) => {
114
114
  const $io36 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "string" === typeof 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) && $io5(input3.values)) && (void 0 === input3.skipValuesBuild || "boolean" === typeof input3.skipValuesBuild) && (void 0 === input3.valueConversion || "object" === typeof input3.valueConversion && null !== input3.valueConversion && $io7(input3.valueConversion)) && "coord" === input3.kind && "string" === typeof input3.chr && "number" === typeof input3.start && "number" === typeof input3.stop;
115
115
  const $io37 = (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) && $io5(input3.values)) && (void 0 === input3.skipValuesBuild || "boolean" === typeof input3.skipValuesBuild) && (void 0 === input3.valueConversion || "object" === typeof input3.valueConversion && null !== input3.valueConversion && $io7(input3.valueConversion)) && "coord" === input3.kind && "string" === typeof input3.chr && "number" === typeof input3.start && "number" === typeof input3.stop && (Array.isArray(input3.genes) && input3.genes.every((elem) => "object" === typeof elem && null !== elem && $iu3(elem))) && (void 0 === input3.groupsetting || "object" === typeof input3.groupsetting && null !== input3.groupsetting && $io8(input3.groupsetting)) && (void 0 === input3.childTerms || Array.isArray(input3.childTerms) && input3.childTerms.every((elem) => "object" === typeof elem && null !== elem && $io33(elem)));
116
116
  const $io38 = (input3) => "string" === typeof input3.key && "string" === typeof input3.label && "string" === typeof input3.value;
117
+ const $io39 = (input3) => (void 0 === input3.join || "string" === typeof input3.join) && (void 0 === input3.isnot || "boolean" === typeof input3.isnot) && ("object" === typeof input3.term && null !== input3.term && $io40(input3.term)) && "number" === typeof input3.ratio;
118
+ const $io40 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "termCollection" === 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) && $io5(input3.values)) && (void 0 === input3.skipValuesBuild || "boolean" === typeof input3.skipValuesBuild) && (void 0 === input3.valueConversion || "object" === typeof input3.valueConversion && null !== input3.valueConversion && $io7(input3.valueConversion)) && (void 0 === input3.collectionId || "string" === typeof input3.collectionId) && (void 0 === input3.lst || Array.isArray(input3.lst) && input3.lst.every((elem) => "string" === typeof elem)) && (void 0 === input3.termlst || Array.isArray(input3.termlst)) && (void 0 === input3.numerators || Array.isArray(input3.numerators) && input3.numerators.every((elem) => "string" === typeof elem)) && (void 0 === input3.newTvs || "boolean" === typeof input3.newTvs);
117
119
  const $iu0 = (input3) => (() => {
118
120
  if ("tvslst" === input3.type)
119
121
  return $io1(input3);
@@ -145,6 +147,8 @@ var validViolinRequest = (input) => {
145
147
  const $iu4 = (input3) => (() => {
146
148
  if (void 0 !== input3.ranges)
147
149
  return $io13(input3);
150
+ if (void 0 !== input3.ratio)
151
+ return $io39(input3);
148
152
  return (() => {
149
153
  if ($io3(input3))
150
154
  return $io3(input3);
@@ -318,11 +322,11 @@ var validViolinRequest = (input) => {
318
322
  value: input3.type
319
323
  }), ("object" === typeof input3.tvs && null !== input3.tvs || $report(_exceptionable2, {
320
324
  path: _path2 + ".tvs",
321
- expected: "(CategoricalTvs | ConditionTvs | GeneVariantTvs | NumericTvs)",
325
+ expected: "(CategoricalTvs | ConditionTvs | GeneVariantTvs | NumericTvs | TermCollectionTvs)",
322
326
  value: input3.tvs
323
327
  })) && $vu4(input3.tvs, _path2 + ".tvs", _exceptionable2) || $report(_exceptionable2, {
324
328
  path: _path2 + ".tvs",
325
- expected: "(CategoricalTvs | ConditionTvs | GeneVariantTvs | NumericTvs)",
329
+ expected: "(CategoricalTvs | ConditionTvs | GeneVariantTvs | NumericTvs | TermCollectionTvs)",
326
330
  value: input3.tvs
327
331
  })].every((flag) => flag);
328
332
  const $vo3 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.join || "string" === typeof input3.join || $report(_exceptionable2, {
@@ -2175,6 +2179,128 @@ var validViolinRequest = (input) => {
2175
2179
  expected: "string",
2176
2180
  value: input3.value
2177
2181
  })].every((flag) => flag);
2182
+ const $vo39 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.join || "string" === typeof input3.join || $report(_exceptionable2, {
2183
+ path: _path2 + ".join",
2184
+ expected: "(string | undefined)",
2185
+ value: input3.join
2186
+ }), void 0 === input3.isnot || "boolean" === typeof input3.isnot || $report(_exceptionable2, {
2187
+ path: _path2 + ".isnot",
2188
+ expected: "(boolean | undefined)",
2189
+ value: input3.isnot
2190
+ }), ("object" === typeof input3.term && null !== input3.term || $report(_exceptionable2, {
2191
+ path: _path2 + ".term",
2192
+ expected: "TermCollection",
2193
+ value: input3.term
2194
+ })) && $vo40(input3.term, _path2 + ".term", _exceptionable2) || $report(_exceptionable2, {
2195
+ path: _path2 + ".term",
2196
+ expected: "TermCollection",
2197
+ value: input3.term
2198
+ }), "number" === typeof input3.ratio || $report(_exceptionable2, {
2199
+ path: _path2 + ".ratio",
2200
+ expected: "number",
2201
+ value: input3.ratio
2202
+ })].every((flag) => flag);
2203
+ const $vo40 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.id || $report(_exceptionable2, {
2204
+ path: _path2 + ".id",
2205
+ expected: "string",
2206
+ value: input3.id
2207
+ }), "string" === typeof input3.name || $report(_exceptionable2, {
2208
+ path: _path2 + ".name",
2209
+ expected: "string",
2210
+ value: input3.name
2211
+ }), "termCollection" === input3.type || $report(_exceptionable2, {
2212
+ path: _path2 + ".type",
2213
+ expected: '"termCollection"',
2214
+ value: input3.type
2215
+ }), void 0 === input3.child_types || (Array.isArray(input3.child_types) || $report(_exceptionable2, {
2216
+ path: _path2 + ".child_types",
2217
+ expected: "(Array<string> | undefined)",
2218
+ value: input3.child_types
2219
+ })) && input3.child_types.map((elem, _index41) => "string" === typeof elem || $report(_exceptionable2, {
2220
+ path: _path2 + ".child_types[" + _index41 + "]",
2221
+ expected: "string",
2222
+ value: elem
2223
+ })).every((flag) => flag) || $report(_exceptionable2, {
2224
+ path: _path2 + ".child_types",
2225
+ expected: "(Array<string> | undefined)",
2226
+ value: input3.child_types
2227
+ }), void 0 === input3.hashtmldetail || "boolean" === typeof input3.hashtmldetail || $report(_exceptionable2, {
2228
+ path: _path2 + ".hashtmldetail",
2229
+ expected: "(boolean | undefined)",
2230
+ value: input3.hashtmldetail
2231
+ }), void 0 === input3.included_types || (Array.isArray(input3.included_types) || $report(_exceptionable2, {
2232
+ path: _path2 + ".included_types",
2233
+ expected: "(Array<string> | undefined)",
2234
+ value: input3.included_types
2235
+ })) && input3.included_types.map((elem, _index42) => "string" === typeof elem || $report(_exceptionable2, {
2236
+ path: _path2 + ".included_types[" + _index42 + "]",
2237
+ expected: "string",
2238
+ value: elem
2239
+ })).every((flag) => flag) || $report(_exceptionable2, {
2240
+ path: _path2 + ".included_types",
2241
+ expected: "(Array<string> | undefined)",
2242
+ value: input3.included_types
2243
+ }), void 0 === input3.isleaf || "boolean" === typeof input3.isleaf || $report(_exceptionable2, {
2244
+ path: _path2 + ".isleaf",
2245
+ expected: "(boolean | undefined)",
2246
+ value: input3.isleaf
2247
+ }), void 0 === input3.values || ("object" === typeof input3.values && null !== input3.values && false === Array.isArray(input3.values) || $report(_exceptionable2, {
2248
+ path: _path2 + ".values",
2249
+ expected: "(TermValues | undefined)",
2250
+ value: input3.values
2251
+ })) && $vo5(input3.values, _path2 + ".values", _exceptionable2) || $report(_exceptionable2, {
2252
+ path: _path2 + ".values",
2253
+ expected: "(TermValues | undefined)",
2254
+ value: input3.values
2255
+ }), void 0 === input3.skipValuesBuild || "boolean" === typeof input3.skipValuesBuild || $report(_exceptionable2, {
2256
+ path: _path2 + ".skipValuesBuild",
2257
+ expected: "(boolean | undefined)",
2258
+ value: input3.skipValuesBuild
2259
+ }), void 0 === input3.valueConversion || ("object" === typeof input3.valueConversion && null !== input3.valueConversion || $report(_exceptionable2, {
2260
+ path: _path2 + ".valueConversion",
2261
+ expected: "(__type.o1 | undefined)",
2262
+ value: input3.valueConversion
2263
+ })) && $vo7(input3.valueConversion, _path2 + ".valueConversion", _exceptionable2) || $report(_exceptionable2, {
2264
+ path: _path2 + ".valueConversion",
2265
+ expected: "(__type.o1 | undefined)",
2266
+ value: input3.valueConversion
2267
+ }), void 0 === input3.collectionId || "string" === typeof input3.collectionId || $report(_exceptionable2, {
2268
+ path: _path2 + ".collectionId",
2269
+ expected: "(string | undefined)",
2270
+ value: input3.collectionId
2271
+ }), void 0 === input3.lst || (Array.isArray(input3.lst) || $report(_exceptionable2, {
2272
+ path: _path2 + ".lst",
2273
+ expected: "(Array<string> | undefined)",
2274
+ value: input3.lst
2275
+ })) && input3.lst.map((elem, _index43) => "string" === typeof elem || $report(_exceptionable2, {
2276
+ path: _path2 + ".lst[" + _index43 + "]",
2277
+ expected: "string",
2278
+ value: elem
2279
+ })).every((flag) => flag) || $report(_exceptionable2, {
2280
+ path: _path2 + ".lst",
2281
+ expected: "(Array<string> | undefined)",
2282
+ value: input3.lst
2283
+ }), void 0 === input3.termlst || Array.isArray(input3.termlst) || $report(_exceptionable2, {
2284
+ path: _path2 + ".termlst",
2285
+ expected: "(Array<any> | undefined)",
2286
+ value: input3.termlst
2287
+ }), void 0 === input3.numerators || (Array.isArray(input3.numerators) || $report(_exceptionable2, {
2288
+ path: _path2 + ".numerators",
2289
+ expected: "(Array<string> | undefined)",
2290
+ value: input3.numerators
2291
+ })) && input3.numerators.map((elem, _index44) => "string" === typeof elem || $report(_exceptionable2, {
2292
+ path: _path2 + ".numerators[" + _index44 + "]",
2293
+ expected: "string",
2294
+ value: elem
2295
+ })).every((flag) => flag) || $report(_exceptionable2, {
2296
+ path: _path2 + ".numerators",
2297
+ expected: "(Array<string> | undefined)",
2298
+ value: input3.numerators
2299
+ }), void 0 === input3.newTvs || "boolean" === typeof input3.newTvs || $report(_exceptionable2, {
2300
+ path: _path2 + ".newTvs",
2301
+ expected: "(boolean | undefined)",
2302
+ value: input3.newTvs
2303
+ })].every((flag) => flag);
2178
2304
  const $vu0 = (input3, _path2, _exceptionable2 = true) => (() => {
2179
2305
  if ("tvslst" === input3.type)
2180
2306
  return $vo1(input3, _path2, _exceptionable2);
@@ -2218,6 +2344,8 @@ var validViolinRequest = (input) => {
2218
2344
  const $vu4 = (input3, _path2, _exceptionable2 = true) => (() => {
2219
2345
  if (void 0 !== input3.ranges)
2220
2346
  return $vo13(input3, _path2, _exceptionable2);
2347
+ if (void 0 !== input3.ratio)
2348
+ return $vo39(input3, _path2, _exceptionable2);
2221
2349
  return $vo3(input3, _path2, false) || $vo29(input3, _path2, false) || $vo32(input3, _path2, false);
2222
2350
  })();
2223
2351
  const $vu5 = (input3, _path2, _exceptionable2 = true) => (() => {