@sjcrh/proteinpaint-types 2.108.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
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,
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.108.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 = {
@@ -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 (continuous/discrete) */
43
+ /** Type of the confounding variable1 (continuous/discrete) */
42
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
  }