@vitessce/biomarker-select 3.5.5 → 3.5.7

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,9 @@ 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",
915
+ TREEMAP: "treemap"
914
916
  };
915
917
  const AsyncFunctionType = {
916
918
  // String input (rather than Node input)
@@ -974,15 +976,23 @@ const CoordinationType = {
974
976
  HEATMAP_ZOOM_Y: "heatmapZoomY",
975
977
  HEATMAP_TARGET_X: "heatmapTargetX",
976
978
  HEATMAP_TARGET_Y: "heatmapTargetY",
977
- OBS_FILTER: "obsFilter",
978
979
  OBS_HIGHLIGHT: "obsHighlight",
980
+ OBS_SELECTION: "obsSelection",
979
981
  OBS_SET_SELECTION: "obsSetSelection",
982
+ OBS_SELECTION_MODE: "obsSelectionMode",
983
+ OBS_FILTER: "obsFilter",
984
+ OBS_SET_FILTER: "obsSetFilter",
985
+ OBS_FILTER_MODE: "obsFilterMode",
980
986
  OBS_SET_HIGHLIGHT: "obsSetHighlight",
981
987
  OBS_SET_EXPANSION: "obsSetExpansion",
982
988
  OBS_SET_COLOR: "obsSetColor",
983
- FEATURE_FILTER: "featureFilter",
984
989
  FEATURE_HIGHLIGHT: "featureHighlight",
985
990
  FEATURE_SELECTION: "featureSelection",
991
+ FEATURE_SET_SELECTION: "featureSetSelection",
992
+ FEATURE_SELECTION_MODE: "featureSelectionMode",
993
+ FEATURE_FILTER: "featureFilter",
994
+ FEATURE_SET_FILTER: "featureSetFilter",
995
+ FEATURE_FILTER_MODE: "featureFilterMode",
986
996
  FEATURE_VALUE_COLORMAP: "featureValueColormap",
987
997
  FEATURE_VALUE_TRANSFORM: "featureValueTransform",
988
998
  FEATURE_VALUE_COLORMAP_RANGE: "featureValueColormapRange",
@@ -1049,14 +1059,22 @@ const CoordinationType = {
1049
1059
  SPATIAL_CHANNEL_LABEL_SIZE: "spatialChannelLabelSize",
1050
1060
  // Multi-sample / comparative
1051
1061
  SAMPLE_TYPE: "sampleType",
1062
+ SAMPLE_SELECTION: "sampleSelection",
1052
1063
  SAMPLE_SET_SELECTION: "sampleSetSelection",
1064
+ SAMPLE_SELECTION_MODE: "sampleSelectionMode",
1065
+ SAMPLE_FILTER: "sampleFilter",
1066
+ SAMPLE_SET_FILTER: "sampleSetFilter",
1067
+ SAMPLE_FILTER_MODE: "sampleFilterMode",
1053
1068
  SAMPLE_SET_COLOR: "sampleSetColor",
1069
+ SAMPLE_HIGHLIGHT: "sampleHighlight",
1054
1070
  EMBEDDING_POINTS_VISIBLE: "embeddingPointsVisible",
1055
1071
  EMBEDDING_CONTOURS_VISIBLE: "embeddingContoursVisible",
1056
1072
  EMBEDDING_CONTOURS_FILLED: "embeddingContoursFilled",
1057
1073
  EMBEDDING_CONTOUR_PERCENTILES: "embeddingContourPercentiles",
1058
1074
  CONTOUR_COLOR_ENCODING: "contourColorEncoding",
1059
- CONTOUR_COLOR: "contourColor"
1075
+ CONTOUR_COLOR: "contourColor",
1076
+ // Treemap
1077
+ HIERARCHY_LEVELS: "hierarchyLevels"
1060
1078
  };
1061
1079
  const COMPONENT_COORDINATION_TYPES = {
1062
1080
  [ViewType.SCATTERPLOT]: [
@@ -1081,6 +1099,50 @@ const COMPONENT_COORDINATION_TYPES = {
1081
1099
  CoordinationType.OBS_FILTER,
1082
1100
  CoordinationType.OBS_HIGHLIGHT,
1083
1101
  CoordinationType.OBS_SET_SELECTION,
1102
+ CoordinationType.OBS_SET_FILTER,
1103
+ CoordinationType.OBS_SET_HIGHLIGHT,
1104
+ CoordinationType.OBS_SET_COLOR,
1105
+ CoordinationType.FEATURE_HIGHLIGHT,
1106
+ CoordinationType.FEATURE_SELECTION,
1107
+ CoordinationType.FEATURE_VALUE_COLORMAP,
1108
+ CoordinationType.FEATURE_VALUE_COLORMAP_RANGE,
1109
+ CoordinationType.OBS_COLOR_ENCODING,
1110
+ CoordinationType.ADDITIONAL_OBS_SETS,
1111
+ CoordinationType.TOOLTIPS_VISIBLE,
1112
+ CoordinationType.SAMPLE_TYPE,
1113
+ CoordinationType.SAMPLE_SET_SELECTION,
1114
+ CoordinationType.SAMPLE_SET_FILTER,
1115
+ CoordinationType.SAMPLE_SET_COLOR,
1116
+ CoordinationType.EMBEDDING_POINTS_VISIBLE,
1117
+ CoordinationType.EMBEDDING_CONTOURS_VISIBLE,
1118
+ CoordinationType.EMBEDDING_CONTOURS_FILLED,
1119
+ CoordinationType.EMBEDDING_CONTOUR_PERCENTILES,
1120
+ CoordinationType.CONTOUR_COLOR_ENCODING,
1121
+ CoordinationType.CONTOUR_COLOR
1122
+ ],
1123
+ [ViewType.DUAL_SCATTERPLOT]: [
1124
+ CoordinationType.DATASET,
1125
+ CoordinationType.OBS_TYPE,
1126
+ CoordinationType.FEATURE_TYPE,
1127
+ CoordinationType.FEATURE_VALUE_TYPE,
1128
+ CoordinationType.OBS_LABELS_TYPE,
1129
+ CoordinationType.EMBEDDING_TYPE,
1130
+ CoordinationType.EMBEDDING_ZOOM,
1131
+ CoordinationType.EMBEDDING_ROTATION,
1132
+ CoordinationType.EMBEDDING_TARGET_X,
1133
+ CoordinationType.EMBEDDING_TARGET_Y,
1134
+ CoordinationType.EMBEDDING_TARGET_Z,
1135
+ CoordinationType.EMBEDDING_OBS_SET_POLYGONS_VISIBLE,
1136
+ CoordinationType.EMBEDDING_OBS_SET_LABELS_VISIBLE,
1137
+ CoordinationType.EMBEDDING_OBS_SET_LABEL_SIZE,
1138
+ CoordinationType.EMBEDDING_OBS_RADIUS,
1139
+ CoordinationType.EMBEDDING_OBS_RADIUS_MODE,
1140
+ CoordinationType.EMBEDDING_OBS_OPACITY,
1141
+ CoordinationType.EMBEDDING_OBS_OPACITY_MODE,
1142
+ CoordinationType.OBS_FILTER,
1143
+ CoordinationType.OBS_HIGHLIGHT,
1144
+ CoordinationType.OBS_SET_SELECTION,
1145
+ CoordinationType.OBS_SET_FILTER,
1084
1146
  CoordinationType.OBS_SET_HIGHLIGHT,
1085
1147
  CoordinationType.OBS_SET_COLOR,
1086
1148
  CoordinationType.FEATURE_HIGHLIGHT,
@@ -1092,6 +1154,7 @@ const COMPONENT_COORDINATION_TYPES = {
1092
1154
  CoordinationType.TOOLTIPS_VISIBLE,
1093
1155
  CoordinationType.SAMPLE_TYPE,
1094
1156
  CoordinationType.SAMPLE_SET_SELECTION,
1157
+ CoordinationType.SAMPLE_SET_FILTER,
1095
1158
  CoordinationType.SAMPLE_SET_COLOR,
1096
1159
  CoordinationType.EMBEDDING_POINTS_VISIBLE,
1097
1160
  CoordinationType.EMBEDDING_CONTOURS_VISIBLE,
@@ -1158,6 +1221,7 @@ const COMPONENT_COORDINATION_TYPES = {
1158
1221
  CoordinationType.OBS_FILTER,
1159
1222
  CoordinationType.OBS_HIGHLIGHT,
1160
1223
  CoordinationType.OBS_SET_SELECTION,
1224
+ CoordinationType.OBS_SET_FILTER,
1161
1225
  CoordinationType.OBS_SET_HIGHLIGHT,
1162
1226
  CoordinationType.OBS_SET_COLOR,
1163
1227
  CoordinationType.FEATURE_HIGHLIGHT,
@@ -1194,6 +1258,7 @@ const COMPONENT_COORDINATION_TYPES = {
1194
1258
  CoordinationType.OBS_FILTER,
1195
1259
  CoordinationType.OBS_HIGHLIGHT,
1196
1260
  CoordinationType.OBS_SET_SELECTION,
1261
+ CoordinationType.OBS_SET_FILTER,
1197
1262
  CoordinationType.OBS_SET_HIGHLIGHT,
1198
1263
  CoordinationType.OBS_SET_COLOR,
1199
1264
  CoordinationType.FEATURE_HIGHLIGHT,
@@ -1253,6 +1318,7 @@ const COMPONENT_COORDINATION_TYPES = {
1253
1318
  CoordinationType.OBS_FILTER,
1254
1319
  CoordinationType.OBS_HIGHLIGHT,
1255
1320
  CoordinationType.OBS_SET_SELECTION,
1321
+ CoordinationType.OBS_SET_FILTER,
1256
1322
  CoordinationType.OBS_SET_HIGHLIGHT,
1257
1323
  CoordinationType.OBS_SET_COLOR,
1258
1324
  CoordinationType.FEATURE_FILTER,
@@ -1268,6 +1334,7 @@ const COMPONENT_COORDINATION_TYPES = {
1268
1334
  CoordinationType.DATASET,
1269
1335
  CoordinationType.OBS_TYPE,
1270
1336
  CoordinationType.OBS_SET_SELECTION,
1337
+ CoordinationType.OBS_SET_FILTER,
1271
1338
  CoordinationType.OBS_SET_EXPANSION,
1272
1339
  CoordinationType.OBS_SET_HIGHLIGHT,
1273
1340
  CoordinationType.OBS_SET_COLOR,
@@ -1279,6 +1346,7 @@ const COMPONENT_COORDINATION_TYPES = {
1279
1346
  CoordinationType.DATASET,
1280
1347
  CoordinationType.OBS_TYPE,
1281
1348
  CoordinationType.OBS_SET_SELECTION,
1349
+ CoordinationType.OBS_SET_FILTER,
1282
1350
  CoordinationType.OBS_SET_EXPANSION,
1283
1351
  CoordinationType.OBS_SET_HIGHLIGHT,
1284
1352
  CoordinationType.OBS_SET_COLOR,
@@ -1311,6 +1379,7 @@ const COMPONENT_COORDINATION_TYPES = {
1311
1379
  CoordinationType.FEATURE_VALUE_TRANSFORM,
1312
1380
  CoordinationType.FEATURE_VALUE_TRANSFORM_COEFFICIENT,
1313
1381
  CoordinationType.OBS_SET_SELECTION,
1382
+ CoordinationType.OBS_SET_FILTER,
1314
1383
  CoordinationType.OBS_SET_HIGHLIGHT,
1315
1384
  CoordinationType.OBS_SET_COLOR,
1316
1385
  CoordinationType.ADDITIONAL_OBS_SETS,
@@ -1327,7 +1396,8 @@ const COMPONENT_COORDINATION_TYPES = {
1327
1396
  CoordinationType.ADDITIONAL_OBS_SETS,
1328
1397
  CoordinationType.OBS_SET_COLOR,
1329
1398
  CoordinationType.OBS_COLOR_ENCODING,
1330
- CoordinationType.OBS_SET_SELECTION
1399
+ CoordinationType.OBS_SET_SELECTION,
1400
+ CoordinationType.OBS_SET_FILTER
1331
1401
  ],
1332
1402
  [ViewType.LAYER_CONTROLLER]: [
1333
1403
  CoordinationType.DATASET,
@@ -1442,11 +1512,13 @@ const COMPONENT_COORDINATION_TYPES = {
1442
1512
  CoordinationType.FEATURE_VALUE_POSITIVITY_THRESHOLD,
1443
1513
  CoordinationType.FEATURE_VALUE_COLORMAP,
1444
1514
  CoordinationType.OBS_SET_SELECTION,
1515
+ CoordinationType.OBS_SET_FILTER,
1445
1516
  CoordinationType.OBS_SET_HIGHLIGHT,
1446
1517
  CoordinationType.OBS_SET_COLOR,
1447
1518
  CoordinationType.ADDITIONAL_OBS_SETS,
1448
1519
  CoordinationType.SAMPLE_TYPE,
1449
1520
  CoordinationType.SAMPLE_SET_SELECTION,
1521
+ CoordinationType.SAMPLE_SET_FILTER,
1450
1522
  CoordinationType.SAMPLE_SET_COLOR
1451
1523
  ],
1452
1524
  higlass: [
@@ -1477,8 +1549,37 @@ const COMPONENT_COORDINATION_TYPES = {
1477
1549
  [ViewType.LINK_CONTROLLER]: [],
1478
1550
  [ViewType.BIOMARKER_SELECT]: [
1479
1551
  CoordinationType.FEATURE_SELECTION,
1480
- CoordinationType.SAMPLE_SET_SELECTION
1552
+ CoordinationType.SAMPLE_SET_SELECTION,
1553
+ CoordinationType.SAMPLE_SET_FILTER,
1554
+ CoordinationType.OBS_SET_SELECTION,
1555
+ CoordinationType.OBS_SET_FILTER
1481
1556
  // TODO: create coordination types for internal state of the biomarker selection view?
1557
+ ],
1558
+ [ViewType.TREEMAP]: [
1559
+ CoordinationType.DATASET,
1560
+ CoordinationType.OBS_TYPE,
1561
+ CoordinationType.FEATURE_TYPE,
1562
+ CoordinationType.FEATURE_VALUE_TYPE,
1563
+ CoordinationType.OBS_FILTER,
1564
+ CoordinationType.OBS_HIGHLIGHT,
1565
+ CoordinationType.OBS_SET_SELECTION,
1566
+ CoordinationType.OBS_SET_FILTER,
1567
+ CoordinationType.OBS_SELECTION,
1568
+ CoordinationType.OBS_SELECTION_MODE,
1569
+ CoordinationType.OBS_SET_HIGHLIGHT,
1570
+ CoordinationType.OBS_SET_COLOR,
1571
+ CoordinationType.OBS_COLOR_ENCODING,
1572
+ CoordinationType.ADDITIONAL_OBS_SETS,
1573
+ CoordinationType.SAMPLE_TYPE,
1574
+ CoordinationType.SAMPLE_SET_SELECTION,
1575
+ CoordinationType.SAMPLE_SET_FILTER,
1576
+ CoordinationType.SAMPLE_SET_COLOR,
1577
+ CoordinationType.SAMPLE_SELECTION,
1578
+ CoordinationType.SAMPLE_SELECTION_MODE,
1579
+ CoordinationType.SAMPLE_FILTER,
1580
+ CoordinationType.SAMPLE_FILTER_MODE,
1581
+ CoordinationType.SAMPLE_HIGHLIGHT,
1582
+ CoordinationType.HIERARCHY_LEVELS
1482
1583
  ]
1483
1584
  };
1484
1585
  var common = {
@@ -30871,8 +30972,8 @@ function BiomarkerSelectSubscriber(props) {
30871
30972
  coordinationScopes
30872
30973
  );
30873
30974
  const viewConfigStoreApi = useViewConfigStoreApi();
30874
- useViewConfig();
30875
- useSetViewConfig(viewConfigStoreApi);
30975
+ const viewConfig = useViewConfig();
30976
+ const setViewConfig = useSetViewConfig(viewConfigStoreApi);
30876
30977
  const [isSelecting, setIsSelecting] = useState(true);
30877
30978
  const [mode, setMode] = useState(null);
30878
30979
  const [step, setStep] = useState(null);
@@ -30906,7 +31007,20 @@ function BiomarkerSelectSubscriber(props) {
30906
31007
  getEdges,
30907
31008
  stratifications: stratificationOptions,
30908
31009
  onFinish: () => {
30909
- console.log("Done selecting");
31010
+ setViewConfig({
31011
+ ...viewConfig,
31012
+ coordinationSpace: {
31013
+ ...viewConfig.coordinationSpace,
31014
+ sampleSetFilter: {
31015
+ ...viewConfig.coordinationSpace.sampleSetFilter,
31016
+ "case-control": currentStratificationSelection == null ? void 0 : currentStratificationSelection.sampleSets
31017
+ },
31018
+ sampleSetSelection: {
31019
+ ...viewConfig.coordinationSpace.sampleSetSelection,
31020
+ "case-control": currentStratificationSelection == null ? void 0 : currentStratificationSelection.sampleSets
31021
+ }
31022
+ }
31023
+ });
30910
31024
  }
30911
31025
  }
30912
31026
  ) : 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,eAwFF"}
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
- ...viewConfig,
39
- coordinationSpace: {
40
- ...viewConfig.coordinationSpace,
41
- sampleSetFilter: {
42
- ...viewConfig.coordinationSpace.sampleSetFilter,
43
- 'case-control': currentStratificationSelection?.sampleSets,
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.5",
3
+ "version": "3.5.7",
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.5",
28
- "@vitessce/vit-s": "3.5.5",
29
- "@vitessce/types": "3.5.5"
27
+ "@vitessce/constants-internal": "3.5.7",
28
+ "@vitessce/vit-s": "3.5.7",
29
+ "@vitessce/types": "3.5.7"
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}