@vitessce/biomarker-select 3.5.4 → 3.5.6
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.
package/dist/index.js
CHANGED
|
@@ -910,7 +910,8 @@ const ViewType = {
|
|
|
910
910
|
DOT_PLOT: "dotPlot",
|
|
911
911
|
FEATURE_BAR_PLOT: "featureBarPlot",
|
|
912
912
|
BIOMARKER_SELECT: "biomarkerSelect",
|
|
913
|
-
LINK_CONTROLLER: "linkController"
|
|
913
|
+
LINK_CONTROLLER: "linkController",
|
|
914
|
+
DUAL_SCATTERPLOT: "dualScatterplot"
|
|
914
915
|
};
|
|
915
916
|
const AsyncFunctionType = {
|
|
916
917
|
// String input (rather than Node input)
|
|
@@ -974,15 +975,23 @@ const CoordinationType = {
|
|
|
974
975
|
HEATMAP_ZOOM_Y: "heatmapZoomY",
|
|
975
976
|
HEATMAP_TARGET_X: "heatmapTargetX",
|
|
976
977
|
HEATMAP_TARGET_Y: "heatmapTargetY",
|
|
977
|
-
OBS_FILTER: "obsFilter",
|
|
978
978
|
OBS_HIGHLIGHT: "obsHighlight",
|
|
979
|
+
OBS_SELECTION: "obsSelection",
|
|
979
980
|
OBS_SET_SELECTION: "obsSetSelection",
|
|
981
|
+
OBS_SELECTION_MODE: "obsSelectionMode",
|
|
982
|
+
OBS_FILTER: "obsFilter",
|
|
983
|
+
OBS_SET_FILTER: "obsSetFilter",
|
|
984
|
+
OBS_FILTER_MODE: "obsFilterMode",
|
|
980
985
|
OBS_SET_HIGHLIGHT: "obsSetHighlight",
|
|
981
986
|
OBS_SET_EXPANSION: "obsSetExpansion",
|
|
982
987
|
OBS_SET_COLOR: "obsSetColor",
|
|
983
|
-
FEATURE_FILTER: "featureFilter",
|
|
984
988
|
FEATURE_HIGHLIGHT: "featureHighlight",
|
|
985
989
|
FEATURE_SELECTION: "featureSelection",
|
|
990
|
+
FEATURE_SET_SELECTION: "featureSetSelection",
|
|
991
|
+
FEATURE_SELECTION_MODE: "featureSelectionMode",
|
|
992
|
+
FEATURE_FILTER: "featureFilter",
|
|
993
|
+
FEATURE_SET_FILTER: "featureSetFilter",
|
|
994
|
+
FEATURE_FILTER_MODE: "featureFilterMode",
|
|
986
995
|
FEATURE_VALUE_COLORMAP: "featureValueColormap",
|
|
987
996
|
FEATURE_VALUE_TRANSFORM: "featureValueTransform",
|
|
988
997
|
FEATURE_VALUE_COLORMAP_RANGE: "featureValueColormapRange",
|
|
@@ -1049,7 +1058,12 @@ const CoordinationType = {
|
|
|
1049
1058
|
SPATIAL_CHANNEL_LABEL_SIZE: "spatialChannelLabelSize",
|
|
1050
1059
|
// Multi-sample / comparative
|
|
1051
1060
|
SAMPLE_TYPE: "sampleType",
|
|
1061
|
+
SAMPLE_SELECTION: "sampleSelection",
|
|
1052
1062
|
SAMPLE_SET_SELECTION: "sampleSetSelection",
|
|
1063
|
+
SAMPLE_SELECTION_MODE: "sampleSelectionMode",
|
|
1064
|
+
SAMPLE_FILTER: "sampleFilter",
|
|
1065
|
+
SAMPLE_SET_FILTER: "sampleSetFilter",
|
|
1066
|
+
SAMPLE_FILTER_MODE: "sampleFilterMode",
|
|
1053
1067
|
SAMPLE_SET_COLOR: "sampleSetColor",
|
|
1054
1068
|
EMBEDDING_POINTS_VISIBLE: "embeddingPointsVisible",
|
|
1055
1069
|
EMBEDDING_CONTOURS_VISIBLE: "embeddingContoursVisible",
|
|
@@ -1081,6 +1095,7 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
1081
1095
|
CoordinationType.OBS_FILTER,
|
|
1082
1096
|
CoordinationType.OBS_HIGHLIGHT,
|
|
1083
1097
|
CoordinationType.OBS_SET_SELECTION,
|
|
1098
|
+
CoordinationType.OBS_SET_FILTER,
|
|
1084
1099
|
CoordinationType.OBS_SET_HIGHLIGHT,
|
|
1085
1100
|
CoordinationType.OBS_SET_COLOR,
|
|
1086
1101
|
CoordinationType.FEATURE_HIGHLIGHT,
|
|
@@ -1092,6 +1107,50 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
1092
1107
|
CoordinationType.TOOLTIPS_VISIBLE,
|
|
1093
1108
|
CoordinationType.SAMPLE_TYPE,
|
|
1094
1109
|
CoordinationType.SAMPLE_SET_SELECTION,
|
|
1110
|
+
CoordinationType.SAMPLE_SET_FILTER,
|
|
1111
|
+
CoordinationType.SAMPLE_SET_COLOR,
|
|
1112
|
+
CoordinationType.EMBEDDING_POINTS_VISIBLE,
|
|
1113
|
+
CoordinationType.EMBEDDING_CONTOURS_VISIBLE,
|
|
1114
|
+
CoordinationType.EMBEDDING_CONTOURS_FILLED,
|
|
1115
|
+
CoordinationType.EMBEDDING_CONTOUR_PERCENTILES,
|
|
1116
|
+
CoordinationType.CONTOUR_COLOR_ENCODING,
|
|
1117
|
+
CoordinationType.CONTOUR_COLOR
|
|
1118
|
+
],
|
|
1119
|
+
[ViewType.DUAL_SCATTERPLOT]: [
|
|
1120
|
+
CoordinationType.DATASET,
|
|
1121
|
+
CoordinationType.OBS_TYPE,
|
|
1122
|
+
CoordinationType.FEATURE_TYPE,
|
|
1123
|
+
CoordinationType.FEATURE_VALUE_TYPE,
|
|
1124
|
+
CoordinationType.OBS_LABELS_TYPE,
|
|
1125
|
+
CoordinationType.EMBEDDING_TYPE,
|
|
1126
|
+
CoordinationType.EMBEDDING_ZOOM,
|
|
1127
|
+
CoordinationType.EMBEDDING_ROTATION,
|
|
1128
|
+
CoordinationType.EMBEDDING_TARGET_X,
|
|
1129
|
+
CoordinationType.EMBEDDING_TARGET_Y,
|
|
1130
|
+
CoordinationType.EMBEDDING_TARGET_Z,
|
|
1131
|
+
CoordinationType.EMBEDDING_OBS_SET_POLYGONS_VISIBLE,
|
|
1132
|
+
CoordinationType.EMBEDDING_OBS_SET_LABELS_VISIBLE,
|
|
1133
|
+
CoordinationType.EMBEDDING_OBS_SET_LABEL_SIZE,
|
|
1134
|
+
CoordinationType.EMBEDDING_OBS_RADIUS,
|
|
1135
|
+
CoordinationType.EMBEDDING_OBS_RADIUS_MODE,
|
|
1136
|
+
CoordinationType.EMBEDDING_OBS_OPACITY,
|
|
1137
|
+
CoordinationType.EMBEDDING_OBS_OPACITY_MODE,
|
|
1138
|
+
CoordinationType.OBS_FILTER,
|
|
1139
|
+
CoordinationType.OBS_HIGHLIGHT,
|
|
1140
|
+
CoordinationType.OBS_SET_SELECTION,
|
|
1141
|
+
CoordinationType.OBS_SET_FILTER,
|
|
1142
|
+
CoordinationType.OBS_SET_HIGHLIGHT,
|
|
1143
|
+
CoordinationType.OBS_SET_COLOR,
|
|
1144
|
+
CoordinationType.FEATURE_HIGHLIGHT,
|
|
1145
|
+
CoordinationType.FEATURE_SELECTION,
|
|
1146
|
+
CoordinationType.FEATURE_VALUE_COLORMAP,
|
|
1147
|
+
CoordinationType.FEATURE_VALUE_COLORMAP_RANGE,
|
|
1148
|
+
CoordinationType.OBS_COLOR_ENCODING,
|
|
1149
|
+
CoordinationType.ADDITIONAL_OBS_SETS,
|
|
1150
|
+
CoordinationType.TOOLTIPS_VISIBLE,
|
|
1151
|
+
CoordinationType.SAMPLE_TYPE,
|
|
1152
|
+
CoordinationType.SAMPLE_SET_SELECTION,
|
|
1153
|
+
CoordinationType.SAMPLE_SET_FILTER,
|
|
1095
1154
|
CoordinationType.SAMPLE_SET_COLOR,
|
|
1096
1155
|
CoordinationType.EMBEDDING_POINTS_VISIBLE,
|
|
1097
1156
|
CoordinationType.EMBEDDING_CONTOURS_VISIBLE,
|
|
@@ -1158,6 +1217,7 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
1158
1217
|
CoordinationType.OBS_FILTER,
|
|
1159
1218
|
CoordinationType.OBS_HIGHLIGHT,
|
|
1160
1219
|
CoordinationType.OBS_SET_SELECTION,
|
|
1220
|
+
CoordinationType.OBS_SET_FILTER,
|
|
1161
1221
|
CoordinationType.OBS_SET_HIGHLIGHT,
|
|
1162
1222
|
CoordinationType.OBS_SET_COLOR,
|
|
1163
1223
|
CoordinationType.FEATURE_HIGHLIGHT,
|
|
@@ -1194,6 +1254,7 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
1194
1254
|
CoordinationType.OBS_FILTER,
|
|
1195
1255
|
CoordinationType.OBS_HIGHLIGHT,
|
|
1196
1256
|
CoordinationType.OBS_SET_SELECTION,
|
|
1257
|
+
CoordinationType.OBS_SET_FILTER,
|
|
1197
1258
|
CoordinationType.OBS_SET_HIGHLIGHT,
|
|
1198
1259
|
CoordinationType.OBS_SET_COLOR,
|
|
1199
1260
|
CoordinationType.FEATURE_HIGHLIGHT,
|
|
@@ -1253,6 +1314,7 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
1253
1314
|
CoordinationType.OBS_FILTER,
|
|
1254
1315
|
CoordinationType.OBS_HIGHLIGHT,
|
|
1255
1316
|
CoordinationType.OBS_SET_SELECTION,
|
|
1317
|
+
CoordinationType.OBS_SET_FILTER,
|
|
1256
1318
|
CoordinationType.OBS_SET_HIGHLIGHT,
|
|
1257
1319
|
CoordinationType.OBS_SET_COLOR,
|
|
1258
1320
|
CoordinationType.FEATURE_FILTER,
|
|
@@ -1268,6 +1330,7 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
1268
1330
|
CoordinationType.DATASET,
|
|
1269
1331
|
CoordinationType.OBS_TYPE,
|
|
1270
1332
|
CoordinationType.OBS_SET_SELECTION,
|
|
1333
|
+
CoordinationType.OBS_SET_FILTER,
|
|
1271
1334
|
CoordinationType.OBS_SET_EXPANSION,
|
|
1272
1335
|
CoordinationType.OBS_SET_HIGHLIGHT,
|
|
1273
1336
|
CoordinationType.OBS_SET_COLOR,
|
|
@@ -1279,6 +1342,7 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
1279
1342
|
CoordinationType.DATASET,
|
|
1280
1343
|
CoordinationType.OBS_TYPE,
|
|
1281
1344
|
CoordinationType.OBS_SET_SELECTION,
|
|
1345
|
+
CoordinationType.OBS_SET_FILTER,
|
|
1282
1346
|
CoordinationType.OBS_SET_EXPANSION,
|
|
1283
1347
|
CoordinationType.OBS_SET_HIGHLIGHT,
|
|
1284
1348
|
CoordinationType.OBS_SET_COLOR,
|
|
@@ -1311,6 +1375,7 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
1311
1375
|
CoordinationType.FEATURE_VALUE_TRANSFORM,
|
|
1312
1376
|
CoordinationType.FEATURE_VALUE_TRANSFORM_COEFFICIENT,
|
|
1313
1377
|
CoordinationType.OBS_SET_SELECTION,
|
|
1378
|
+
CoordinationType.OBS_SET_FILTER,
|
|
1314
1379
|
CoordinationType.OBS_SET_HIGHLIGHT,
|
|
1315
1380
|
CoordinationType.OBS_SET_COLOR,
|
|
1316
1381
|
CoordinationType.ADDITIONAL_OBS_SETS,
|
|
@@ -1327,7 +1392,8 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
1327
1392
|
CoordinationType.ADDITIONAL_OBS_SETS,
|
|
1328
1393
|
CoordinationType.OBS_SET_COLOR,
|
|
1329
1394
|
CoordinationType.OBS_COLOR_ENCODING,
|
|
1330
|
-
CoordinationType.OBS_SET_SELECTION
|
|
1395
|
+
CoordinationType.OBS_SET_SELECTION,
|
|
1396
|
+
CoordinationType.OBS_SET_FILTER
|
|
1331
1397
|
],
|
|
1332
1398
|
[ViewType.LAYER_CONTROLLER]: [
|
|
1333
1399
|
CoordinationType.DATASET,
|
|
@@ -1442,11 +1508,13 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
1442
1508
|
CoordinationType.FEATURE_VALUE_POSITIVITY_THRESHOLD,
|
|
1443
1509
|
CoordinationType.FEATURE_VALUE_COLORMAP,
|
|
1444
1510
|
CoordinationType.OBS_SET_SELECTION,
|
|
1511
|
+
CoordinationType.OBS_SET_FILTER,
|
|
1445
1512
|
CoordinationType.OBS_SET_HIGHLIGHT,
|
|
1446
1513
|
CoordinationType.OBS_SET_COLOR,
|
|
1447
1514
|
CoordinationType.ADDITIONAL_OBS_SETS,
|
|
1448
1515
|
CoordinationType.SAMPLE_TYPE,
|
|
1449
1516
|
CoordinationType.SAMPLE_SET_SELECTION,
|
|
1517
|
+
CoordinationType.SAMPLE_SET_FILTER,
|
|
1450
1518
|
CoordinationType.SAMPLE_SET_COLOR
|
|
1451
1519
|
],
|
|
1452
1520
|
higlass: [
|
|
@@ -1477,7 +1545,10 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
1477
1545
|
[ViewType.LINK_CONTROLLER]: [],
|
|
1478
1546
|
[ViewType.BIOMARKER_SELECT]: [
|
|
1479
1547
|
CoordinationType.FEATURE_SELECTION,
|
|
1480
|
-
CoordinationType.SAMPLE_SET_SELECTION
|
|
1548
|
+
CoordinationType.SAMPLE_SET_SELECTION,
|
|
1549
|
+
CoordinationType.SAMPLE_SET_FILTER,
|
|
1550
|
+
CoordinationType.OBS_SET_SELECTION,
|
|
1551
|
+
CoordinationType.OBS_SET_FILTER
|
|
1481
1552
|
// TODO: create coordination types for internal state of the biomarker selection view?
|
|
1482
1553
|
]
|
|
1483
1554
|
};
|
|
@@ -30871,8 +30942,8 @@ function BiomarkerSelectSubscriber(props) {
|
|
|
30871
30942
|
coordinationScopes
|
|
30872
30943
|
);
|
|
30873
30944
|
const viewConfigStoreApi = useViewConfigStoreApi();
|
|
30874
|
-
useViewConfig();
|
|
30875
|
-
useSetViewConfig(viewConfigStoreApi);
|
|
30945
|
+
const viewConfig = useViewConfig();
|
|
30946
|
+
const setViewConfig = useSetViewConfig(viewConfigStoreApi);
|
|
30876
30947
|
const [isSelecting, setIsSelecting] = useState(true);
|
|
30877
30948
|
const [mode, setMode] = useState(null);
|
|
30878
30949
|
const [step, setStep] = useState(null);
|
|
@@ -30906,7 +30977,20 @@ function BiomarkerSelectSubscriber(props) {
|
|
|
30906
30977
|
getEdges,
|
|
30907
30978
|
stratifications: stratificationOptions,
|
|
30908
30979
|
onFinish: () => {
|
|
30909
|
-
|
|
30980
|
+
setViewConfig({
|
|
30981
|
+
...viewConfig,
|
|
30982
|
+
coordinationSpace: {
|
|
30983
|
+
...viewConfig.coordinationSpace,
|
|
30984
|
+
sampleSetFilter: {
|
|
30985
|
+
...viewConfig.coordinationSpace.sampleSetFilter,
|
|
30986
|
+
"case-control": currentStratificationSelection == null ? void 0 : currentStratificationSelection.sampleSets
|
|
30987
|
+
},
|
|
30988
|
+
sampleSetSelection: {
|
|
30989
|
+
...viewConfig.coordinationSpace.sampleSetSelection,
|
|
30990
|
+
"case-control": currentStratificationSelection == null ? void 0 : currentStratificationSelection.sampleSets
|
|
30991
|
+
}
|
|
30992
|
+
}
|
|
30993
|
+
});
|
|
30910
30994
|
}
|
|
30911
30995
|
}
|
|
30912
30996
|
) : null });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BiomarkerSelectSubscriber.d.ts","sourceRoot":"","sources":["../src/BiomarkerSelectSubscriber.js"],"names":[],"mappings":"AAcA;;;;;GAKG;AACH,iDAHG;IAA+F,qBAAqB,EAA5G;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,kBAAkB,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,CAAA;KAAC,EAAE;CACvF,
|
|
1
|
+
{"version":3,"file":"BiomarkerSelectSubscriber.d.ts","sourceRoot":"","sources":["../src/BiomarkerSelectSubscriber.js"],"names":[],"mappings":"AAcA;;;;;GAKG;AACH,iDAHG;IAA+F,qBAAqB,EAA5G;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,kBAAkB,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,CAAA;KAAC,EAAE;CACvF,eAmFF"}
|
|
@@ -30,24 +30,19 @@ export function BiomarkerSelectSubscriber(props) {
|
|
|
30
30
|
const autocompleteNode = useCallback(async (inputValue) => autocompleteFeature(inputValue), [autocompleteFeature]);
|
|
31
31
|
const getEdges = useCallback(async (node, targetModality) => transformFeature(node, targetModality), [transformFeature]);
|
|
32
32
|
return (_jsx(_Fragment, { children: isSelecting ? (_jsx(ScmdUi, { mode: mode, setMode: setMode, step: step, setStep: setStep, currentModalityAgnosticSelection: currentModalityAgnosticSelection, setCurrentModalityAgnosticSelection: setCurrentModalityAgnosticSelection, currentModalitySpecificSelection: currentModalitySpecificSelection, setCurrentModalitySpecificSelection: setCurrentModalitySpecificSelection, currentStratificationSelection: currentStratificationSelection, setCurrentStratificationSelection: setCurrentStratificationSelection, autocompleteNode: autocompleteNode, getEdges: getEdges, stratifications: stratificationOptions, onFinish: () => {
|
|
33
|
-
// eslint-disable-next-line no-console
|
|
34
|
-
console.log('Done selecting');
|
|
35
|
-
/*
|
|
36
|
-
console.log(viewConfig);
|
|
37
33
|
setViewConfig({
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
34
|
+
...viewConfig,
|
|
35
|
+
coordinationSpace: {
|
|
36
|
+
...viewConfig.coordinationSpace,
|
|
37
|
+
sampleSetFilter: {
|
|
38
|
+
...viewConfig.coordinationSpace.sampleSetFilter,
|
|
39
|
+
'case-control': currentStratificationSelection?.sampleSets,
|
|
40
|
+
},
|
|
41
|
+
sampleSetSelection: {
|
|
42
|
+
...viewConfig.coordinationSpace.sampleSetSelection,
|
|
43
|
+
'case-control': currentStratificationSelection?.sampleSets,
|
|
44
|
+
},
|
|
44
45
|
},
|
|
45
|
-
sampleSetSelection: {
|
|
46
|
-
...viewConfig.coordinationSpace.sampleSetSelection,
|
|
47
|
-
'case-control': currentStratificationSelection?.sampleSets,
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
46
|
});
|
|
51
|
-
*/
|
|
52
47
|
} })) : null }));
|
|
53
48
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/biomarker-select",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.6",
|
|
4
4
|
"author": "Gehlenborg Lab",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"react-window": "^1.8.10",
|
|
25
25
|
"fuse.js": "^7.0.0",
|
|
26
26
|
"d3-dsv": "^1.1.1",
|
|
27
|
-
"@vitessce/constants-internal": "3.5.
|
|
28
|
-
"@vitessce/vit-s": "3.5.
|
|
29
|
-
"@vitessce/types": "3.5.
|
|
27
|
+
"@vitessce/constants-internal": "3.5.6",
|
|
28
|
+
"@vitessce/vit-s": "3.5.6",
|
|
29
|
+
"@vitessce/types": "3.5.6"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@testing-library/jest-dom": "^5.16.4",
|
|
@@ -80,10 +80,6 @@ export function BiomarkerSelectSubscriber(props) {
|
|
|
80
80
|
getEdges={getEdges}
|
|
81
81
|
stratifications={stratificationOptions}
|
|
82
82
|
onFinish={() => {
|
|
83
|
-
// eslint-disable-next-line no-console
|
|
84
|
-
console.log('Done selecting');
|
|
85
|
-
/*
|
|
86
|
-
console.log(viewConfig);
|
|
87
83
|
setViewConfig({
|
|
88
84
|
...viewConfig,
|
|
89
85
|
coordinationSpace: {
|
|
@@ -98,7 +94,6 @@ export function BiomarkerSelectSubscriber(props) {
|
|
|
98
94
|
},
|
|
99
95
|
},
|
|
100
96
|
});
|
|
101
|
-
*/
|
|
102
97
|
}}
|
|
103
98
|
/>
|
|
104
99
|
) : null}
|