@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 && $
|
|
3332
|
-
const $io1 = (input3) => "
|
|
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.
|
|
3339
|
-
path: _path2 + ".
|
|
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.
|
|
3342
|
-
})) && input3.
|
|
3343
|
-
path: _path2 + ".
|
|
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 + ".
|
|
3347
|
-
path: _path2 + ".
|
|
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 + ".
|
|
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 $
|
|
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
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -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 */
|
package/src/routes/termdb.DE.ts
CHANGED
|
@@ -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 (
|
|
42
|
-
|
|
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
|
}
|