@vitessce/heatmap 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-2be2485c.js → deflate-651ff0f1.js} +1 -1
- package/dist/{index-953d6196.js → index-ee6a9dfb.js} +27 -8
- package/dist/index.js +1 -1
- package/dist/{jpeg-f703d405.js → jpeg-1ac7dac2.js} +1 -1
- package/dist/{lerc-c762e2de.js → lerc-041fa622.js} +1 -1
- package/dist/{lzw-929a0051.js → lzw-d3d185fb.js} +1 -1
- package/dist/{packbits-6ec444ef.js → packbits-3b3d0e9b.js} +1 -1
- package/dist/{raw-b710e818.js → raw-a1a15d51.js} +1 -1
- package/dist/{webimage-0383ab0d.js → webimage-891a5d2c.js} +1 -1
- package/dist-tsc/HeatmapSubscriber.d.ts.map +1 -1
- package/dist-tsc/HeatmapSubscriber.js +3 -3
- package/package.json +9 -9
- package/src/HeatmapSubscriber.js +3 -1
|
@@ -11253,6 +11253,23 @@ const CoordinationType$1 = {
|
|
|
11253
11253
|
CONTOUR_COLOR_ENCODING: "contourColorEncoding",
|
|
11254
11254
|
CONTOUR_COLOR: "contourColor"
|
|
11255
11255
|
};
|
|
11256
|
+
const ViewHelpMapping = {
|
|
11257
|
+
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).",
|
|
11258
|
+
HEATMAP: "The heatmap displays an observation-by-feature (e.g., cell-by-gene) matrix, typically with transformed (e.g., normalized or standardized) values.",
|
|
11259
|
+
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).",
|
|
11260
|
+
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).",
|
|
11261
|
+
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.",
|
|
11262
|
+
LAYER_CONTROLLER: "The spatial layer controller provides an interface for manipulating the visualization layers displayed in the spatial view.",
|
|
11263
|
+
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.",
|
|
11264
|
+
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.",
|
|
11265
|
+
FEATURE_LIST: "The feature list controller displays an interactive list of features (e.g., genes).",
|
|
11266
|
+
OBS_SETS: "The observation sets controller displays an interactive list of (potentially hierarchical) observation sets (e.g., cell clusters or cell type annotations).",
|
|
11267
|
+
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.",
|
|
11268
|
+
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).",
|
|
11269
|
+
FEATURE_VALUE_HISTOGRAM: "The feature value histogram displays the distribution of values (e.g., expression) for the selected feature (e.g., gene).",
|
|
11270
|
+
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).",
|
|
11271
|
+
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."
|
|
11272
|
+
};
|
|
11256
11273
|
const COMPONENT_COORDINATION_TYPES = {
|
|
11257
11274
|
[ViewType$1.SCATTERPLOT]: [
|
|
11258
11275
|
CoordinationType$1.DATASET,
|
|
@@ -133511,16 +133528,16 @@ function addDecoder(cases, importFn) {
|
|
|
133511
133528
|
}
|
|
133512
133529
|
cases.forEach((c) => registry$1.set(c, importFn));
|
|
133513
133530
|
}
|
|
133514
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
133515
|
-
addDecoder(5, () => import("./lzw-
|
|
133531
|
+
addDecoder([void 0, 1], () => import("./raw-a1a15d51.js").then((m) => m.default));
|
|
133532
|
+
addDecoder(5, () => import("./lzw-d3d185fb.js").then((m) => m.default));
|
|
133516
133533
|
addDecoder(6, () => {
|
|
133517
133534
|
throw new Error("old style JPEG compression is not supported.");
|
|
133518
133535
|
});
|
|
133519
|
-
addDecoder(7, () => import("./jpeg-
|
|
133520
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
133521
|
-
addDecoder(32773, () => import("./packbits-
|
|
133522
|
-
addDecoder(34887, () => import("./lerc-
|
|
133523
|
-
addDecoder(50001, () => import("./webimage-
|
|
133536
|
+
addDecoder(7, () => import("./jpeg-1ac7dac2.js").then((m) => m.default));
|
|
133537
|
+
addDecoder([8, 32946], () => import("./deflate-651ff0f1.js").then((m) => m.default));
|
|
133538
|
+
addDecoder(32773, () => import("./packbits-3b3d0e9b.js").then((m) => m.default));
|
|
133539
|
+
addDecoder(34887, () => import("./lerc-041fa622.js").then((m) => m.default));
|
|
133540
|
+
addDecoder(50001, () => import("./webimage-891a5d2c.js").then((m) => m.default));
|
|
133524
133541
|
function decodeRowAcc(row, stride) {
|
|
133525
133542
|
let length2 = row.length - stride;
|
|
133526
133543
|
let offset5 = 0;
|
|
@@ -145243,7 +145260,8 @@ function HeatmapSubscriber(props) {
|
|
|
145243
145260
|
transpose: transpose2,
|
|
145244
145261
|
observationsLabelOverride,
|
|
145245
145262
|
variablesLabelOverride,
|
|
145246
|
-
title = "Heatmap"
|
|
145263
|
+
title = "Heatmap",
|
|
145264
|
+
helpText = ViewHelpMapping.HEATMAP
|
|
145247
145265
|
} = props;
|
|
145248
145266
|
const loaders = useLoaders();
|
|
145249
145267
|
const setComponentHover = useSetComponentHover();
|
|
@@ -145394,6 +145412,7 @@ function HeatmapSubscriber(props) {
|
|
|
145394
145412
|
TitleInfo,
|
|
145395
145413
|
{
|
|
145396
145414
|
title,
|
|
145415
|
+
helpText,
|
|
145397
145416
|
info: `${commaNumber(cellsCount)} ${pluralize(observationsLabel, cellsCount)} × ${commaNumber(genesCount)} ${pluralize(variablesLabel, genesCount)},
|
|
145398
145417
|
with ${commaNumber(selectedCount)} ${pluralize(observationsLabel, selectedCount)} selected`,
|
|
145399
145418
|
urls,
|
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-ee6a9dfb.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "@vitessce/vit-s";
|
|
5
5
|
import "react-dom";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeatmapSubscriber.d.ts","sourceRoot":"","sources":["../src/HeatmapSubscriber.js"],"names":[],"mappings":"AA2BA;;;;;;;;;;GAUG;AACH,yCATG;IAAsB,IAAI,EAAlB,MAAM;IACQ,kBAAkB,EAAhC,MAAM;IAEU,mBAAmB;IAErB,KAAK,EAAnB,MAAM;IACS,SAAS,EAAxB,OAAO;CAEjB,
|
|
1
|
+
{"version":3,"file":"HeatmapSubscriber.d.ts","sourceRoot":"","sources":["../src/HeatmapSubscriber.js"],"names":[],"mappings":"AA2BA;;;;;;;;;;GAUG;AACH,yCATG;IAAsB,IAAI,EAAlB,MAAM;IACQ,kBAAkB,EAAhC,MAAM;IAEU,mBAAmB;IAErB,KAAK,EAAnB,MAAM;IACS,SAAS,EAAxB,OAAO;CAEjB,eA2PA"}
|
|
@@ -3,7 +3,7 @@ import React, { useState, useCallback, useMemo, } from 'react';
|
|
|
3
3
|
import { TitleInfo, useDeckCanvasSize, useGetObsMembership, useGetObsInfo, useReady, useUrls, useObsSetsData, useObsFeatureMatrixData, useUint8ObsFeatureMatrix, useMultiObsLabels, useFeatureLabelsData, useCoordination, useLoaders, useSetComponentHover, useSetComponentViewInfo, } from '@vitessce/vit-s';
|
|
4
4
|
import { pluralize as plur, capitalize, commaNumber } from '@vitessce/utils';
|
|
5
5
|
import { mergeObsSets, findLongestCommonPath, getCellColors } from '@vitessce/sets-utils';
|
|
6
|
-
import { COMPONENT_COORDINATION_TYPES, ViewType } from '@vitessce/constants-internal';
|
|
6
|
+
import { COMPONENT_COORDINATION_TYPES, ViewType, ViewHelpMapping } from '@vitessce/constants-internal';
|
|
7
7
|
import { Legend } from '@vitessce/legend';
|
|
8
8
|
import Heatmap from './Heatmap.js';
|
|
9
9
|
import HeatmapTooltipSubscriber from './HeatmapTooltipSubscriber.js';
|
|
@@ -20,7 +20,7 @@ import HeatmapOptions from './HeatmapOptions.js';
|
|
|
20
20
|
* render as cell-by-gene or gene-by-cell.
|
|
21
21
|
*/
|
|
22
22
|
export function HeatmapSubscriber(props) {
|
|
23
|
-
const { uuid, coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, transpose, observationsLabelOverride, variablesLabelOverride, title = 'Heatmap', } = props;
|
|
23
|
+
const { uuid, coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, transpose, observationsLabelOverride, variablesLabelOverride, title = 'Heatmap', helpText = ViewHelpMapping.HEATMAP, } = props;
|
|
24
24
|
const loaders = useLoaders();
|
|
25
25
|
const setComponentHover = useSetComponentHover();
|
|
26
26
|
const setComponentViewInfo = useSetComponentViewInfo(uuid);
|
|
@@ -99,7 +99,7 @@ export function HeatmapSubscriber(props) {
|
|
|
99
99
|
`${capitalize(observationsLabel)} Set`,
|
|
100
100
|
]), [observationsLabel]);
|
|
101
101
|
const selectedCount = cellColors.size;
|
|
102
|
-
return (_jsxs(TitleInfo, { title: title, info: `${commaNumber(cellsCount)} ${plur(observationsLabel, cellsCount)} × ${commaNumber(genesCount)} ${plur(variablesLabel, genesCount)},
|
|
102
|
+
return (_jsxs(TitleInfo, { title: title, helpText: helpText, info: `${commaNumber(cellsCount)} ${plur(observationsLabel, cellsCount)} × ${commaNumber(genesCount)} ${plur(variablesLabel, genesCount)},
|
|
103
103
|
with ${commaNumber(selectedCount)} ${plur(observationsLabel, selectedCount)} selected`, urls: urls, theme: theme, closeButtonVisible: closeButtonVisible, downloadButtonVisible: downloadButtonVisible, removeGridComponent: removeGridComponent, isReady: isReady && !isRendering, options: (_jsx(HeatmapOptions, { geneExpressionColormap: geneExpressionColormap, setGeneExpressionColormap: setGeneExpressionColormap, geneExpressionColormapRange: geneExpressionColormapRange, setGeneExpressionColormapRange: setGeneExpressionColormapRange, tooltipsVisible: tooltipsVisible, setTooltipsVisible: setTooltipsVisible })), children: [_jsx(Heatmap, { ref: deckRef, transpose: transpose, viewState: { zoom: zoomX, target: [targetX, targetY] }, setViewState: ({ zoom, target }) => {
|
|
104
104
|
setZoomX(zoom);
|
|
105
105
|
setZoomY(zoom);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/heatmap",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.11",
|
|
4
4
|
"author": "Gehlenborg Lab",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
"lodash-es": "^4.17.21",
|
|
21
21
|
"uuid": "^9.0.0",
|
|
22
22
|
"react-aria": "^3.28.0",
|
|
23
|
-
"@vitessce/constants-internal": "3.4.
|
|
24
|
-
"@vitessce/gl": "3.4.
|
|
25
|
-
"@vitessce/legend": "3.4.
|
|
26
|
-
"@vitessce/sets-utils": "3.4.
|
|
27
|
-
"@vitessce/tooltip": "3.4.
|
|
28
|
-
"@vitessce/utils": "3.4.
|
|
29
|
-
"@vitessce/vit-s": "3.4.
|
|
30
|
-
"@vitessce/workers": "3.4.
|
|
23
|
+
"@vitessce/constants-internal": "3.4.11",
|
|
24
|
+
"@vitessce/gl": "3.4.11",
|
|
25
|
+
"@vitessce/legend": "3.4.11",
|
|
26
|
+
"@vitessce/sets-utils": "3.4.11",
|
|
27
|
+
"@vitessce/tooltip": "3.4.11",
|
|
28
|
+
"@vitessce/utils": "3.4.11",
|
|
29
|
+
"@vitessce/vit-s": "3.4.11",
|
|
30
|
+
"@vitessce/workers": "3.4.11"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@testing-library/jest-dom": "^5.16.4",
|
package/src/HeatmapSubscriber.js
CHANGED
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from '@vitessce/vit-s';
|
|
19
19
|
import { pluralize as plur, capitalize, commaNumber } from '@vitessce/utils';
|
|
20
20
|
import { mergeObsSets, findLongestCommonPath, getCellColors } from '@vitessce/sets-utils';
|
|
21
|
-
import { COMPONENT_COORDINATION_TYPES, ViewType } from '@vitessce/constants-internal';
|
|
21
|
+
import { COMPONENT_COORDINATION_TYPES, ViewType, ViewHelpMapping } from '@vitessce/constants-internal';
|
|
22
22
|
import { Legend } from '@vitessce/legend';
|
|
23
23
|
import Heatmap from './Heatmap.js';
|
|
24
24
|
import HeatmapTooltipSubscriber from './HeatmapTooltipSubscriber.js';
|
|
@@ -48,6 +48,7 @@ export function HeatmapSubscriber(props) {
|
|
|
48
48
|
observationsLabelOverride,
|
|
49
49
|
variablesLabelOverride,
|
|
50
50
|
title = 'Heatmap',
|
|
51
|
+
helpText = ViewHelpMapping.HEATMAP,
|
|
51
52
|
} = props;
|
|
52
53
|
|
|
53
54
|
const loaders = useLoaders();
|
|
@@ -199,6 +200,7 @@ export function HeatmapSubscriber(props) {
|
|
|
199
200
|
return (
|
|
200
201
|
<TitleInfo
|
|
201
202
|
title={title}
|
|
203
|
+
helpText={helpText}
|
|
202
204
|
info={`${commaNumber(cellsCount)} ${plur(observationsLabel, cellsCount)} × ${commaNumber(genesCount)} ${plur(variablesLabel, genesCount)},
|
|
203
205
|
with ${commaNumber(selectedCount)} ${plur(observationsLabel, selectedCount)} selected`}
|
|
204
206
|
urls={urls}
|