@vitessce/heatmap 3.4.10 → 3.4.12
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-17ee4fbc.js} +1 -1
- package/dist/{index-953d6196.js → index-005b1147.js} +30 -10
- package/dist/index.js +1 -1
- package/dist/{jpeg-f703d405.js → jpeg-61c3e2a6.js} +1 -1
- package/dist/{lerc-c762e2de.js → lerc-023bfa6c.js} +1 -1
- package/dist/{lzw-929a0051.js → lzw-860d563d.js} +1 -1
- package/dist/{packbits-6ec444ef.js → packbits-5df44667.js} +1 -1
- package/dist/{raw-b710e818.js → raw-f5ac4d51.js} +1 -1
- package/dist/{webimage-0383ab0d.js → webimage-b230879f.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
|
@@ -11139,6 +11139,7 @@ const CoordinationType$1 = {
|
|
|
11139
11139
|
FEATURE_TYPE: "featureType",
|
|
11140
11140
|
FEATURE_VALUE_TYPE: "featureValueType",
|
|
11141
11141
|
OBS_LABELS_TYPE: "obsLabelsType",
|
|
11142
|
+
FEATURE_LABELS_TYPE: "featureLabelsType",
|
|
11142
11143
|
// Other types
|
|
11143
11144
|
EMBEDDING_TYPE: "embeddingType",
|
|
11144
11145
|
EMBEDDING_ZOOM: "embeddingZoom",
|
|
@@ -11253,6 +11254,23 @@ const CoordinationType$1 = {
|
|
|
11253
11254
|
CONTOUR_COLOR_ENCODING: "contourColorEncoding",
|
|
11254
11255
|
CONTOUR_COLOR: "contourColor"
|
|
11255
11256
|
};
|
|
11257
|
+
const ViewHelpMapping = {
|
|
11258
|
+
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).",
|
|
11259
|
+
HEATMAP: "The heatmap displays an observation-by-feature (e.g., cell-by-gene) matrix, typically with transformed (e.g., normalized or standardized) values.",
|
|
11260
|
+
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).",
|
|
11261
|
+
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).",
|
|
11262
|
+
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.",
|
|
11263
|
+
LAYER_CONTROLLER: "The spatial layer controller provides an interface for manipulating the visualization layers displayed in the spatial view.",
|
|
11264
|
+
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.",
|
|
11265
|
+
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.",
|
|
11266
|
+
FEATURE_LIST: "The feature list controller displays an interactive list of features (e.g., genes).",
|
|
11267
|
+
OBS_SETS: "The observation sets controller displays an interactive list of (potentially hierarchical) observation sets (e.g., cell clusters or cell type annotations).",
|
|
11268
|
+
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.",
|
|
11269
|
+
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).",
|
|
11270
|
+
FEATURE_VALUE_HISTOGRAM: "The feature value histogram displays the distribution of values (e.g., expression) for the selected feature (e.g., gene).",
|
|
11271
|
+
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).",
|
|
11272
|
+
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."
|
|
11273
|
+
};
|
|
11256
11274
|
const COMPONENT_COORDINATION_TYPES = {
|
|
11257
11275
|
[ViewType$1.SCATTERPLOT]: [
|
|
11258
11276
|
CoordinationType$1.DATASET,
|
|
@@ -11931,7 +11949,7 @@ const annDataObsSetsArr = z.array(z.object({
|
|
|
11931
11949
|
]),
|
|
11932
11950
|
scorePath: z.string().optional().describe("The location in the AnnData store for the set confidence scores, like 'obs/celltype_prediction_score.'")
|
|
11933
11951
|
}));
|
|
11934
|
-
|
|
11952
|
+
z.object({
|
|
11935
11953
|
obsSets: annDataObsSetsArr
|
|
11936
11954
|
});
|
|
11937
11955
|
const annDataObsFeatureColumnsArr = z.array(z.object({
|
|
@@ -11993,7 +12011,7 @@ const obsFeatureMatrixSpatialdataSchema = annDataObsFeatureMatrix.extend({
|
|
|
11993
12011
|
const obsSetsSpatialdataSchema = z.object({
|
|
11994
12012
|
region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
|
|
11995
12013
|
tablePath: z.string().optional().describe("The path to a table which contains the index for the set values."),
|
|
11996
|
-
obsSets:
|
|
12014
|
+
obsSets: annDataObsSetsArr
|
|
11997
12015
|
});
|
|
11998
12016
|
z.object({
|
|
11999
12017
|
targetX: z.number(),
|
|
@@ -133511,16 +133529,16 @@ function addDecoder(cases, importFn) {
|
|
|
133511
133529
|
}
|
|
133512
133530
|
cases.forEach((c) => registry$1.set(c, importFn));
|
|
133513
133531
|
}
|
|
133514
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
133515
|
-
addDecoder(5, () => import("./lzw-
|
|
133532
|
+
addDecoder([void 0, 1], () => import("./raw-f5ac4d51.js").then((m) => m.default));
|
|
133533
|
+
addDecoder(5, () => import("./lzw-860d563d.js").then((m) => m.default));
|
|
133516
133534
|
addDecoder(6, () => {
|
|
133517
133535
|
throw new Error("old style JPEG compression is not supported.");
|
|
133518
133536
|
});
|
|
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-
|
|
133537
|
+
addDecoder(7, () => import("./jpeg-61c3e2a6.js").then((m) => m.default));
|
|
133538
|
+
addDecoder([8, 32946], () => import("./deflate-17ee4fbc.js").then((m) => m.default));
|
|
133539
|
+
addDecoder(32773, () => import("./packbits-5df44667.js").then((m) => m.default));
|
|
133540
|
+
addDecoder(34887, () => import("./lerc-023bfa6c.js").then((m) => m.default));
|
|
133541
|
+
addDecoder(50001, () => import("./webimage-b230879f.js").then((m) => m.default));
|
|
133524
133542
|
function decodeRowAcc(row, stride) {
|
|
133525
133543
|
let length2 = row.length - stride;
|
|
133526
133544
|
let offset5 = 0;
|
|
@@ -145243,7 +145261,8 @@ function HeatmapSubscriber(props) {
|
|
|
145243
145261
|
transpose: transpose2,
|
|
145244
145262
|
observationsLabelOverride,
|
|
145245
145263
|
variablesLabelOverride,
|
|
145246
|
-
title = "Heatmap"
|
|
145264
|
+
title = "Heatmap",
|
|
145265
|
+
helpText = ViewHelpMapping.HEATMAP
|
|
145247
145266
|
} = props;
|
|
145248
145267
|
const loaders = useLoaders();
|
|
145249
145268
|
const setComponentHover = useSetComponentHover();
|
|
@@ -145394,6 +145413,7 @@ function HeatmapSubscriber(props) {
|
|
|
145394
145413
|
TitleInfo,
|
|
145395
145414
|
{
|
|
145396
145415
|
title,
|
|
145416
|
+
helpText,
|
|
145397
145417
|
info: `${commaNumber(cellsCount)} ${pluralize(observationsLabel, cellsCount)} × ${commaNumber(genesCount)} ${pluralize(variablesLabel, genesCount)},
|
|
145398
145418
|
with ${commaNumber(selectedCount)} ${pluralize(observationsLabel, selectedCount)} selected`,
|
|
145399
145419
|
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-005b1147.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.12",
|
|
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.12",
|
|
24
|
+
"@vitessce/gl": "3.4.12",
|
|
25
|
+
"@vitessce/legend": "3.4.12",
|
|
26
|
+
"@vitessce/sets-utils": "3.4.12",
|
|
27
|
+
"@vitessce/tooltip": "3.4.12",
|
|
28
|
+
"@vitessce/utils": "3.4.12",
|
|
29
|
+
"@vitessce/vit-s": "3.4.12",
|
|
30
|
+
"@vitessce/workers": "3.4.12"
|
|
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}
|