@vitessce/statistical-plots 3.6.17 → 3.6.18

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.
Files changed (40) hide show
  1. package/dist/{deflate-CWzHkMt8.js → deflate-DaFHdnIz.js} +1 -1
  2. package/dist/{index-jTgzybKh.js → index-C8VlTSXb.js} +28 -18
  3. package/dist/index.js +1 -1
  4. package/dist/{jpeg-CKLZ6Ujk.js → jpeg-DI6r1Qu1.js} +1 -1
  5. package/dist/{lerc-Bg8_SUgD.js → lerc-CSlbF9fX.js} +1 -1
  6. package/dist/{lzw-BeELIhvX.js → lzw-H16ZlUv0.js} +1 -1
  7. package/dist/{packbits-Dt1MSk9z.js → packbits-3-1YYdxN.js} +1 -1
  8. package/dist/{raw-DDZdro0w.js → raw-BjsOfrZJ.js} +1 -1
  9. package/dist/{webimage-rE8shGdx.js → webimage-U9BOPX4n.js} +1 -1
  10. package/dist-tsc/CellSetCompositionBarPlotSubscriber.d.ts.map +1 -1
  11. package/dist-tsc/CellSetCompositionBarPlotSubscriber.js +3 -2
  12. package/dist-tsc/CellSetExpressionPlotSubscriber.d.ts.map +1 -1
  13. package/dist-tsc/CellSetExpressionPlotSubscriber.js +3 -2
  14. package/dist-tsc/CellSetSizesPlotSubscriber.d.ts.map +1 -1
  15. package/dist-tsc/CellSetSizesPlotSubscriber.js +3 -2
  16. package/dist-tsc/DotPlotSubscriber.d.ts.map +1 -1
  17. package/dist-tsc/DotPlotSubscriber.js +3 -2
  18. package/dist-tsc/ExpressionHistogramSubscriber.d.ts.map +1 -1
  19. package/dist-tsc/ExpressionHistogramSubscriber.js +3 -2
  20. package/dist-tsc/FeatureBarPlotSubscriber.d.ts.map +1 -1
  21. package/dist-tsc/FeatureBarPlotSubscriber.js +3 -2
  22. package/dist-tsc/FeatureSetEnrichmentBarPlotSubscriber.d.ts.map +1 -1
  23. package/dist-tsc/FeatureSetEnrichmentBarPlotSubscriber.js +3 -2
  24. package/dist-tsc/FeatureStatsTableSubscriber.d.ts.map +1 -1
  25. package/dist-tsc/FeatureStatsTableSubscriber.js +3 -2
  26. package/dist-tsc/TreemapSubscriber.d.ts.map +1 -1
  27. package/dist-tsc/TreemapSubscriber.js +3 -2
  28. package/dist-tsc/VolcanoPlotSubscriber.d.ts.map +1 -1
  29. package/dist-tsc/VolcanoPlotSubscriber.js +3 -2
  30. package/package.json +8 -8
  31. package/src/CellSetCompositionBarPlotSubscriber.js +3 -1
  32. package/src/CellSetExpressionPlotSubscriber.js +3 -1
  33. package/src/CellSetSizesPlotSubscriber.js +3 -1
  34. package/src/DotPlotSubscriber.js +3 -1
  35. package/src/ExpressionHistogramSubscriber.js +3 -1
  36. package/src/FeatureBarPlotSubscriber.js +3 -1
  37. package/src/FeatureSetEnrichmentBarPlotSubscriber.js +3 -1
  38. package/src/FeatureStatsTableSubscriber.js +3 -1
  39. package/src/TreemapSubscriber.js +3 -1
  40. package/src/VolcanoPlotSubscriber.js +3 -1
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-SxljTded.js";
2
- import { B as BaseDecoder } from "./index-jTgzybKh.js";
2
+ import { B as BaseDecoder } from "./index-C8VlTSXb.js";
3
3
  class DeflateDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
5
5
  return inflate_1(new Uint8Array(buffer)).buffer;
@@ -4,7 +4,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
4
4
  var _a2, _b;
5
5
  import * as React from "react";
6
6
  import React__default, { useState, useContext, useRef, useCallback, useEffect, forwardRef as forwardRef$1, useMemo, createContext, createElement, isValidElement, cloneElement, Children, Suspense } from "react";
7
- import { usePlotOptionsStyles, OptionsContainer, OptionSelect, useLoaders, useCoordination, useGridItemSize, useFeatureSelection, useFeatureLabelsData, useExpandedFeatureLabelsMap, useObsFeatureMatrixIndices, useObsSetsData, useSampleSetsData, useSampleEdgesData, useReady, useUrls, TitleInfo, useObsFeatureMatrixData, useMatchingLoader, useColumnNameMapping, useFeatureStatsData, useObsSetStatsData, useAsyncFunction, useFeatureSetStatsData } from "@vitessce/vit-s";
7
+ import { usePlotOptionsStyles, OptionsContainer, OptionSelect, useLoaders, useCoordinationScopes, useCoordination, useGridItemSize, useFeatureSelection, useFeatureLabelsData, useExpandedFeatureLabelsMap, useObsFeatureMatrixIndices, useObsSetsData, useSampleSetsData, useSampleEdgesData, useReady, useUrls, TitleInfo, useObsFeatureMatrixData, useMatchingLoader, useColumnNameMapping, useFeatureStatsData, useObsSetStatsData, useAsyncFunction, useFeatureSetStatsData } from "@vitessce/vit-s";
8
8
  import * as ReactDOM from "react-dom";
9
9
  import ReactDOM__default from "react-dom";
10
10
  function _mergeNamespaces(n2, m2) {
@@ -178737,22 +178737,22 @@ function addDecoder(cases2, importFn) {
178737
178737
  }
178738
178738
  cases2.forEach((c2) => registry$1.set(c2, importFn));
178739
178739
  }
178740
- addDecoder([void 0, 1], () => import("./raw-DDZdro0w.js").then((m2) => m2.default));
178741
- addDecoder(5, () => import("./lzw-BeELIhvX.js").then((m2) => m2.default));
178740
+ addDecoder([void 0, 1], () => import("./raw-BjsOfrZJ.js").then((m2) => m2.default));
178741
+ addDecoder(5, () => import("./lzw-H16ZlUv0.js").then((m2) => m2.default));
178742
178742
  addDecoder(6, () => {
178743
178743
  throw new Error("old style JPEG compression is not supported.");
178744
178744
  });
