@vitessce/scatterplot-gating 3.4.10 → 3.4.11
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/{deflate-c70054b2.js → deflate-d789a72d.js} +1 -1
- package/dist/{index-d8a3c555.js → index-c9b4cfce.js} +27 -8
- package/dist/index.js +1 -1
- package/dist/{jpeg-1af419b8.js → jpeg-53a949c9.js} +1 -1
- package/dist/{lerc-408b2bde.js → lerc-40717afa.js} +1 -1
- package/dist/{lzw-80267e13.js → lzw-ca6c4d78.js} +1 -1
- package/dist/{packbits-a7eab764.js → packbits-c55021ab.js} +1 -1
- package/dist/{raw-be8b369a.js → raw-0f8b8d67.js} +1 -1
- package/dist/{webimage-61be8bd4.js → webimage-b3e420b5.js} +1 -1
- package/dist-tsc/GatingSubscriber.d.ts.map +1 -1
- package/dist-tsc/GatingSubscriber.js +3 -3
- package/package.json +6 -6
- package/src/GatingSubscriber.js +3 -1
|
@@ -11276,6 +11276,23 @@ const CoordinationType$1 = {
|
|
|
11276
11276
|
CONTOUR_COLOR_ENCODING: "contourColorEncoding",
|
|
11277
11277
|
CONTOUR_COLOR: "contourColor"
|
|
11278
11278
|
};
|
|
11279
|
+
const ViewHelpMapping = {
|
|
11280
|
+
SCATTERPLOT: "The scatterplot displays two-dimensional (pre-computed) dimensionality reduction results (such as from t-SNE or UMAP). Each point on the scatterplot represents an observation (e.g., cell).",
|
|
11281
|
+
HEATMAP: "The heatmap displays an observation-by-feature (e.g., cell-by-gene) matrix, typically with transformed (e.g., normalized or standardized) values.",
|
|
11282
|
+
SPATIAL: "The spatial view displays (potentially layered) spatially-resolved data including RGB or multiplexed images, segmentations of observations (bitmask- or polygon-based), and/or points (e.g., representing FISH transcripts).",
|
|
11283
|
+
DESCRIPTION: "The description view displays additional information about a dataset. When images are included in a dataset, the description view also includes image metadata (if contained in the image files).",
|
|
11284
|
+
STATUS: "The status view displays debugging messages, including app-wide error messages when datasets fail to load or when schemas fail to validate. Details about the entity under the mouse cursor (cell, gene, and/or molecule) are displayed during hover interactions.",
|
|
11285
|
+
LAYER_CONTROLLER: "The spatial layer controller provides an interface for manipulating the visualization layers displayed in the spatial view.",
|
|
11286
|
+
GENOMIC_PROFILES: "The genomic profiles view displays genome browser tracks (using the genomic-profiles data type) containing bar plots, where the genome is along the x-axis and the value at each genome position is encoded with a bar along the y-axis.",
|
|
11287
|
+
GATING: "The gating scatterplot displays expression data for two genes (along the X and Y axes). Users can select two genes, and the scatterplot is dynamically generated using observation-by-feature matrix data. Gating can then be performed by using the lasso or box select tools.",
|
|
11288
|
+
FEATURE_LIST: "The feature list controller displays an interactive list of features (e.g., genes).",
|
|
11289
|
+
OBS_SETS: "The observation sets controller displays an interactive list of (potentially hierarchical) observation sets (e.g., cell clusters or cell type annotations).",
|
|
11290
|
+
OBS_SET_SIZES: "The observation set sizes view displays a bar plot with the currently-selected observation sets (e.g., cell types) on the x-axis and bars representing their size (e.g., number of cells) on the y-axis.",
|
|
11291
|
+
OBS_SET_FEATURE_VALUE_DISTRIBUTION: "The observation set feature value distribution view displays a violin plot with values (e.g., expression values) per set (e.g., cell type) for the selected feature (e.g., gene).",
|
|
11292
|
+
FEATURE_VALUE_HISTOGRAM: "The feature value histogram displays the distribution of values (e.g., expression) for the selected feature (e.g., gene).",
|
|
11293
|
+
DOT_PLOT: "The dot plot displays summary information about expression of the selected features (e.g., genes) for each selected observation set (e.g., cell type).",
|
|
11294
|
+
FEATURE_BAR_PLOT: "The feature bar plot displays one bar per observation (e.g., cell) along the x-axis, where the value of a selected feature (e.g., gene) is encoded along the y-axis."
|
|
11295
|
+
};
|
|
11279
11296
|
const COMPONENT_COORDINATION_TYPES = {
|
|
11280
11297
|
[ViewType$1.SCATTERPLOT]: [
|
|
11281
11298
|
CoordinationType$1.DATASET,
|
|
@@ -123793,16 +123810,16 @@ function addDecoder(cases, importFn) {
|
|
|
123793
123810
|
}
|
|
123794
123811
|
cases.forEach((c2) => registry$1.set(c2, importFn));
|
|
123795
123812
|
}
|
|
123796
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
123797
|
-
addDecoder(5, () => import("./lzw-
|
|
123813
|
+
addDecoder([void 0, 1], () => import("./raw-0f8b8d67.js").then((m2) => m2.default));
|
|
123814
|
+
addDecoder(5, () => import("./lzw-ca6c4d78.js").then((m2) => m2.default));
|
|
123798
123815
|
addDecoder(6, () => {
|
|
123799
123816
|
throw new Error("old style JPEG compression is not supported.");
|
|
123800
123817
|
});
|
|
123801
|
-
addDecoder(7, () => import("./jpeg-
|
|
123802
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
123803
|
-
addDecoder(32773, () => import("./packbits-
|
|
123804
|
-
addDecoder(34887, () => import("./lerc-
|
|
123805
|
-
addDecoder(50001, () => import("./webimage-
|
|
123818
|
+
addDecoder(7, () => import("./jpeg-53a949c9.js").then((m2) => m2.default));
|
|
123819
|
+
addDecoder([8, 32946], () => import("./deflate-d789a72d.js").then((m2) => m2.default));
|
|
123820
|
+
addDecoder(32773, () => import("./packbits-c55021ab.js").then((m2) => m2.default));
|
|
123821
|
+
addDecoder(34887, () => import("./lerc-40717afa.js").then((m2) => m2.default));
|
|
123822
|
+
addDecoder(50001, () => import("./webimage-b3e420b5.js").then((m2) => m2.default));
|
|
123806
123823
|
function decodeRowAcc(row, stride) {
|
|
123807
123824
|
let length2 = row.length - stride;
|
|
123808
123825
|
let offset5 = 0;
|
|
@@ -151054,7 +151071,8 @@ function GatingSubscriber(props) {
|
|
|
151054
151071
|
disableTooltip = false,
|
|
151055
151072
|
title: titleOverride,
|
|
151056
151073
|
// Average fill density for dynamic opacity calculation.
|
|
151057
|
-
averageFillDensity
|
|
151074
|
+
averageFillDensity,
|
|
151075
|
+
helpText = ViewHelpMapping.GATING
|
|
151058
151076
|
} = props;
|
|
151059
151077
|
const loaders = useLoaders();
|
|
151060
151078
|
const setComponentHover = useSetComponentHover();
|
|
@@ -151375,6 +151393,7 @@ function GatingSubscriber(props) {
|
|
|
151375
151393
|
urls,
|
|
151376
151394
|
theme,
|
|
151377
151395
|
isReady,
|
|
151396
|
+
helpText,
|
|
151378
151397
|
options: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
151379
151398
|
ScatterplotOptions,
|
|
151380
151399
|
{
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
|
|
2
|
-
import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-
|
|
2
|
+
import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-c9b4cfce.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "@vitessce/vit-s";
|
|
5
5
|
import "react-dom";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GatingSubscriber.d.ts","sourceRoot":"","sources":["../src/GatingSubscriber.js"],"names":[],"mappings":"AAmCA;;;;;;;;;;;;KAYK;AACL,wCAVK;IAAsB,IAAI,EAAlB,MAAM;IACQ,KAAK,EAAnB,MAAM;IACQ,kBAAkB,EAAhC,MAAM;IAES,cAAc,EAA7B,OAAO;IACS,mBAAmB;IAErB,kBAAkB,EAAhC,MAAM;CAEhB,
|
|
1
|
+
{"version":3,"file":"GatingSubscriber.d.ts","sourceRoot":"","sources":["../src/GatingSubscriber.js"],"names":[],"mappings":"AAmCA;;;;;;;;;;;;KAYK;AACL,wCAVK;IAAsB,IAAI,EAAlB,MAAM;IACQ,KAAK,EAAnB,MAAM;IACQ,kBAAkB,EAAhC,MAAM;IAES,cAAc,EAA7B,OAAO;IACS,mBAAmB;IAErB,kBAAkB,EAAhC,MAAM;CAEhB,eAgaF"}
|
|
@@ -6,7 +6,7 @@ import { pluralize as plur, capitalize, commaNumber, getValueTransformFunction,
|
|
|
6
6
|
import { TitleInfo, useDeckCanvasSize, useReady, useUrls, useUint8FeatureSelection, useExpressionValueGetter, useObsSetsData, useFeatureSelection, useObsFeatureMatrixIndices, useCoordination, useLoaders, useSetComponentHover, useSetComponentViewInfo, } from '@vitessce/vit-s';
|
|
7
7
|
import { getCellSetPolygons, mergeObsSets, setObsSelection, getCellColors, } from '@vitessce/sets-utils';
|
|
8
8
|
import { Scatterplot, ScatterplotTooltipSubscriber, ScatterplotOptions, getPointSizeDevicePixels, getPointOpacity, EmptyMessage, } from '@vitessce/scatterplot';
|
|
9
|
-
import { ViewType, COMPONENT_COORDINATION_TYPES } from '@vitessce/constants-internal';
|
|
9
|
+
import { ViewType, COMPONENT_COORDINATION_TYPES, ViewHelpMapping } from '@vitessce/constants-internal';
|
|
10
10
|
import GatingScatterplotOptions from './GatingScatterplotOptions.js';
|
|
11
11
|
/**
|
|
12
12
|
* A subscriber component for the gating scatterplot.
|
|
@@ -24,7 +24,7 @@ import GatingScatterplotOptions from './GatingScatterplotOptions.js';
|
|
|
24
24
|
export function GatingSubscriber(props) {
|
|
25
25
|
const { uuid, coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, disableTooltip = false, title: titleOverride,
|
|
26
26
|
// Average fill density for dynamic opacity calculation.
|
|
27
|
-
averageFillDensity, } = props;
|
|
27
|
+
averageFillDensity, helpText = ViewHelpMapping.GATING, } = props;
|
|
28
28
|
const loaders = useLoaders();
|
|
29
29
|
const setComponentHover = useSetComponentHover();
|
|
30
30
|
const setComponentViewInfo = useSetComponentViewInfo(uuid);
|
|
@@ -192,7 +192,7 @@ export function GatingSubscriber(props) {
|
|
|
192
192
|
}, [obsXY, obsIndex, featureValueTransform,
|
|
193
193
|
gatingFeatureSelectionX, gatingFeatureSelectionY, obsType,
|
|
194
194
|
]);
|
|
195
|
-
return (_jsxs(TitleInfo, { title: title, info: `${commaNumber(cellsCount)} ${plur(obsType, cellsCount)}`, closeButtonVisible: closeButtonVisible, downloadButtonVisible: downloadButtonVisible, removeGridComponent: removeGridComponent, urls: urls, theme: theme, isReady: isReady, options: (_jsx(ScatterplotOptions, { observationsLabel: obsType, cellRadius: cellRadiusFixed, setCellRadius: setCellRadiusFixed, cellRadiusMode: cellRadiusMode, setCellRadiusMode: setCellRadiusMode, cellOpacity: cellOpacityFixed, setCellOpacity: setCellOpacityFixed, cellOpacityMode: cellOpacityMode, setCellOpacityMode: setCellOpacityMode, cellSetLabelsVisible: cellSetLabelsVisible, setCellSetLabelsVisible: setCellSetLabelsVisible, cellSetLabelSize: cellSetLabelSize, setCellSetLabelSize: setCellSetLabelSize, cellSetPolygonsVisible: cellSetPolygonsVisible, setCellSetPolygonsVisible: setCellSetPolygonsVisible, cellColorEncoding: cellColorEncoding, setCellColorEncoding: setCellColorEncoding, geneExpressionColormap: geneExpressionColormap, setGeneExpressionColormap: setGeneExpressionColormap, geneExpressionColormapRange: geneExpressionColormapRange, setGeneExpressionColormapRange: setGeneExpressionColormapRange, children: _jsx(GatingScatterplotOptions, { featureType: featureType, gatingFeatureSelectionX: gatingFeatureSelectionX, setGatingFeatureSelectionX: setGatingFeatureSelectionX, gatingFeatureSelectionY: gatingFeatureSelectionY, setGatingFeatureSelectionY: setGatingFeatureSelectionY, gatingFeatureValueTransform: featureValueTransform, setGatingFeatureValueTransform: (newValue) => {
|
|
195
|
+
return (_jsxs(TitleInfo, { title: title, info: `${commaNumber(cellsCount)} ${plur(obsType, cellsCount)}`, closeButtonVisible: closeButtonVisible, downloadButtonVisible: downloadButtonVisible, removeGridComponent: removeGridComponent, urls: urls, theme: theme, isReady: isReady, helpText: helpText, options: (_jsx(ScatterplotOptions, { observationsLabel: obsType, cellRadius: cellRadiusFixed, setCellRadius: setCellRadiusFixed, cellRadiusMode: cellRadiusMode, setCellRadiusMode: setCellRadiusMode, cellOpacity: cellOpacityFixed, setCellOpacity: setCellOpacityFixed, cellOpacityMode: cellOpacityMode, setCellOpacityMode: setCellOpacityMode, cellSetLabelsVisible: cellSetLabelsVisible, setCellSetLabelsVisible: setCellSetLabelsVisible, cellSetLabelSize: cellSetLabelSize, setCellSetLabelSize: setCellSetLabelSize, cellSetPolygonsVisible: cellSetPolygonsVisible, setCellSetPolygonsVisible: setCellSetPolygonsVisible, cellColorEncoding: cellColorEncoding, setCellColorEncoding: setCellColorEncoding, geneExpressionColormap: geneExpressionColormap, setGeneExpressionColormap: setGeneExpressionColormap, geneExpressionColormapRange: geneExpressionColormapRange, setGeneExpressionColormapRange: setGeneExpressionColormapRange, children: _jsx(GatingScatterplotOptions, { featureType: featureType, gatingFeatureSelectionX: gatingFeatureSelectionX, setGatingFeatureSelectionX: setGatingFeatureSelectionX, gatingFeatureSelectionY: gatingFeatureSelectionY, setGatingFeatureSelectionY: setGatingFeatureSelectionY, gatingFeatureValueTransform: featureValueTransform, setGatingFeatureValueTransform: (newValue) => {
|
|
196
196
|
setFeatureValueTransform(newValue);
|
|
197
197
|
setTargetX(null);
|
|
198
198
|
setTargetY(null);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/scatterplot-gating",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.11",
|
|
4
4
|
"author": "Gehlenborg Lab",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"d3-array": "^2.4.0",
|
|
21
21
|
"lodash-es": "^4.17.21",
|
|
22
22
|
"react-aria": "^3.28.0",
|
|
23
|
-
"@vitessce/constants-internal": "3.4.
|
|
24
|
-
"@vitessce/scatterplot": "3.4.
|
|
25
|
-
"@vitessce/sets-utils": "3.4.
|
|
26
|
-
"@vitessce/utils": "3.4.
|
|
27
|
-
"@vitessce/vit-s": "3.4.
|
|
23
|
+
"@vitessce/constants-internal": "3.4.11",
|
|
24
|
+
"@vitessce/scatterplot": "3.4.11",
|
|
25
|
+
"@vitessce/sets-utils": "3.4.11",
|
|
26
|
+
"@vitessce/utils": "3.4.11",
|
|
27
|
+
"@vitessce/vit-s": "3.4.11"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"react": "^18.0.0",
|
package/src/GatingSubscriber.js
CHANGED
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
getPointOpacity,
|
|
31
31
|
EmptyMessage,
|
|
32
32
|
} from '@vitessce/scatterplot';
|
|
33
|
-
import { ViewType, COMPONENT_COORDINATION_TYPES } from '@vitessce/constants-internal';
|
|
33
|
+
import { ViewType, COMPONENT_COORDINATION_TYPES, ViewHelpMapping } from '@vitessce/constants-internal';
|
|
34
34
|
import GatingScatterplotOptions from './GatingScatterplotOptions.js';
|
|
35
35
|
|
|
36
36
|
/**
|
|
@@ -58,6 +58,7 @@ export function GatingSubscriber(props) {
|
|
|
58
58
|
title: titleOverride,
|
|
59
59
|
// Average fill density for dynamic opacity calculation.
|
|
60
60
|
averageFillDensity,
|
|
61
|
+
helpText = ViewHelpMapping.GATING,
|
|
61
62
|
} = props;
|
|
62
63
|
|
|
63
64
|
const loaders = useLoaders();
|
|
@@ -361,6 +362,7 @@ export function GatingSubscriber(props) {
|
|
|
361
362
|
urls={urls}
|
|
362
363
|
theme={theme}
|
|
363
364
|
isReady={isReady}
|
|
365
|
+
helpText={helpText}
|
|
364
366
|
options={(
|
|
365
367
|
<ScatterplotOptions
|
|
366
368
|
observationsLabel={obsType}
|