@sjcrh/proteinpaint-types 2.107.0 → 2.108.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.
@@ -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
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.107.0",
3
+ "version": "2.108.0",
4
4
  "type": "module",
5
5
  "description": "Shared type definitions between ProteinPaint server and client code",
6
6
  "main": "src/index.ts",
@@ -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 */
@@ -38,8 +38,8 @@ export type ExpressionInput = {
38
38
  storage_type: 'HDF5' | 'text'
39
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 */
40
40
  conf1?: any[]
41
- /** Type of the confounding variable (categorical/float) */
42
- conf1_type?: 'categorical' | 'float'
41
+ /** Type of the confounding variable (continuous/discrete) */
42
+ conf1_mode?: 'continuous' | 'discrete'
43
43
  /** Number of variable genes to be included for DE analysis (optional) */
44
44
  VarGenes?: number
45
45
  }