@sjcrh/proteinpaint-types 2.107.0 → 2.109.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.
@@ -22,7 +22,7 @@ var diffExpPayload = {
22
22
  var validDERequest = (input) => {
23
23
  const errors = [];
24
24
  const __is = (input2) => {
25
- const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && true && "number" === typeof input3.min_count && "number" === typeof input3.min_total_count && ("text" === input3.storage_type || "HDF5" === input3.storage_type) && (void 0 === input3.method || "string" === typeof input3.method) && true && (void 0 === input3.VarGenes || "number" === typeof input3.VarGenes);
25
+ const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && true && "number" === typeof input3.min_count && "number" === typeof input3.min_total_count && ("text" === input3.storage_type || "HDF5" === input3.storage_type) && (void 0 === input3.method || "string" === typeof input3.method) && true && true && (void 0 === input3.VarGenes || "number" === typeof input3.VarGenes);
26
26
  return "object" === typeof input2 && null !== input2 && $io0(input2);
27
27
  };
28
28
  if (false === __is(input)) {
@@ -52,7 +52,7 @@ var validDERequest = (input) => {
52
52
  path: _path2 + ".method",
53
53
  expected: "(string | undefined)",
54
54
  value: input3.method
55
- }), true, void 0 === input3.VarGenes || "number" === typeof input3.VarGenes || $report(_exceptionable2, {
55
+ }), true, true, void 0 === input3.VarGenes || "number" === typeof input3.VarGenes || $report(_exceptionable2, {
56
56
  path: _path2 + ".VarGenes",
57
57
  expected: "(number | undefined)",
58
58
  value: input3.VarGenes
@@ -3328,31 +3328,53 @@ var validCorrelationVolcanoRequest = (input) => {
3328
3328
  var validCorrelationVolcanoResponse = (input) => {
3329
3329
  const errors = [];
3330
3330
  const __is = (input2) => {
3331
- const $io0 = (input3) => Array.isArray(input3.variableItems) && input3.variableItems.every((elem) => "object" === typeof elem && null !== elem && $io1(elem));
3332
- const $io1 = (input3) => "number" === typeof input3.correlation && "number" === typeof input3.original_pvalue && "number" === typeof input3.adjusted_pvalue && "string" === typeof input3.tw$id && "number" === typeof input3.sampleSize;
3331
+ const $io0 = (input3) => Array.isArray(input3.skippedVariables) && input3.skippedVariables.every((elem) => "object" === typeof elem && null !== elem && $io1(elem)) && (Array.isArray(input3.variableItems) && input3.variableItems.every((elem) => "object" === typeof elem && null !== elem && $io2(elem)));
3332
+ const $io1 = (input3) => "string" === typeof input3.tw$id;
3333
+ const $io2 = (input3) => "number" === typeof input3.correlation && "number" === typeof input3.original_pvalue && "number" === typeof input3.adjusted_pvalue && "string" === typeof input3.tw$id && "number" === typeof input3.sampleSize;
3333
3334
  return "object" === typeof input2 && null !== input2 && $io0(input2);
3334
3335
  };
3335
3336
  if (false === __is(input)) {
3336
3337
  const $report = import_typia.createValidate.report(errors);
3337
3338
  ((input2, _path, _exceptionable = true) => {
3338
- const $vo0 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.variableItems) || $report(_exceptionable2, {
3339
- path: _path2 + ".variableItems",
3339
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.skippedVariables) || $report(_exceptionable2, {
3340
+ path: _path2 + ".skippedVariables",
3340
3341
  expected: "Array<__type>",
3341
- value: input3.variableItems
3342
- })) && input3.variableItems.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
3343
- path: _path2 + ".variableItems[" + _index1 + "]",
3342
+ value: input3.skippedVariables
3343
+ })) && input3.skippedVariables.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
3344
+ path: _path2 + ".skippedVariables[" + _index1 + "]",
3344
3345
  expected: "__type",
3345
3346
  value: elem
3346
- })) && $vo1(elem, _path2 + ".variableItems[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
3347
- path: _path2 + ".variableItems[" + _index1 + "]",
3347
+ })) && $vo1(elem, _path2 + ".skippedVariables[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
3348
+ path: _path2 + ".skippedVariables[" + _index1 + "]",
3348
3349
  expected: "__type",
3349
3350
  value: elem
3350
3351
  })).every((flag) => flag) || $report(_exceptionable2, {
3351
- path: _path2 + ".variableItems",
3352
+ path: _path2 + ".skippedVariables",
3352
3353
  expected: "Array<__type>",
3354
+ value: input3.skippedVariables
3355
+ }), (Array.isArray(input3.variableItems) || $report(_exceptionable2, {
3356
+ path: _path2 + ".variableItems",
3357
+ expected: "Array<__type>.o1",
3353
3358
  value: input3.variableItems
3359
+ })) && input3.variableItems.map((elem, _index2) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
3360
+ path: _path2 + ".variableItems[" + _index2 + "]",
3361
+ expected: "__type.o1",
3362
+ value: elem
3363
+ })) && $vo2(elem, _path2 + ".variableItems[" + _index2 + "]", _exceptionable2) || $report(_exceptionable2, {
3364
+ path: _path2 + ".variableItems[" + _index2 + "]",
3365
+ expected: "__type.o1",
3366
+ value: elem
3367
+ })).every((flag) => flag) || $report(_exceptionable2, {
3368
+ path: _path2 + ".variableItems",
3369
+ expected: "Array<__type>.o1",
3370
+ value: input3.variableItems
3371
+ })].every((flag) => flag);
3372
+ const $vo1 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.tw$id || $report(_exceptionable2, {
3373
+ path: _path2 + ".tw$id",
3374
+ expected: "string",
3375
+ value: input3.tw$id
3354
3376
  })].every((flag) => flag);
