@sjcrh/proteinpaint-types 2.116.1-1 → 2.116.1-2
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.
|
@@ -3450,19 +3450,19 @@ var validCorrelationVolcanoResponse = (input) => {
|
|
|
3450
3450
|
value: input3.skippedVariables
|
|
3451
3451
|
}), (Array.isArray(input3.variableItems) || $report(_exceptionable2, {
|
|
3452
3452
|
path: _path2 + ".variableItems",
|
|
3453
|
-
expected: "Array<
|
|
3453
|
+
expected: "Array<VariableItemEntry>",
|
|
3454
3454
|
value: input3.variableItems
|
|
3455
3455
|
})) && input3.variableItems.map((elem, _index2) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
|
|
3456
3456
|
path: _path2 + ".variableItems[" + _index2 + "]",
|
|
3457
|
-
expected: "
|
|
3457
|
+
expected: "VariableItemEntry",
|
|
3458
3458
|
value: elem
|
|
3459
3459
|
})) && $vo2(elem, _path2 + ".variableItems[" + _index2 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
3460
3460
|
path: _path2 + ".variableItems[" + _index2 + "]",
|
|
3461
|
-
expected: "
|
|
3461
|
+
expected: "VariableItemEntry",
|
|
3462
3462
|
value: elem
|
|
3463
3463
|
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
3464
3464
|
path: _path2 + ".variableItems",
|
|
3465
|
-
expected: "Array<
|
|
3465
|
+
expected: "Array<VariableItemEntry>",
|
|
3466
3466
|
value: input3.variableItems
|
|
3467
3467
|
})].every((flag) => flag);
|
|
3468
3468
|
const $vo1 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.tw$id || $report(_exceptionable2, {
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
package/src/dataset.ts
CHANGED
|
@@ -1346,6 +1346,30 @@ keep this setting here for reason of:
|
|
|
1346
1346
|
/** allow color or shape changes in the lollipop */
|
|
1347
1347
|
allowSkewerChanges: boolean
|
|
1348
1348
|
}
|
|
1349
|
+
//* specify color map per module/group of terms. Used in the profile dataset.
|
|
1350
|
+
/** For example "National Context" is a profile module, that groups some multivalue terms for wich the category colors are the ones shown below:
|
|
1351
|
+
colorMap: {
|
|
1352
|
+
['*']: {
|
|
1353
|
+
['Not applicable for my role']: '#aaa',
|
|
1354
|
+
['Not Available/Do Not Know']: '#aaa',
|
|
1355
|
+
["I don't know"]: '#aaa',
|
|
1356
|
+
['Almost Never']: '#595959',
|
|
1357
|
+
['Infrequently']: '#747474',
|
|
1358
|
+
['No']: '#aaa'
|
|
1359
|
+
},
|
|
1360
|
+
['National Context']: {
|
|
1361
|
+
['Almost Always']: '#15557C',
|
|
1362
|
+
['Frequently']: '#1E77BB',
|
|
1363
|
+
['Sometimes']: '#2FA9F4',
|
|
1364
|
+
['Yes']: '#1E77BB'
|
|
1365
|
+
},
|
|
1366
|
+
}
|
|
1367
|
+
If the colors are the same for all the categories, use the wildcard '*' to define the color for all the modules.
|
|
1368
|
+
**/
|
|
1369
|
+
colorMap?: {
|
|
1370
|
+
/** colors for a category multivalues */
|
|
1371
|
+
[index: string]: { [index: string]: string }
|
|
1372
|
+
}
|
|
1349
1373
|
}
|
|
1350
1374
|
|
|
1351
1375
|
type SampleType = {
|
|
@@ -24,18 +24,20 @@ export type CorrelationVolcanoResponse = {
|
|
|
24
24
|
tw$id: string
|
|
25
25
|
}[]
|
|
26
26
|
/** each element is test result of one variable corresponding to variableTwLst */
|
|
27
|
-
variableItems:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
27
|
+
variableItems: VariableItemEntry[]
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export type VariableItemEntry = {
|
|
31
|
+
/** correlation coefficient, -1 to 1 */
|
|
32
|
+
correlation: number
|
|
33
|
+
/** pvalue */
|
|
34
|
+
original_pvalue: number
|
|
35
|
+
/** pvalue */
|
|
36
|
+
adjusted_pvalue: number
|
|
37
|
+
/** tw.$id, for client to match the item with variableTwLst */
|
|
38
|
+
tw$id: string
|
|
39
|
+
/** number of samples analyzed. samples not having complete data for all terms will be excluded, thus size may be lower than current cohort */
|
|
40
|
+
sampleSize: number
|
|
39
41
|
}
|
|
40
42
|
|
|
41
43
|
export const CorrelationVolcanoPayload: RoutePayload = {
|