178745
- addDecoder(7, () => import("./jpeg-CKLZ6Ujk.js").then((m2) => m2.default));
178746
- addDecoder([8, 32946], () => import("./deflate-CWzHkMt8.js").then((m2) => m2.default));
178747
- addDecoder(32773, () => import("./packbits-Dt1MSk9z.js").then((m2) => m2.default));
178745
+ addDecoder(7, () => import("./jpeg-DI6r1Qu1.js").then((m2) => m2.default));
178746
+ addDecoder([8, 32946], () => import("./deflate-DaFHdnIz.js").then((m2) => m2.default));
178747
+ addDecoder(32773, () => import("./packbits-3-1YYdxN.js").then((m2) => m2.default));
178748
178748
  addDecoder(
178749
178749
  34887,
178750
- () => import("./lerc-Bg8_SUgD.js").then(async (m2) => {
178750
+ () => import("./lerc-CSlbF9fX.js").then(async (m2) => {
178751
178751
  await m2.zstd.init();
178752
178752
  return m2;
178753
178753
  }).then((m2) => m2.default)
178754
178754
  );
178755
- addDecoder(50001, () => import("./webimage-rE8shGdx.js").then((m2) => m2.default));
178755
+ addDecoder(50001, () => import("./webimage-U9BOPX4n.js").then((m2) => m2.default));
178756
178756
  function decodeRowAcc(row, stride) {
178757
178757
  let length2 = row.length - stride;
178758
178758
  let offset2 = 0;
@@ -198745,7 +198745,7 @@ function useExpressionByCellSet(sampleEdges, sampleSets, sampleSetSelection, exp
198745
198745
  function CellSetExpressionPlotSubscriber(props) {
198746
198746
  var _a3;
198747
198747
  const {
198748
- coordinationScopes,
198748
+ coordinationScopes: coordinationScopesRaw,
198749
198749
  closeButtonVisible,
198750
198750
  downloadButtonVisible,
198751
198751
  removeGridComponent,
@@ -198759,6 +198759,7 @@ function CellSetExpressionPlotSubscriber(props) {
198759
198759
  } = props;
198760
198760
  const { classes: classes2 } = useStyles$1();
198761
198761
  const loaders = useLoaders();
198762
+ const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
198762
198763
  const [{
198763
198764
  dataset,
198764
198765
  obsType,
@@ -249852,7 +249853,7 @@ function CellSetSizesPlot(props) {
249852
249853
  }
249853
249854
  function CellSetSizesPlotSubscriber(props) {
249854
249855
  const {
249855
- coordinationScopes,
249856
+ coordinationScopes: coordinationScopesRaw,
249856
249857
  closeButtonVisible,
249857
249858
  downloadButtonVisible,
249858
249859
  removeGridComponent,
@@ -249862,6 +249863,7 @@ function CellSetSizesPlotSubscriber(props) {
249862
249863
  } = props;
249863
249864
  const { classes: classes2 } = useStyles$1();
249864
249865
  const loaders = useLoaders();
249866
+ const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
249865
249867
  const [{
249866
249868
  dataset,
249867
249869
  obsType,
@@ -250042,7 +250044,7 @@ function ExpressionHistogram(props) {
250042
250044
  }
250043
250045
  function ExpressionHistogramSubscriber(props) {
250044
250046
  const {
250045
- coordinationScopes,
250047
+ coordinationScopes: coordinationScopesRaw,
250046
250048
  closeButtonVisible,
250047
250049
  downloadButtonVisible,
250048
250050
  removeGridComponent,
@@ -250051,6 +250053,7 @@ function ExpressionHistogramSubscriber(props) {
250051
250053
  } = props;
250052
250054
  const { classes: classes2 } = useStyles$1();
250053
250055
  const loaders = useLoaders();
250056
+ const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
250054
250057
  const [{
250055
250058
  dataset,
250056
250059
  obsType,
@@ -250444,7 +250447,7 @@ function useExpressionSummaries(sampleEdges, sampleSets, sampleSetSelection, exp
250444
250447
  function DotPlotSubscriber(props) {
250445
250448
  var _a3;
250446
250449
  const {
250447
- coordinationScopes,
250450
+ coordinationScopes: coordinationScopesRaw,
250448
250451
  removeGridComponent,
250449
250452
  theme,
250450
250453
  title: title2 = "Dot Plot",
@@ -250453,6 +250456,7 @@ function DotPlotSubscriber(props) {
250453
250456
  } = props;
250454
250457
  const { classes: classes2 } = useStyles$1();
250455
250458
  const loaders = useLoaders();
250459
+ const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
250456
250460
  const [{
250457
250461
  dataset,
250458
250462
  obsType,
@@ -250795,7 +250799,7 @@ function FeatureBarPlot(props) {
250795
250799
  }
250796
250800
  function FeatureBarPlotSubscriber(props) {
250797
250801
  const {
250798
- coordinationScopes,
250802
+ coordinationScopes: coordinationScopesRaw,
250799
250803
  removeGridComponent,
250800
250804
  theme,
250801
250805
  yMin = 0,
@@ -250804,6 +250808,7 @@ function FeatureBarPlotSubscriber(props) {
250804
250808
  } = props;
250805
250809
  const { classes: classes2 } = useStyles$1();
250806
250810
  const loaders = useLoaders();
250811
+ const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
250807
250812
  const [{
250808
250813
  dataset,
250809
250814
  obsType,
@@ -251178,13 +251183,14 @@ function TreemapOptions(props) {
251178
251183
  const DEFAULT_HIERARCHY_LEVELS = ["obsSet", "sampleSet"];
251179
251184
  function TreemapSubscriber(props) {
251180
251185
  const {
251181
- coordinationScopes,
251186
+ coordinationScopes: coordinationScopesRaw,
251182
251187
  removeGridComponent,
251183
251188
  theme,
251184
251189
  helpText = ViewHelpMapping.TREEMAP
251185
251190
  } = props;
251186
251191
  const { classes: classes2 } = useStyles$1();
251187
251192
  const loaders = useLoaders();
251193
+ const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
251188
251194
  const [{
251189
251195
  dataset,
251190
251196
  obsType,
@@ -251683,13 +251689,14 @@ function VolcanoPlotOptions(props) {
251683
251689
  function VolcanoPlotSubscriber(props) {
251684
251690
  const {
251685
251691
  title: title2 = "Volcano Plot",
251686
- coordinationScopes,
251692
+ coordinationScopes: coordinationScopesRaw,
251687
251693
  removeGridComponent,
251688
251694
  theme,
251689
251695
  helpText = ViewHelpMapping.VOLCANO_PLOT
251690
251696
  } = props;
251691
251697
  const { classes: classes2 } = useStyles$1();
251692
251698
  const loaders = useLoaders();
251699
+ const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
251693
251700
  const [{
251694
251701
  dataset,
251695
251702
  obsType,
@@ -252027,13 +252034,14 @@ function CellSetCompositionBarPlot(props) {
252027
252034
  }
252028
252035
  function CellSetCompositionBarPlotSubscriber(props) {
252029
252036
  const {
252030
- coordinationScopes,
252037
+ coordinationScopes: coordinationScopesRaw,
252031
252038
  removeGridComponent,
252032
252039
  theme,
252033
252040
  helpText = ViewHelpMapping.OBS_SET_COMPOSITION_BAR_PLOT
252034
252041
  } = props;
252035
252042
  const { classes: classes2 } = useStyles$1();
252036
252043
  const loaders = useLoaders();
252044
+ const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
252037
252045
  const [{
252038
252046
  dataset,
252039
252047
  obsType,
@@ -252331,13 +252339,14 @@ function FeatureSetEnrichmentBarPlot(props) {
252331
252339
  }
252332
252340
  function FeatureSetEnrichmentBarPlotSubscriber(props) {
252333
252341
  const {
252334
- coordinationScopes,
252342
+ coordinationScopes: coordinationScopesRaw,
252335
252343
  removeGridComponent,
252336
252344
  theme,
252337
252345
  helpText = ViewHelpMapping.FEATURE_SET_ENRICHMENT_BAR_PLOT
252338
252346
  } = props;
252339
252347
  const { classes: classes2 } = useStyles$1();
252340
252348
  const loaders = useLoaders();
252349
+ const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
252341
252350
  const transformFeature = useAsyncFunction(AsyncFunctionType.TRANSFORM_FEATURE);
252342
252351
  const [{
252343
252352
  dataset,
@@ -252570,12 +252579,13 @@ function FeatureStatsTable(props) {
252570
252579
  function FeatureStatsTableSubscriber(props) {
252571
252580
  const {
252572
252581
  title: title2 = "Differential Expression Results",
252573
- coordinationScopes,
252582
+ coordinationScopes: coordinationScopesRaw,
252574
252583
  removeGridComponent,
252575
252584
  theme,
252576
252585
  helpText = ViewHelpMapping.FEATURE_STATS_TABLE
252577
252586
  } = props;
252578
252587
  const loaders = useLoaders();
252588
+ const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
252579
252589
  const [{
252580
252590
  dataset,
252581
252591
  obsType,
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b, f, C, e, a, i, D, h, E, F, c, d, T, V } from "./index-jTgzybKh.js";
1
+ import { b, f, C, e, a, i, D, h, E, F, c, d, T, V } from "./index-C8VlTSXb.js";
2
2
  export {
3
3
  b as CellSetCompositionBarPlotSubscriber,
4
4
  f as CellSetExpressionPlot,
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-jTgzybKh.js";
1
+ import { B as BaseDecoder } from "./index-C8VlTSXb.js";
2
2
  const dctZigZag = new Int32Array([
3
3
  0,
4
4
  1,
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-SxljTded.js";
2
- import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-jTgzybKh.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-C8VlTSXb.js";
3
3
  const LercParameters = {
4
4
  AddCompression: 1
5
5
  };
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-jTgzybKh.js";
1
+ import { B as BaseDecoder } from "./index-C8VlTSXb.js";
2
2
  const MIN_BITS = 9;
3
3
  const CLEAR_CODE = 256;
4
4
  const EOI_CODE = 257;
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-jTgzybKh.js";
1
+ import { B as BaseDecoder } from "./index-C8VlTSXb.js";
2
2
  class PackbitsDecoder extends BaseDecoder {
3
3
  decodeBlock(buffer) {
4
4
  const dataView = new DataView(buffer);
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-jTgzybKh.js";
1
+ import { B as BaseDecoder } from "./index-C8VlTSXb.js";
2
2
  class RawDecoder extends BaseDecoder {
3
3
  decodeBlock(buffer) {
4
4
  return buffer;
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-jTgzybKh.js";
1
+ import { B as BaseDecoder } from "./index-C8VlTSXb.js";
2
2
  class WebImageDecoder extends BaseDecoder {
3
3
  constructor() {
4
4
  super();
@@ -1 +1 @@
1
- {"version":3,"file":"CellSetCompositionBarPlotSubscriber.d.ts","sourceRoot":"","sources":["../src/CellSetCompositionBarPlotSubscriber.js"],"names":[],"mappings":"AAwBA,6EAqIC"}
1
+ {"version":3,"file":"CellSetCompositionBarPlotSubscriber.d.ts","sourceRoot":"","sources":["../src/CellSetCompositionBarPlotSubscriber.js"],"names":[],"mappings":"AAyBA,6EAsIC"}
@@ -1,16 +1,17 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  /* eslint-disable no-unused-vars */
3
3
  import React, { useCallback } from 'react';
4
- import { TitleInfo, useCoordination, useLoaders, useReady, useGridItemSize, useObsSetStatsData, useMatchingLoader, useColumnNameMapping, } from '@vitessce/vit-s';
4
+ import { TitleInfo, useCoordination, useLoaders, useReady, useGridItemSize, useObsSetStatsData, useMatchingLoader, useColumnNameMapping, useCoordinationScopes, } from '@vitessce/vit-s';
5
5
  import { ViewType, COMPONENT_COORDINATION_TYPES, ViewHelpMapping, DataType, } from '@vitessce/constants-internal';
6
6
  import { capitalize } from '@vitessce/utils';
7
7
  import CellSetCompositionBarPlot from './CellSetCompositionBarPlot.js';
8
8
  import { useStyles } from './styles.js';
9
9
  import { useRawSetPaths } from './utils.js';
10
10
  export function CellSetCompositionBarPlotSubscriber(props) {
11
- const { coordinationScopes, removeGridComponent, theme, helpText = ViewHelpMapping.OBS_SET_COMPOSITION_BAR_PLOT, } = props;
11
+ const { coordinationScopes: coordinationScopesRaw, removeGridComponent, theme, helpText = ViewHelpMapping.OBS_SET_COMPOSITION_BAR_PLOT, } = props;
12
12
  const { classes } = useStyles();
13
13
  const loaders = useLoaders();
14
+ const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
14
15
  // Get "props" from the coordination space.
15
16
  const [{ dataset, obsType, sampleType, featureType, featureValueType, obsFilter: cellFilter, obsHighlight: cellHighlight, obsSetSelection, obsSetColor, obsColorEncoding: cellColorEncoding, additionalObsSets: additionalCellSets, featurePointSignificanceThreshold, featurePointFoldChangeThreshold, featureLabelSignificanceThreshold, featureLabelFoldChangeThreshold, featureValueTransform, featureValueTransformCoefficient, gatingFeatureSelectionX, gatingFeatureSelectionY, featureSelection, sampleSetSelection, sampleSetColor, }, { setObsFilter: setCellFilter, setObsSetSelection, setObsHighlight: setCellHighlight, setObsSetColor: setCellSetColor, setObsColorEncoding: setCellColorEncoding, setAdditionalObsSets: setAdditionalCellSets, setFeaturePointSignificanceThreshold, setFeaturePointFoldChangeThreshold, setFeatureLabelSignificanceThreshold, setFeatureLabelFoldChangeThreshold, setFeatureValueTransform, setFeatureValueTransformCoefficient, setGatingFeatureSelectionX, setGatingFeatureSelectionY, setFeatureSelection, setSampleSetSelection, setSampleSetColor, }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType.OBS_SET_COMPOSITION_BAR_PLOT], coordinationScopes);
16
17
  const [width, height, containerRef] = useGridItemSize();
@@ -1 +1 @@
1
- {"version":3,"file":"CellSetExpressionPlotSubscriber.d.ts","sourceRoot":"","sources":["../src/CellSetExpressionPlotSubscriber.js"],"names":[],"mappings":"AA0HA;;;;;;;;;GASG;AACH,uDALG;IAAwB,mBAAmB;IACrB,kBAAkB,EAAhC,MAAM;IAEQ,KAAK,EAAnB,MAAM;CAChB,eA8MA"}
1
+ {"version":3,"file":"CellSetExpressionPlotSubscriber.d.ts","sourceRoot":"","sources":["../src/CellSetExpressionPlotSubscriber.js"],"names":[],"mappings":"AA2HA;;;;;;;;;GASG;AACH,uDALG;IAAwB,mBAAmB;IACrB,kBAAkB,EAAhC,MAAM;IAEQ,KAAK,EAAnB,MAAM;CAChB,eA+MA"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import React, { useMemo } from 'react';
3
- import { TitleInfo, useCoordination, useLoaders, useUrls, useReady, useGridItemSize, useFeatureSelection, useObsSetsData, useObsFeatureMatrixIndices, useFeatureLabelsData, useSampleSetsData, useSampleEdgesData, useExpandedFeatureLabelsMap, } from '@vitessce/vit-s';
3
+ import { TitleInfo, useCoordination, useLoaders, useUrls, useReady, useGridItemSize, useFeatureSelection, useObsSetsData, useObsFeatureMatrixIndices, useFeatureLabelsData, useSampleSetsData, useSampleEdgesData, useExpandedFeatureLabelsMap, useCoordinationScopes, } from '@vitessce/vit-s';
4
4
  import { ViewType, COMPONENT_COORDINATION_TYPES, ViewHelpMapping } from '@vitessce/constants-internal';
5
5
  import { VALUE_TRANSFORM_OPTIONS, capitalize, cleanFeatureId } from '@vitessce/utils';
6
6
  import { treeToSetSizesBySetNames, mergeObsSets, stratifyExpressionData, aggregateStratifiedExpressionData, } from '@vitessce/sets-utils';
@@ -89,9 +89,10 @@ function useExpressionByCellSet(sampleEdges, sampleSets, sampleSetSelection, exp
89
89
  * @param {string} props.theme The name of the current Vitessce theme.
90
90
  */
91
91
  export function CellSetExpressionPlotSubscriber(props) {
92
- const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, title, xAxisTitle, jitter = false, yMin = null, yUnits = null, helpText = ViewHelpMapping.OBS_SET_FEATURE_VALUE_DISTRIBUTION, } = props;
92
+ const { coordinationScopes: coordinationScopesRaw, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, title, xAxisTitle, jitter = false, yMin = null, yUnits = null, helpText = ViewHelpMapping.OBS_SET_FEATURE_VALUE_DISTRIBUTION, } = props;
93
93
  const { classes } = useStyles();
94
94
  const loaders = useLoaders();
95
+ const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
95
96
  // Get "props" from the coordination space.
96
97
  const [{ dataset, obsType, featureType, featureValueType, featureSelection: geneSelection, featureValueTransform, featureValueTransformCoefficient, obsSetSelection: cellSetSelection, obsSetColor: cellSetColor, additionalObsSets: additionalCellSets, sampleType, sampleSetSelection, sampleSetColor, featureAggregationStrategy, }, { setFeatureValueTransform, setFeatureValueTransformCoefficient, setSampleSetColor, setFeatureAggregationStrategy, }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType.OBS_SET_FEATURE_VALUE_DISTRIBUTION], coordinationScopes);
97
98
  const [width, height, containerRef] = useGridItemSize();
@@ -1 +1 @@
1
- {"version":3,"file":"CellSetSizesPlotSubscriber.d.ts","sourceRoot":"","sources":["../src/CellSetSizesPlotSubscriber.js"],"names":[],"mappings":"AAgBA;;;;;;;;;;GAUG;AACH,kDANG;IAAwB,mBAAmB;IACnB,OAAO;IAET,KAAK,EAAnB,MAAM;IACQ,KAAK,EAAnB,MAAM;CAChB,eAoIA"}
1
+ {"version":3,"file":"CellSetSizesPlotSubscriber.d.ts","sourceRoot":"","sources":["../src/CellSetSizesPlotSubscriber.js"],"names":[],"mappings":"AAiBA;;;;;;;;;;GAUG;AACH,kDANG;IAAwB,mBAAmB;IACnB,OAAO;IAET,KAAK,EAAnB,MAAM;IACQ,KAAK,EAAnB,MAAM;CAChB,eAqIA"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import React, { useMemo, useState } from 'react';
3
- import { TitleInfo, useCoordination, useLoaders, useUrls, useReady, useGridItemSize, useObsSetsData, } from '@vitessce/vit-s';
3
+ import { TitleInfo, useCoordination, useLoaders, useUrls, useReady, useGridItemSize, useObsSetsData, useCoordinationScopes, } from '@vitessce/vit-s';
4
4
  import { isEqual } from 'lodash-es';
5
5
  import { ViewType, COMPONENT_COORDINATION_TYPES, ViewHelpMapping } from '@vitessce/constants-internal';
6
6
  import { mergeObsSets, treeToSetSizesBySetNames, filterPathsByExpansionAndSelection, findChangedHierarchy, } from '@vitessce/sets-utils';
@@ -19,9 +19,10 @@ import { useStyles } from './styles.js';
19
19
  * @param {string} props.title The component title.
20
20
  */
21
21
  export function CellSetSizesPlotSubscriber(props) {
22
- const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, title: titleOverride, helpText = ViewHelpMapping.OBS_SET_SIZES, } = props;
22
+ const { coordinationScopes: coordinationScopesRaw, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, title: titleOverride, helpText = ViewHelpMapping.OBS_SET_SIZES, } = props;
23
23
  const { classes } = useStyles();
24
24
  const loaders = useLoaders();
25
+ const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
25
26
  // Get "props" from the coordination space.
26
27
  const [{ dataset, obsType, obsSetSelection: cellSetSelection, obsSetColor: cellSetColor, additionalObsSets: additionalCellSets, obsSetExpansion: cellSetExpansion, }, { setObsSetSelection: setCellSetSelection, setObsSetColor: setCellSetColor, }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType.OBS_SET_SIZES], coordinationScopes);
27
28
  const title = titleOverride || `${capitalize(obsType)} Set Sizes`;
@@ -1 +1 @@
1
- {"version":3,"file":"DotPlotSubscriber.d.ts","sourceRoot":"","sources":["../src/DotPlotSubscriber.js"],"names":[],"mappings":"AAmBA;;;;;;;GAOG;AACH,yCALG;IAAwB,mBAAmB;IACrB,kBAAkB,EAAhC,MAAM;IAEQ,KAAK,EAAnB,MAAM;CAChB,eA2LA"}
1
+ {"version":3,"file":"DotPlotSubscriber.d.ts","sourceRoot":"","sources":["../src/DotPlotSubscriber.js"],"names":[],"mappings":"AAoBA;;;;;;;GAOG;AACH,yCALG;IAAwB,mBAAmB;IACrB,kBAAkB,EAAhC,MAAM;IAEQ,KAAK,EAAnB,MAAM;CAChB,eA4LA"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import React, { useCallback } from 'react';
3
- import { TitleInfo, useCoordination, useLoaders, useUrls, useReady, useGridItemSize, useFeatureSelection, useObsSetsData, useObsFeatureMatrixIndices, useFeatureLabelsData, useSampleSetsData, useSampleEdgesData, } from '@vitessce/vit-s';
3
+ import { TitleInfo, useCoordination, useLoaders, useUrls, useReady, useGridItemSize, useFeatureSelection, useObsSetsData, useObsFeatureMatrixIndices, useFeatureLabelsData, useSampleSetsData, useSampleEdgesData, useCoordinationScopes, } from '@vitessce/vit-s';
4
4
  import { ViewType, COMPONENT_COORDINATION_TYPES, ViewHelpMapping } from '@vitessce/constants-internal';
5
5
  import { VALUE_TRANSFORM_OPTIONS } from '@vitessce/utils';
6
6
  import CellSetExpressionPlotOptions from './CellSetExpressionPlotOptions.js';
@@ -16,9 +16,10 @@ import { useExpressionSummaries } from './dot-plot-hook.js';
16
16
  * @param {string} props.theme The name of the current Vitessce theme.
17
17
  */
18
18
  export function DotPlotSubscriber(props) {
19
- const { coordinationScopes, removeGridComponent, theme, title = 'Dot Plot', transpose = true, helpText = ViewHelpMapping.DOT_PLOT, } = props;
19
+ const { coordinationScopes: coordinationScopesRaw, removeGridComponent, theme, title = 'Dot Plot', transpose = true, helpText = ViewHelpMapping.DOT_PLOT, } = props;
20
20
  const { classes } = useStyles();
21
21
  const loaders = useLoaders();
22
+ const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
22
23
  // Get "props" from the coordination space.
23
24
  const [{ dataset, obsType, featureType, featureValueType, featureSelection: geneSelection, featureValueTransform, featureValueTransformCoefficient, featureValuePositivityThreshold: posThreshold, featureValueColormap, obsSetSelection: cellSetSelection, obsSetColor: cellSetColor, additionalObsSets: additionalCellSets, sampleType, sampleSetSelection,
24
25
  // eslint-disable-next-line no-unused-vars
@@ -1 +1 @@
1
- {"version":3,"file":"ExpressionHistogramSubscriber.d.ts","sourceRoot":"","sources":["../src/ExpressionHistogramSubscriber.js"],"names":[],"mappings":"AAcA;;;;;;;;;GASG;AACH,qDALG;IAAwB,mBAAmB;IACrB,kBAAkB,EAAhC,MAAM;IAEQ,KAAK,EAAnB,MAAM;CAChB,eAsIA"}
1
+ {"version":3,"file":"ExpressionHistogramSubscriber.d.ts","sourceRoot":"","sources":["../src/ExpressionHistogramSubscriber.js"],"names":[],"mappings":"AAeA;;;;;;;;;GASG;AACH,qDALG;IAAwB,mBAAmB;IACrB,kBAAkB,EAAhC,MAAM;IAEQ,KAAK,EAAnB,MAAM;CAChB,eAuIA"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import React, { useMemo, useCallback, } from 'react';
3
3
  import { sum } from 'd3-array';
4
- import { TitleInfo, useCoordination, useLoaders, useUrls, useReady, useGridItemSize, useObsFeatureMatrixData, useFeatureSelection, } from '@vitessce/vit-s';
4
+ import { TitleInfo, useCoordination, useLoaders, useUrls, useReady, useGridItemSize, useObsFeatureMatrixData, useFeatureSelection, useCoordinationScopes, } from '@vitessce/vit-s';
5
5
  import { ViewType, COMPONENT_COORDINATION_TYPES, ViewHelpMapping } from '@vitessce/constants-internal';
6
6
  import { setObsSelection, getObsInfoFromDataWithinRange } from '@vitessce/sets-utils';
7
7
  import ExpressionHistogram from './ExpressionHistogram.js';
@@ -17,9 +17,10 @@ import { useStyles } from './styles.js';
17
17
  * @param {string} props.theme The name of the current Vitessce theme.
18
18
  */
19
19
  export function ExpressionHistogramSubscriber(props) {
20
- const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, helpText = ViewHelpMapping.FEATURE_VALUE_HISTOGRAM, } = props;
20
+ const { coordinationScopes: coordinationScopesRaw, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, helpText = ViewHelpMapping.FEATURE_VALUE_HISTOGRAM, } = props;
21
21
  const { classes } = useStyles();
22
22
  const loaders = useLoaders();
23
+ const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
23
24
  // Get "props" from the coordination space.
24
25
  const [{ dataset, obsType, featureType, featureValueType, featureSelection: geneSelection, additionalObsSets: additionalCellSets, obsSetColor: cellSetColor, }, { setAdditionalObsSets: setAdditionalCellSets, setObsSetColor: setCellSetColor, setObsColorEncoding: setCellColorEncoding, setObsSetSelection: setCellSetSelection, }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType.FEATURE_VALUE_HISTOGRAM], coordinationScopes);
25
26
  const [width, height, containerRef] = useGridItemSize();
@@ -1 +1 @@
1
- {"version":3,"file":"FeatureBarPlotSubscriber.d.ts","sourceRoot":"","sources":["../src/FeatureBarPlotSubscriber.js"],"names":[],"mappings":"AAkBA,kEAuJC"}
1
+ {"version":3,"file":"FeatureBarPlotSubscriber.d.ts","sourceRoot":"","sources":["../src/FeatureBarPlotSubscriber.js"],"names":[],"mappings":"AAmBA,kEAwJC"}
@@ -1,14 +1,15 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import React, { useMemo, useCallback } from 'react';
3
- import { TitleInfo, useCoordination, useLoaders, useUrls, useReady, useGridItemSize, useFeatureSelection, useObsFeatureMatrixIndices, useFeatureLabelsData, } from '@vitessce/vit-s';
3
+ import { TitleInfo, useCoordination, useLoaders, useUrls, useReady, useGridItemSize, useFeatureSelection, useObsFeatureMatrixIndices, useFeatureLabelsData, useCoordinationScopes, } from '@vitessce/vit-s';
4
4
  import { ViewType, COMPONENT_COORDINATION_TYPES, ViewHelpMapping } from '@vitessce/constants-internal';
5
5
  import { setObsSelection } from '@vitessce/sets-utils';
6
6
  import FeatureBarPlot from './FeatureBarPlot.js';
7
7
  import { useStyles } from './styles.js';
8
8
  export function FeatureBarPlotSubscriber(props) {
9
- const { coordinationScopes, removeGridComponent, theme, yMin = 0, yUnits = null, helpText = ViewHelpMapping.FEATURE_BAR_PLOT, } = props;
9
+ const { coordinationScopes: coordinationScopesRaw, removeGridComponent, theme, yMin = 0, yUnits = null, helpText = ViewHelpMapping.FEATURE_BAR_PLOT, } = props;
10
10
  const { classes } = useStyles();
11
11
  const loaders = useLoaders();
12
+ const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
12
13
  // Get "props" from the coordination space.
13
14
  const [{ dataset, obsType, featureType, featureValueType, featureSelection: geneSelection, featureValueTransform, featureValueTransformCoefficient, obsHighlight: cellHighlight, additionalObsSets: additionalCellSets, obsSetSelection: cellSetSelection, obsSetColor: cellSetColor, }, { setObsSetSelection: setCellSetSelection, setObsHighlight: setCellHighlight, setObsSetColor: setCellSetColor, setObsColorEncoding: setCellColorEncoding, setAdditionalObsSets: setAdditionalCellSets, }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType.FEATURE_BAR_PLOT], coordinationScopes);
14
15
  // console.log("BarPlot: " + cellHighlight)
@@ -1 +1 @@
1
- {"version":3,"file":"FeatureSetEnrichmentBarPlotSubscriber.d.ts","sourceRoot":"","sources":["../src/FeatureSetEnrichmentBarPlotSubscriber.js"],"names":[],"mappings":"AA0BA,+EAqJC"}
1
+ {"version":3,"file":"FeatureSetEnrichmentBarPlotSubscriber.d.ts","sourceRoot":"","sources":["../src/FeatureSetEnrichmentBarPlotSubscriber.js"],"names":[],"mappings":"AA2BA,+EAsJC"}
@@ -1,16 +1,17 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  /* eslint-disable no-unused-vars */
3
3
  import React, { useCallback } from 'react';
4
- import { TitleInfo, useCoordination, useLoaders, useReady, useGridItemSize, useFeatureSetStatsData, useMatchingLoader, useColumnNameMapping, useAsyncFunction, } from '@vitessce/vit-s';
4
+ import { TitleInfo, useCoordination, useLoaders, useReady, useGridItemSize, useFeatureSetStatsData, useMatchingLoader, useColumnNameMapping, useAsyncFunction, useCoordinationScopes, } from '@vitessce/vit-s';
5
5
  import { ViewType, COMPONENT_COORDINATION_TYPES, ViewHelpMapping, DataType, AsyncFunctionType, } from '@vitessce/constants-internal';
6
6
  import { capitalize } from '@vitessce/utils';
7
7
  import FeatureSetEnrichmentBarPlot from './FeatureSetEnrichmentBarPlot.js';
8
8
  import { useStyles } from './styles.js';
9
9
  import { useRawSetPaths } from './utils.js';
10
10
  export function FeatureSetEnrichmentBarPlotSubscriber(props) {
11
- const { coordinationScopes, removeGridComponent, theme, helpText = ViewHelpMapping.FEATURE_SET_ENRICHMENT_BAR_PLOT, } = props;
11
+ const { coordinationScopes: coordinationScopesRaw, removeGridComponent, theme, helpText = ViewHelpMapping.FEATURE_SET_ENRICHMENT_BAR_PLOT, } = props;
12
12
  const { classes } = useStyles();
13
13
  const loaders = useLoaders();
14
+ const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
14
15
  const transformFeature = useAsyncFunction(AsyncFunctionType.TRANSFORM_FEATURE);
15
16
  // Get "props" from the coordination space.
16
17
  const [{ dataset, obsType, sampleType, featureType, featureValueType, obsFilter: cellFilter, obsHighlight: cellHighlight, obsSetSelection, obsSetColor, obsColorEncoding: cellColorEncoding, additionalObsSets: additionalCellSets, featurePointSignificanceThreshold, featurePointFoldChangeThreshold, featureLabelSignificanceThreshold, featureLabelFoldChangeThreshold, featureValueTransform, featureValueTransformCoefficient, gatingFeatureSelectionX, gatingFeatureSelectionY, featureSelection, sampleSetSelection, sampleSetColor, }, { setObsFilter: setCellFilter, setObsSetSelection, setObsHighlight: setCellHighlight, setObsSetColor: setCellSetColor, setObsColorEncoding: setCellColorEncoding, setAdditionalObsSets: setAdditionalCellSets, setFeaturePointSignificanceThreshold, setFeaturePointFoldChangeThreshold, setFeatureLabelSignificanceThreshold, setFeatureLabelFoldChangeThreshold, setFeatureValueTransform, setFeatureValueTransformCoefficient, setGatingFeatureSelectionX, setGatingFeatureSelectionY, setFeatureSelection, setSampleSetSelection, setSampleSetColor, }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType.FEATURE_SET_ENRICHMENT_BAR_PLOT], coordinationScopes);
@@ -1 +1 @@
1
- {"version":3,"file":"FeatureStatsTableSubscriber.d.ts","sourceRoot":"","sources":["../src/FeatureStatsTableSubscriber.js"],"names":[],"mappings":"AAoBA,qEAuHC"}
1
+ {"version":3,"file":"FeatureStatsTableSubscriber.d.ts","sourceRoot":"","sources":["../src/FeatureStatsTableSubscriber.js"],"names":[],"mappings":"AAqBA,qEAwHC"}
@@ -1,13 +1,14 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  /* eslint-disable no-unused-vars */
3
3
  import React from 'react';
4
- import { TitleInfo, useCoordination, useLoaders, useReady, useFeatureStatsData, useMatchingLoader, useColumnNameMapping, } from '@vitessce/vit-s';
4
+ import { TitleInfo, useCoordination, useLoaders, useReady, useFeatureStatsData, useMatchingLoader, useColumnNameMapping, useCoordinationScopes, } from '@vitessce/vit-s';
5
5
  import { ViewType, COMPONENT_COORDINATION_TYPES, ViewHelpMapping, DataType, } from '@vitessce/constants-internal';
6
6
  import FeatureStatsTable from './FeatureStatsTable.js';
7
7
  import { useRawSetPaths } from './utils.js';
8
8
  export function FeatureStatsTableSubscriber(props) {
9
- const { title = 'Differential Expression Results', coordinationScopes, removeGridComponent, theme, helpText = ViewHelpMapping.FEATURE_STATS_TABLE, } = props;
9
+ const { title = 'Differential Expression Results', coordinationScopes: coordinationScopesRaw, removeGridComponent, theme, helpText = ViewHelpMapping.FEATURE_STATS_TABLE, } = props;
10
10
  const loaders = useLoaders();
11
+ const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
11
12
  // Get "props" from the coordination space.
12
13
  const [{ dataset, obsType, sampleType, featureType, featureValueType, obsFilter: cellFilter, obsHighlight: cellHighlight, obsSetSelection, obsSetColor, obsColorEncoding: cellColorEncoding, additionalObsSets: additionalCellSets, featurePointSignificanceThreshold, featurePointFoldChangeThreshold, featureValueTransform, featureValueTransformCoefficient, gatingFeatureSelectionX, gatingFeatureSelectionY, featureSelection, sampleSetSelection, sampleSetColor, }, { setObsFilter: setCellFilter, setObsSetSelection, setObsHighlight: setCellHighlight, setObsSetColor: setCellSetColor, setObsColorEncoding: setCellColorEncoding, setAdditionalObsSets: setAdditionalCellSets, setFeaturePointSignificanceThreshold, setFeaturePointFoldChangeThreshold, setFeatureValueTransform, setFeatureValueTransformCoefficient, setGatingFeatureSelectionX, setGatingFeatureSelectionY, setFeatureSelection, setSampleSetSelection, setSampleSetColor, }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType.FEATURE_STATS_TABLE], coordinationScopes);
13
14
  const obsSetsLoader = useMatchingLoader(loaders, dataset, DataType.OBS_SETS, { obsType });
@@ -1 +1 @@
1
- {"version":3,"file":"TreemapSubscriber.d.ts","sourceRoot":"","sources":["../src/TreemapSubscriber.js"],"names":[],"mappings":"AAyBA,2DA8QC"}
1
+ {"version":3,"file":"TreemapSubscriber.d.ts","sourceRoot":"","sources":["../src/TreemapSubscriber.js"],"names":[],"mappings":"AA0BA,2DA+QC"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  /* eslint-disable no-unused-vars */
3
3
  import React, { useMemo, useCallback } from 'react';
4
- import { TitleInfo, useCoordination, useLoaders, useUrls, useReady, useGridItemSize, useObsFeatureMatrixIndices, useObsSetsData, useSampleEdgesData, useSampleSetsData, } from '@vitessce/vit-s';
4
+ import { TitleInfo, useCoordination, useLoaders, useUrls, useReady, useGridItemSize, useObsFeatureMatrixIndices, useObsSetsData, useSampleEdgesData, useSampleSetsData, useCoordinationScopes, } from '@vitessce/vit-s';
5
5
  import { ViewType, COMPONENT_COORDINATION_TYPES, ViewHelpMapping } from '@vitessce/constants-internal';
6
6
  import { treeToSelectedSetMap, treeToSetSizesBySetNames, mergeObsSets } from '@vitessce/sets-utils';
7
7
  import { pluralize as plur, commaNumber, unnestMap, capitalize } from '@vitessce/utils';
@@ -12,9 +12,10 @@ import { useStyles } from './styles.js';
12
12
  import TreemapOptions from './TreemapOptions.js';
13
13
  const DEFAULT_HIERARCHY_LEVELS = ['obsSet', 'sampleSet'];
14
14
  export function TreemapSubscriber(props) {
15
- const { coordinationScopes, removeGridComponent, theme, helpText = ViewHelpMapping.TREEMAP, } = props;
15
+ const { coordinationScopes: coordinationScopesRaw, removeGridComponent, theme, helpText = ViewHelpMapping.TREEMAP, } = props;
16
16
  const { classes } = useStyles();
17
17
  const loaders = useLoaders();
18
+ const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
18
19
  // Get "props" from the coordination space.
19
20
  const [{ dataset, obsType, featureType, featureValueType, obsFilter, obsHighlight, obsSetSelection, obsSetFilter, obsSelection, obsSelectionMode, obsSetHighlight, obsSetColor, obsColorEncoding, additionalObsSets, sampleType, sampleSetSelection, sampleSetFilter, sampleSetColor, sampleSelection, sampleSelectionMode, sampleFilter, sampleFilterMode, sampleHighlight, hierarchyLevels, }, { setObsFilter, setObsSelection, setObsSetFilter, setObsSetSelection, setObsSelectionMode, setObsFilterMode, setObsHighlight, setObsSetColor, setObsColorEncoding, setAdditionalObsSets, setSampleFilter, setSampleSetFilter, setSampleFilterMode, setSampleSelection, setSampleSetSelection, setSampleSelectionMode, setSampleHighlight, setSampleSetColor, setHierarchyLevels, }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType.TREEMAP], coordinationScopes);
20
21
  const [width, height, containerRef] = useGridItemSize();
@@ -1 +1 @@
1
- {"version":3,"file":"VolcanoPlotSubscriber.d.ts","sourceRoot":"","sources":["../src/VolcanoPlotSubscriber.js"],"names":[],"mappings":"AAuBA,+DA0JC"}
1
+ {"version":3,"file":"VolcanoPlotSubscriber.d.ts","sourceRoot":"","sources":["../src/VolcanoPlotSubscriber.js"],"names":[],"mappings":"AAwBA,+DA2JC"}
@@ -1,16 +1,17 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  /* eslint-disable no-unused-vars */
3
3
  import React, { useMemo, useCallback } from 'react';
4
- import { TitleInfo, useCoordination, useLoaders, useReady, useGridItemSize, useFeatureStatsData, useMatchingLoader, useColumnNameMapping, } from '@vitessce/vit-s';
4
+ import { TitleInfo, useCoordination, useLoaders, useReady, useGridItemSize, useFeatureStatsData, useMatchingLoader, useColumnNameMapping, useCoordinationScopes, } from '@vitessce/vit-s';
5
5
  import { ViewType, COMPONENT_COORDINATION_TYPES, ViewHelpMapping, DataType, } from '@vitessce/constants-internal';
6
6
  import VolcanoPlot from './VolcanoPlot.js';
7
7
  import { useStyles } from './styles.js';
8
8
  import VolcanoPlotOptions from './VolcanoPlotOptions.js';
9
9
  import { useRawSetPaths } from './utils.js';
10
10
  export function VolcanoPlotSubscriber(props) {
11
- const { title = 'Volcano Plot', coordinationScopes, removeGridComponent, theme, helpText = ViewHelpMapping.VOLCANO_PLOT, } = props;
11
+ const { title = 'Volcano Plot', coordinationScopes: coordinationScopesRaw, removeGridComponent, theme, helpText = ViewHelpMapping.VOLCANO_PLOT, } = props;
12
12
  const { classes } = useStyles();
13
13
  const loaders = useLoaders();
14
+ const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
14
15
  // Get "props" from the coordination space.
15
16
  const [{ dataset, obsType, sampleType, featureType, featureValueType, obsFilter: cellFilter, obsHighlight: cellHighlight, obsSetSelection, obsSetColor, obsColorEncoding: cellColorEncoding, additionalObsSets: additionalCellSets, featurePointSignificanceThreshold, featurePointFoldChangeThreshold, featureLabelSignificanceThreshold, featureLabelFoldChangeThreshold, featureValueTransform, featureValueTransformCoefficient, gatingFeatureSelectionX, gatingFeatureSelectionY, featureSelection, sampleSetSelection, sampleSetColor, }, { setObsFilter: setCellFilter, setObsSetSelection, setObsHighlight: setCellHighlight, setObsSetColor: setCellSetColor, setObsColorEncoding: setCellColorEncoding, setAdditionalObsSets: setAdditionalCellSets, setFeaturePointSignificanceThreshold, setFeaturePointFoldChangeThreshold, setFeatureLabelSignificanceThreshold, setFeatureLabelFoldChangeThreshold, setFeatureValueTransform, setFeatureValueTransformCoefficient, setGatingFeatureSelectionX, setGatingFeatureSelectionY, setFeatureSelection, setSampleSetSelection, setSampleSetColor, }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType.VOLCANO_PLOT], coordinationScopes);
16
17
  const [width, height, containerRef] = useGridItemSize();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/statistical-plots",
3
- "version": "3.6.17",
3
+ "version": "3.6.18",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -28,13 +28,13 @@
28
28
  "react-aria": "^3.28.0",
29
29
  "internmap": "^2.0.3",
30
30
  "uuid": "^9.0.0",
31
- "@vitessce/styles": "3.6.17",
32
- "@vitessce/constants-internal": "3.6.17",
33
- "@vitessce/sets-utils": "3.6.17",
34
- "@vitessce/utils": "3.6.17",
35
- "@vitessce/vega": "3.6.17",
36
- "@vitessce/vit-s": "3.6.17",
37
- "@vitessce/gl": "3.6.17"
31
+ "@vitessce/styles": "3.6.18",
32
+ "@vitessce/constants-internal": "3.6.18",
33
+ "@vitessce/sets-utils": "3.6.18",
34
+ "@vitessce/utils": "3.6.18",
35
+ "@vitessce/vega": "3.6.18",
36
+ "@vitessce/vit-s": "3.6.18",
37
+ "@vitessce/gl": "3.6.18"
38
38
  },
39
39
  "devDependencies": {
40
40
  "react": "^18.0.0",
@@ -9,6 +9,7 @@ import {
9
9
  useObsSetStatsData,
10
10
  useMatchingLoader,
11
11
  useColumnNameMapping,
12
+ useCoordinationScopes,
12
13
  } from '@vitessce/vit-s';
13
14
  import {
14
15
  ViewType,
@@ -24,7 +25,7 @@ import { useRawSetPaths } from './utils.js';
24
25
 
25
26
  export function CellSetCompositionBarPlotSubscriber(props) {
26
27
  const {
27
- coordinationScopes,
28
+ coordinationScopes: coordinationScopesRaw,
28
29
  removeGridComponent,
29
30
  theme,
30
31
  helpText = ViewHelpMapping.OBS_SET_COMPOSITION_BAR_PLOT,
@@ -32,6 +33,7 @@ export function CellSetCompositionBarPlotSubscriber(props) {
32
33
 
33
34
  const { classes } = useStyles();
34
35
  const loaders = useLoaders();
36
+ const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
35
37
 
36
38
  // Get "props" from the coordination space.
37
39
  const [{
@@ -9,6 +9,7 @@ import {
9
9
  useSampleSetsData,
10
10
  useSampleEdgesData,
11
11
  useExpandedFeatureLabelsMap,
12
+ useCoordinationScopes,
12
13
  } from '@vitessce/vit-s';
13
14
  import { ViewType, COMPONENT_COORDINATION_TYPES, ViewHelpMapping } from '@vitessce/constants-internal';
14
15
  import { VALUE_TRANSFORM_OPTIONS, capitalize, cleanFeatureId } from '@vitessce/utils';
@@ -132,7 +133,7 @@ function useExpressionByCellSet(
132
133
  */
133
134
  export function CellSetExpressionPlotSubscriber(props) {
134
135
  const {
135
- coordinationScopes,
136
+ coordinationScopes: coordinationScopesRaw,
136
137
  closeButtonVisible,
137
138
  downloadButtonVisible,
138
139
  removeGridComponent,
@@ -147,6 +148,7 @@ export function CellSetExpressionPlotSubscriber(props) {
147
148
 
148
149
  const { classes } = useStyles();
149
150
  const loaders = useLoaders();
151
+ const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
150
152
 
151
153
  // Get "props" from the coordination space.
152
154
  const [{
@@ -4,6 +4,7 @@ import {
4
4
  useCoordination, useLoaders,
5
5
  useUrls, useReady, useGridItemSize,
6
6
  useObsSetsData,
7
+ useCoordinationScopes,
7
8
  } from '@vitessce/vit-s';
8
9
  import { isEqual } from 'lodash-es';
9
10
  import { ViewType, COMPONENT_COORDINATION_TYPES, ViewHelpMapping } from '@vitessce/constants-internal';
@@ -27,7 +28,7 @@ import { useStyles } from './styles.js';
27
28
  */
28
29
  export function CellSetSizesPlotSubscriber(props) {
29
30
  const {
30
- coordinationScopes,
31
+ coordinationScopes: coordinationScopesRaw,
31
32
  closeButtonVisible,
32
33
  downloadButtonVisible,
33
34
  removeGridComponent,
@@ -39,6 +40,7 @@ export function CellSetSizesPlotSubscriber(props) {
39
40
  const { classes } = useStyles();
40
41
 
41
42
  const loaders = useLoaders();
43
+ const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
42
44
 
43
45
  // Get "props" from the coordination space.
44
46
  const [{
@@ -8,6 +8,7 @@ import {
8
8
  useFeatureLabelsData,
9
9
  useSampleSetsData,
10
10
  useSampleEdgesData,
11
+ useCoordinationScopes,
11
12
  } from '@vitessce/vit-s';
12
13
  import { ViewType, COMPONENT_COORDINATION_TYPES, ViewHelpMapping } from '@vitessce/constants-internal';
13
14
  import { VALUE_TRANSFORM_OPTIONS } from '@vitessce/utils';
@@ -27,7 +28,7 @@ import { useExpressionSummaries } from './dot-plot-hook.js';
27
28
  */
28
29
  export function DotPlotSubscriber(props) {
29
30
  const {
30
- coordinationScopes,
31
+ coordinationScopes: coordinationScopesRaw,
31
32
  removeGridComponent,
32
33
  theme,
33
34
  title = 'Dot Plot',
@@ -37,6 +38,7 @@ export function DotPlotSubscriber(props) {
37
38
 
38
39
  const { classes } = useStyles();
39
40
  const loaders = useLoaders();
41
+ const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
40
42
 
41
43
  // Get "props" from the coordination space.
42
44
  const [{
@@ -7,6 +7,7 @@ import {
7
7
  useCoordination, useLoaders,
8
8
  useUrls, useReady, useGridItemSize,
9
9
  useObsFeatureMatrixData, useFeatureSelection,
10
+ useCoordinationScopes,
10
11
  } from '@vitessce/vit-s';
11
12
  import { ViewType, COMPONENT_COORDINATION_TYPES, ViewHelpMapping } from '@vitessce/constants-internal';
12
13
  import { setObsSelection, getObsInfoFromDataWithinRange } from '@vitessce/sets-utils';
@@ -24,7 +25,7 @@ import { useStyles } from './styles.js';
24
25
  */
25
26
  export function ExpressionHistogramSubscriber(props) {
26
27
  const {
27
- coordinationScopes,
28
+ coordinationScopes: coordinationScopesRaw,
28
29
  closeButtonVisible,
29
30
  downloadButtonVisible,
30
31
  removeGridComponent,
@@ -34,6 +35,7 @@ export function ExpressionHistogramSubscriber(props) {
34
35
 
35
36
  const { classes } = useStyles();
36
37
  const loaders = useLoaders();
38
+ const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
37
39
 
38
40
  // Get "props" from the coordination space.
39
41
  const [{
@@ -9,6 +9,7 @@ import {
9
9
  useFeatureSelection,
10
10
  useObsFeatureMatrixIndices,
11
11
  useFeatureLabelsData,
12
+ useCoordinationScopes,
12
13
  } from '@vitessce/vit-s';
13
14
  import { ViewType, COMPONENT_COORDINATION_TYPES, ViewHelpMapping } from '@vitessce/constants-internal';
14
15
  import { setObsSelection } from '@vitessce/sets-utils';
@@ -18,7 +19,7 @@ import { useStyles } from './styles.js';
18
19
 
19
20
  export function FeatureBarPlotSubscriber(props) {
20
21
  const {
21
- coordinationScopes,
22
+ coordinationScopes: coordinationScopesRaw,
22
23
  removeGridComponent,
23
24
  theme,
24
25
  yMin = 0,
@@ -28,6 +29,7 @@ export function FeatureBarPlotSubscriber(props) {
28
29
 
29
30
  const { classes } = useStyles();
30
31
  const loaders = useLoaders();
32
+ const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
31
33
 
32
34
  // Get "props" from the coordination space.
33
35
  const [{
@@ -10,6 +10,7 @@ import {
10
10
  useMatchingLoader,
11
11
  useColumnNameMapping,
12
12
  useAsyncFunction,
13
+ useCoordinationScopes,
13
14
  } from '@vitessce/vit-s';
14
15
  import {
15
16
  ViewType,
@@ -26,7 +27,7 @@ import { useRawSetPaths } from './utils.js';
26
27
 
27
28
  export function FeatureSetEnrichmentBarPlotSubscriber(props) {
28
29
  const {
29
- coordinationScopes,
30
+ coordinationScopes: coordinationScopesRaw,
30
31
  removeGridComponent,
31
32
  theme,
32
33
  helpText = ViewHelpMapping.FEATURE_SET_ENRICHMENT_BAR_PLOT,
@@ -34,6 +35,7 @@ export function FeatureSetEnrichmentBarPlotSubscriber(props) {
34
35
 
35
36
  const { classes } = useStyles();
36
37
  const loaders = useLoaders();
38
+ const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
37
39
  const transformFeature = useAsyncFunction(AsyncFunctionType.TRANSFORM_FEATURE);
38
40
 
39
41
  // Get "props" from the coordination space.
@@ -8,6 +8,7 @@ import {
8
8
  useFeatureStatsData,
9
9
  useMatchingLoader,
10
10
  useColumnNameMapping,
11
+ useCoordinationScopes,
11
12
  } from '@vitessce/vit-s';
12
13
  import {
13
14
  ViewType,
@@ -21,13 +22,14 @@ import { useRawSetPaths } from './utils.js';
21
22
  export function FeatureStatsTableSubscriber(props) {
22
23
  const {
23
24
  title = 'Differential Expression Results',
24
- coordinationScopes,
25
+ coordinationScopes: coordinationScopesRaw,
25
26
  removeGridComponent,
26
27
  theme,
27
28
  helpText = ViewHelpMapping.FEATURE_STATS_TABLE,
28
29
  } = props;
29
30
 
30
31
  const loaders = useLoaders();
32
+ const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
31
33
 
32
34
  // Get "props" from the coordination space.
33
35
  const [{
@@ -11,6 +11,7 @@ import {
11
11
  useObsSetsData,
12
12
  useSampleEdgesData,
13
13
  useSampleSetsData,
14
+ useCoordinationScopes,
14
15
  } from '@vitessce/vit-s';
15
16
  import { ViewType, COMPONENT_COORDINATION_TYPES, ViewHelpMapping } from '@vitessce/constants-internal';
16
17
  import { treeToSelectedSetMap, treeToSetSizesBySetNames, mergeObsSets } from '@vitessce/sets-utils';
@@ -25,7 +26,7 @@ const DEFAULT_HIERARCHY_LEVELS = ['obsSet', 'sampleSet'];
25
26
 
26
27
  export function TreemapSubscriber(props) {
27
28
  const {
28
- coordinationScopes,
29
+ coordinationScopes: coordinationScopesRaw,
29
30
  removeGridComponent,
30
31
  theme,
31
32
  helpText = ViewHelpMapping.TREEMAP,
@@ -33,6 +34,7 @@ export function TreemapSubscriber(props) {
33
34
 
34
35
  const { classes } = useStyles();
35
36
  const loaders = useLoaders();
37
+ const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
36
38
 
37
39
  // Get "props" from the coordination space.
38
40
  const [{
@@ -9,6 +9,7 @@ import {
9
9
  useFeatureStatsData,
10
10
  useMatchingLoader,
11
11
  useColumnNameMapping,
12
+ useCoordinationScopes,
12
13
  } from '@vitessce/vit-s';
13
14
  import {
14
15
  ViewType,
@@ -24,7 +25,7 @@ import { useRawSetPaths } from './utils.js';
24
25
  export function VolcanoPlotSubscriber(props) {
25
26
  const {
26
27
  title = 'Volcano Plot',
27
- coordinationScopes,
28
+ coordinationScopes: coordinationScopesRaw,
28
29
  removeGridComponent,
29
30
  theme,
30
31
  helpText = ViewHelpMapping.VOLCANO_PLOT,
@@ -32,6 +33,7 @@ export function VolcanoPlotSubscriber(props) {
32
33
 
33
34
  const { classes } = useStyles();
34
35
  const loaders = useLoaders();
36
+ const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
35
37
 
36
38
  // Get "props" from the coordination space.
37
39
  const [{