3355
- const $vo1 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.correlation || $report(_exceptionable2, {
3377
+ const $vo2 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.correlation || $report(_exceptionable2, {
3356
3378
  path: _path2 + ".correlation",
3357
3379
  expected: "number",
3358
3380
  value: input3.correlation
@@ -2,7 +2,7 @@ import {
2
2
  CorrelationVolcanoPayload,
3
3
  validCorrelationVolcanoRequest,
4
4
  validCorrelationVolcanoResponse
5
- } from "./chunk-FUIYK4TP.js";
5
+ } from "./chunk-2R2EFRAW.js";
6
6
  import "./chunk-Z6B6IQIY.js";
7
7
  export {
8
8
  CorrelationVolcanoPayload,
package/dist/index.js CHANGED
@@ -82,7 +82,7 @@ import {
82
82
  diffExpPayload,
83
83
  validDERequest,
84
84
  validDEResponse
85
- } from "./chunk-IYDRVZXE.js";
85
+ } from "./chunk-2HMIFPRH.js";
86
86
  import {
87
87
  boxplotPayload,
88
88
  validBoxPlotRequest,
@@ -212,7 +212,7 @@ import {
212
212
  CorrelationVolcanoPayload,
213
213
  validCorrelationVolcanoRequest,
214
214
  validCorrelationVolcanoResponse
215
- } from "./chunk-FUIYK4TP.js";
215
+ } from "./chunk-2R2EFRAW.js";
216
216
  import {
217
217
  datasetPayload,
218
218
  validDatasetRequest,
package/dist/termdb.DE.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  diffExpPayload,
3
3
  validDERequest,
4
4
  validDEResponse
5
- } from "./chunk-IYDRVZXE.js";
5
+ } from "./chunk-2HMIFPRH.js";
6
6
  import "./chunk-Z6B6IQIY.js";
7
7
  export {
8
8
  diffExpPayload,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.107.0",
3
+ "version": "2.109.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
@@ -899,8 +899,10 @@ type ScatterPlotsEntry = {
899
899
  settings?: { [index: string]: any }
900
900
  /** by default the dots are called "samples" on the plot, use this to call it by diff name e.g. "cells" */
901
901
  sampleType?: string
902
- /** a plot can be colored by either a dict term termsetting (colorTW) or file column values (colorColumn) */
902
+ /** a termsetting to supply dot color */
903
903
  colorTW?: { id: string }
904
+ /** a termsetting to supply dot shape */
905
+ shapeTW?: { id: string } // TODO replace with tw type
904
906
  colorColumn?: ColorColumn
905
907
  /** provide a sampletype term to filter for specific type of samples for subjects with multiple samples and show in the plot.
906
908
  e.g. to only show D samples from all patients
@@ -1386,6 +1388,8 @@ type MassNav = {
1386
1388
  }
1387
1389
  /** customize background color of active navigation tab */
1388
1390
  activeColor?: string
1391
+ /** customize background color of active navigation tab on hover */
1392
+ activeColorHover?: string
1389
1393
  }
1390
1394
 
1391
1395
  type ActiveItem = {
@@ -18,6 +18,11 @@ export type CorrelationVolcanoRequest = {
18
18
  }
19
19
 
20
20
  export type CorrelationVolcanoResponse = {
21
+ /** Terms with not enough vectors to calculate correlation to be shown in legend */
22
+ skippedVariables: {
23
+ /** matching tw $id */
24
+ tw$id: string
25
+ }[]
21
26
  /** each element is test result of one variable corresponding to variableTwLst */
22
27
  variableItems: {
23
28
  /** correlation coefficient, -1 to 1 */
@@ -15,8 +15,10 @@ export type DERequest = {
15
15
  storage_type: 'text' | 'HDF5'
16
16
  /** Method of DE used wilcoxon/edgeR */
17
17
  method?: string
18
- /** Term for confounding variable (if present) */
18
+ /** Term for confounding variable1 (if present) */
19
19
  tw?: any
20
+ /** Term for confounding variable2 (if present) */
21
+ tw2?: any
20
22
  /** Number of variable genes (defined only for parametric DE methods) */
21
23
  VarGenes?: number
22
24
  }
@@ -36,10 +38,14 @@ export type ExpressionInput = {
36
38
  min_total_count: number
37
39
  /** Type of storage file: HDF5 or text. Text will be deprecated in the future */
38
40
  storage_type: 'HDF5' | 'text'
39
- /** Confounding variable for DE analysis. Maybe array of string (Gender: Male/female) or number (Age). For now supporting 1 confounding variable. Later will add support for multiple confounding variables */
41
+ /** Confounding variable1 for DE analysis. Maybe array of string (Gender: Male/female) or number (Age). For now supporting 1 confounding variable. */
40
42
  conf1?: any[]
41
- /** Type of the confounding variable (categorical/float) */
42
- conf1_type?: 'categorical' | 'float'
43
+ /** Type of the confounding variable1 (continuous/discrete) */
44
+ conf1_mode?: 'continuous' | 'discrete'
45
+ /** Confounding variable2 for DE analysis. Maybe array of string (Gender: Male/female) or number (Age). For now supporting 1 confounding variable. */
46
+ conf2?: any[]
47
+ /** Type of the confounding variable2 (continuous/discrete) */
48
+ conf2_mode?: 'continuous' | 'discrete'
43
49
  /** Number of variable genes to be included for DE analysis (optional) */
44
50
  VarGenes?: number
45
51
  }