@vitessce/scatterplot-embedding 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-d9a80bee.js → deflate-9e699c70.js} +1 -1
- package/dist/{index-3543c718.js → index-f135e4b2.js} +26 -7
- package/dist/index.js +1 -1
- package/dist/{jpeg-67801b6f.js → jpeg-009f4f5a.js} +1 -1
- package/dist/{lerc-08b0769c.js → lerc-3a631699.js} +1 -1
- package/dist/{lzw-9c5f8c34.js → lzw-0762ddb6.js} +1 -1
- package/dist/{packbits-b0b456ef.js → packbits-89153e95.js} +1 -1
- package/dist/{raw-3cb16c7d.js → raw-d3cd6359.js} +1 -1
- package/dist/{webimage-20f3638a.js → webimage-377ed019.js} +1 -1
- package/dist-tsc/EmbeddingScatterplotSubscriber.d.ts.map +1 -1
- package/dist-tsc/EmbeddingScatterplotSubscriber.js +3 -3
- package/package.json +7 -7
- package/src/EmbeddingScatterplotSubscriber.js +3 -1
|
@@ -11269,6 +11269,23 @@ const CoordinationType$1 = {
|
|
|
11269
11269
|
CONTOUR_COLOR_ENCODING: "contourColorEncoding",
|
|
11270
11270
|
CONTOUR_COLOR: "contourColor"
|
|
11271
11271
|
};
|
|
11272
|
+
const ViewHelpMapping = {
|
|
11273
|
+
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).",
|
|
11274
|
+
HEATMAP: "The heatmap displays an observation-by-feature (e.g., cell-by-gene) matrix, typically with transformed (e.g., normalized or standardized) values.",
|
|
11275
|
+
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).",
|
|
11276
|
+
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).",
|
|
11277
|
+
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.",
|
|
11278
|
+
LAYER_CONTROLLER: "The spatial layer controller provides an interface for manipulating the visualization layers displayed in the spatial view.",
|
|
11279
|
+
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.",
|
|
11280
|
+
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.",
|
|
11281
|
+
FEATURE_LIST: "The feature list controller displays an interactive list of features (e.g., genes).",
|
|
11282
|
+
OBS_SETS: "The observation sets controller displays an interactive list of (potentially hierarchical) observation sets (e.g., cell clusters or cell type annotations).",
|
|
11283
|
+
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.",
|
|
11284
|
+
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).",
|
|
11285
|
+
FEATURE_VALUE_HISTOGRAM: "The feature value histogram displays the distribution of values (e.g., expression) for the selected feature (e.g., gene).",
|
|
11286
|
+
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).",
|
|
11287
|
+
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."
|
|
11288
|
+
};
|
|
11272
11289
|
const COMPONENT_COORDINATION_TYPES = {
|
|
11273
11290
|
[ViewType$1.SCATTERPLOT]: [
|
|
11274
11291
|
CoordinationType$1.DATASET,
|
|
@@ -123940,16 +123957,16 @@ function addDecoder(cases, importFn) {
|
|
|
123940
123957
|
}
|
|
123941
123958
|
cases.forEach((c2) => registry$1.set(c2, importFn));
|
|
123942
123959
|
}
|
|
123943
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
123944
|
-
addDecoder(5, () => import("./lzw-
|
|
123960
|
+
addDecoder([void 0, 1], () => import("./raw-d3cd6359.js").then((m2) => m2.default));
|
|
123961
|
+
addDecoder(5, () => import("./lzw-0762ddb6.js").then((m2) => m2.default));
|
|
123945
123962
|
addDecoder(6, () => {
|
|
123946
123963
|
throw new Error("old style JPEG compression is not supported.");
|
|
123947
123964
|
});
|
|
123948
|
-
addDecoder(7, () => import("./jpeg-
|
|
123949
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
123950
|
-
addDecoder(32773, () => import("./packbits-
|
|
123951
|
-
addDecoder(34887, () => import("./lerc-
|
|
123952
|
-
addDecoder(50001, () => import("./webimage-
|
|
123965
|
+
addDecoder(7, () => import("./jpeg-009f4f5a.js").then((m2) => m2.default));
|
|
123966
|
+
addDecoder([8, 32946], () => import("./deflate-9e699c70.js").then((m2) => m2.default));
|
|
123967
|
+
addDecoder(32773, () => import("./packbits-89153e95.js").then((m2) => m2.default));
|
|
123968
|
+
addDecoder(34887, () => import("./lerc-3a631699.js").then((m2) => m2.default));
|
|
123969
|
+
addDecoder(50001, () => import("./webimage-377ed019.js").then((m2) => m2.default));
|
|
123953
123970
|
function decodeRowAcc(row, stride) {
|
|
123954
123971
|
let length2 = row.length - stride;
|
|
123955
123972
|
let offset5 = 0;
|
|
@@ -148147,6 +148164,7 @@ function EmbeddingScatterplotSubscriber(props) {
|
|
|
148147
148164
|
theme,
|
|
148148
148165
|
observationsLabelOverride,
|
|
148149
148166
|
title: titleOverride,
|
|
148167
|
+
helpText = ViewHelpMapping.SCATTERPLOT,
|
|
148150
148168
|
// Average fill density for dynamic opacity calculation.
|
|
148151
148169
|
averageFillDensity
|
|
148152
148170
|
} = props;
|
|
@@ -148556,6 +148574,7 @@ function EmbeddingScatterplotSubscriber(props) {
|
|
|
148556
148574
|
urls,
|
|
148557
148575
|
theme,
|
|
148558
148576
|
isReady,
|
|
148577
|
+
helpText,
|
|
148559
148578
|
options: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
148560
148579
|
ScatterplotOptions,
|
|
148561
148580
|
{
|
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-f135e4b2.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "@vitessce/vit-s";
|
|
5
5
|
import "react-dom";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmbeddingScatterplotSubscriber.d.ts","sourceRoot":"","sources":["../src/EmbeddingScatterplotSubscriber.js"],"names":[],"mappings":"AAyCA;;;;;;;;;;;;GAYG;AACH,sDAVG;IAAsB,IAAI,EAAlB,MAAM;IACQ,KAAK,EAAnB,MAAM;IACQ,kBAAkB,EAAhC,MAAM;IAEU,mBAAmB;IAErB,KAAK,EAAnB,MAAM;IACQ,kBAAkB,EAAhC,MAAM;CAEhB,
|
|
1
|
+
{"version":3,"file":"EmbeddingScatterplotSubscriber.d.ts","sourceRoot":"","sources":["../src/EmbeddingScatterplotSubscriber.js"],"names":[],"mappings":"AAyCA;;;;;;;;;;;;GAYG;AACH,sDAVG;IAAsB,IAAI,EAAlB,MAAM;IACQ,KAAK,EAAnB,MAAM;IACQ,kBAAkB,EAAhC,MAAM;IAEU,mBAAmB;IAErB,KAAK,EAAnB,MAAM;IACQ,kBAAkB,EAAhC,MAAM;CAEhB,eAqgBA"}
|
|
@@ -7,7 +7,7 @@ import { setObsSelection, mergeObsSets, getCellSetPolygons, getCellColors, strat
|
|
|
7
7
|
import { pluralize as plur, commaNumber } from '@vitessce/utils';
|
|
8
8
|
import { Scatterplot, ScatterplotTooltipSubscriber, ScatterplotOptions, getPointSizeDevicePixels, getPointOpacity, } from '@vitessce/scatterplot';
|
|
9
9
|
import { Legend } from '@vitessce/legend';
|
|
10
|
-
import { ViewType, COMPONENT_COORDINATION_TYPES } from '@vitessce/constants-internal';
|
|
10
|
+
import { ViewType, COMPONENT_COORDINATION_TYPES, ViewHelpMapping } from '@vitessce/constants-internal';
|
|
11
11
|
import { DEFAULT_CONTOUR_PERCENTILES } from './constants.js';
|
|
12
12
|
/**
|
|
13
13
|
* A subscriber component for the scatterplot.
|
|
@@ -23,7 +23,7 @@ import { DEFAULT_CONTOUR_PERCENTILES } from './constants.js';
|
|
|
23
23
|
* when using dynamic opacity mode.
|
|
24
24
|
*/
|
|
25
25
|
export function EmbeddingScatterplotSubscriber(props) {
|
|
26
|
-
const { uuid, coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, observationsLabelOverride, title: titleOverride,
|
|
26
|
+
const { uuid, coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, observationsLabelOverride, title: titleOverride, helpText = ViewHelpMapping.SCATTERPLOT,
|
|
27
27
|
// Average fill density for dynamic opacity calculation.
|
|
28
28
|
averageFillDensity, } = props;
|
|
29
29
|
const loaders = useLoaders();
|
|
@@ -253,7 +253,7 @@ export function EmbeddingScatterplotSubscriber(props) {
|
|
|
253
253
|
setTargetY(target[1]);
|
|
254
254
|
setTargetZ(target[2] || 0);
|
|
255
255
|
};
|
|
256
|
-
return (_jsxs(TitleInfo, { title: title, info: `${commaNumber(cellsCount)} ${plur(observationsLabel, cellsCount)}`, closeButtonVisible: closeButtonVisible, downloadButtonVisible: downloadButtonVisible, removeGridComponent: removeGridComponent, urls: urls, theme: theme, isReady: isReady, options: (_jsx(ScatterplotOptions, { observationsLabel: observationsLabel, cellRadius: cellRadiusFixed, setCellRadius: setCellRadiusFixed, cellRadiusMode: cellRadiusMode, setCellRadiusMode: setCellRadiusMode, cellOpacity: cellOpacityFixed, setCellOpacity: setCellOpacityFixed, cellOpacityMode: cellOpacityMode, setCellOpacityMode: setCellOpacityMode, cellSetLabelsVisible: cellSetLabelsVisible, setCellSetLabelsVisible: setCellSetLabelsVisible, tooltipsVisible: tooltipsVisible, setTooltipsVisible: setTooltipsVisible, cellSetLabelSize: cellSetLabelSize, setCellSetLabelSize: setCellSetLabelSize, cellSetPolygonsVisible: cellSetPolygonsVisible, setCellSetPolygonsVisible: setCellSetPolygonsVisible, cellColorEncoding: cellColorEncoding, setCellColorEncoding: setCellColorEncoding, geneExpressionColormap: geneExpressionColormap, setGeneExpressionColormap: setGeneExpressionColormap, geneExpressionColormapRange: geneExpressionColormapRange, setGeneExpressionColormapRange: setGeneExpressionColormapRange, embeddingPointsVisible: embeddingPointsVisible, setEmbeddingPointsVisible: setEmbeddingPointsVisible, embeddingContoursVisible: embeddingContoursVisible, setEmbeddingContoursVisible: setEmbeddingContoursVisible, embeddingContoursFilled: embeddingContoursFilled, setEmbeddingContoursFilled: setEmbeddingContoursFilled, contourPercentiles: contourPercentiles, setContourPercentiles: setContourPercentiles, defaultContourPercentiles: DEFAULT_CONTOUR_PERCENTILES, contourColorEncoding: contourColorEncoding, setContourColorEncoding: setContourColorEncoding })), children: [_jsx(Scatterplot, { ref: deckRef, uuid: uuid, theme: theme, viewState: { zoom, target: [targetX, targetY, targetZ] }, setViewState: setViewState, originalViewState: originalViewState, obsEmbeddingIndex: obsEmbeddingIndex, obsEmbedding: obsEmbedding, cellFilter: cellFilter, cellSelection: cellSelection, cellHighlight: cellHighlight, cellColors: cellColors, cellSetPolygons: cellSetPolygons, cellSetLabelSize: cellSetLabelSize, cellSetLabelsVisible: cellSetLabelsVisible, cellSetPolygonsVisible: cellSetPolygonsVisible, setCellFilter: setCellFilter, setCellSelection: setCellSelectionProp, setCellHighlight: setCellHighlight, cellRadius: cellRadius, cellOpacity: cellOpacity, cellColorEncoding: cellColorEncoding, geneExpressionColormap: geneExpressionColormap, geneExpressionColormapRange: geneExpressionColormapRange, setComponentHover: () => {
|
|
256
|
+
return (_jsxs(TitleInfo, { title: title, info: `${commaNumber(cellsCount)} ${plur(observationsLabel, cellsCount)}`, closeButtonVisible: closeButtonVisible, downloadButtonVisible: downloadButtonVisible, removeGridComponent: removeGridComponent, urls: urls, theme: theme, isReady: isReady, helpText: helpText, options: (_jsx(ScatterplotOptions, { observationsLabel: observationsLabel, cellRadius: cellRadiusFixed, setCellRadius: setCellRadiusFixed, cellRadiusMode: cellRadiusMode, setCellRadiusMode: setCellRadiusMode, cellOpacity: cellOpacityFixed, setCellOpacity: setCellOpacityFixed, cellOpacityMode: cellOpacityMode, setCellOpacityMode: setCellOpacityMode, cellSetLabelsVisible: cellSetLabelsVisible, setCellSetLabelsVisible: setCellSetLabelsVisible, tooltipsVisible: tooltipsVisible, setTooltipsVisible: setTooltipsVisible, cellSetLabelSize: cellSetLabelSize, setCellSetLabelSize: setCellSetLabelSize, cellSetPolygonsVisible: cellSetPolygonsVisible, setCellSetPolygonsVisible: setCellSetPolygonsVisible, cellColorEncoding: cellColorEncoding, setCellColorEncoding: setCellColorEncoding, geneExpressionColormap: geneExpressionColormap, setGeneExpressionColormap: setGeneExpressionColormap, geneExpressionColormapRange: geneExpressionColormapRange, setGeneExpressionColormapRange: setGeneExpressionColormapRange, embeddingPointsVisible: embeddingPointsVisible, setEmbeddingPointsVisible: setEmbeddingPointsVisible, embeddingContoursVisible: embeddingContoursVisible, setEmbeddingContoursVisible: setEmbeddingContoursVisible, embeddingContoursFilled: embeddingContoursFilled, setEmbeddingContoursFilled: setEmbeddingContoursFilled, contourPercentiles: contourPercentiles, setContourPercentiles: setContourPercentiles, defaultContourPercentiles: DEFAULT_CONTOUR_PERCENTILES, contourColorEncoding: contourColorEncoding, setContourColorEncoding: setContourColorEncoding })), children: [_jsx(Scatterplot, { ref: deckRef, uuid: uuid, theme: theme, viewState: { zoom, target: [targetX, targetY, targetZ] }, setViewState: setViewState, originalViewState: originalViewState, obsEmbeddingIndex: obsEmbeddingIndex, obsEmbedding: obsEmbedding, cellFilter: cellFilter, cellSelection: cellSelection, cellHighlight: cellHighlight, cellColors: cellColors, cellSetPolygons: cellSetPolygons, cellSetLabelSize: cellSetLabelSize, cellSetLabelsVisible: cellSetLabelsVisible, cellSetPolygonsVisible: cellSetPolygonsVisible, setCellFilter: setCellFilter, setCellSelection: setCellSelectionProp, setCellHighlight: setCellHighlight, cellRadius: cellRadius, cellOpacity: cellOpacity, cellColorEncoding: cellColorEncoding, geneExpressionColormap: geneExpressionColormap, geneExpressionColormapRange: geneExpressionColormapRange, setComponentHover: () => {
|
|
257
257
|
setComponentHover(uuid);
|
|
258
258
|
}, updateViewInfo: setComponentViewInfo, getExpressionValue: getExpressionValue, getCellIsSelected: getCellIsSelected, obsSetSelection: cellSetSelection, sampleSetSelection: sampleSetSelection,
|
|
259
259
|
// InternMap data structures where keys are
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/scatterplot-embedding",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.11",
|
|
4
4
|
"author": "Gehlenborg Lab",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -20,12 +20,12 @@
|
|
|
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/legend": "3.4.
|
|
25
|
-
"@vitessce/scatterplot": "3.4.
|
|
26
|
-
"@vitessce/sets-utils": "3.4.
|
|
27
|
-
"@vitessce/utils": "3.4.
|
|
28
|
-
"@vitessce/vit-s": "3.4.
|
|
23
|
+
"@vitessce/constants-internal": "3.4.11",
|
|
24
|
+
"@vitessce/legend": "3.4.11",
|
|
25
|
+
"@vitessce/scatterplot": "3.4.11",
|
|
26
|
+
"@vitessce/sets-utils": "3.4.11",
|
|
27
|
+
"@vitessce/utils": "3.4.11",
|
|
28
|
+
"@vitessce/vit-s": "3.4.11"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"react": "^18.0.0",
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
getPointOpacity,
|
|
36
36
|
} from '@vitessce/scatterplot';
|
|
37
37
|
import { Legend } from '@vitessce/legend';
|
|
38
|
-
import { ViewType, COMPONENT_COORDINATION_TYPES } from '@vitessce/constants-internal';
|
|
38
|
+
import { ViewType, COMPONENT_COORDINATION_TYPES, ViewHelpMapping } from '@vitessce/constants-internal';
|
|
39
39
|
import { DEFAULT_CONTOUR_PERCENTILES } from './constants.js';
|
|
40
40
|
|
|
41
41
|
|
|
@@ -62,6 +62,7 @@ export function EmbeddingScatterplotSubscriber(props) {
|
|
|
62
62
|
theme,
|
|
63
63
|
observationsLabelOverride,
|
|
64
64
|
title: titleOverride,
|
|
65
|
+
helpText = ViewHelpMapping.SCATTERPLOT,
|
|
65
66
|
// Average fill density for dynamic opacity calculation.
|
|
66
67
|
averageFillDensity,
|
|
67
68
|
} = props;
|
|
@@ -451,6 +452,7 @@ export function EmbeddingScatterplotSubscriber(props) {
|
|
|
451
452
|
urls={urls}
|
|
452
453
|
theme={theme}
|
|
453
454
|
isReady={isReady}
|
|
455
|
+
helpText={helpText}
|
|
454
456
|
options={(
|
|
455
457
|
<ScatterplotOptions
|
|
456
458
|
observationsLabel={observationsLabel}
|