@vitessce/feature-list 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/index.js
CHANGED
|
@@ -1430,6 +1430,23 @@ const CoordinationType = {
|
|
|
1430
1430
|
CONTOUR_COLOR_ENCODING: "contourColorEncoding",
|
|
1431
1431
|
CONTOUR_COLOR: "contourColor"
|
|
1432
1432
|
};
|
|
1433
|
+
const ViewHelpMapping = {
|
|
1434
|
+
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).",
|
|
1435
|
+
HEATMAP: "The heatmap displays an observation-by-feature (e.g., cell-by-gene) matrix, typically with transformed (e.g., normalized or standardized) values.",
|
|
1436
|
+
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).",
|
|
1437
|
+
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).",
|
|
1438
|
+
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.",
|
|
1439
|
+
LAYER_CONTROLLER: "The spatial layer controller provides an interface for manipulating the visualization layers displayed in the spatial view.",
|
|
1440
|
+
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.",
|
|
1441
|
+
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.",
|
|
1442
|
+
FEATURE_LIST: "The feature list controller displays an interactive list of features (e.g., genes).",
|
|
1443
|
+
OBS_SETS: "The observation sets controller displays an interactive list of (potentially hierarchical) observation sets (e.g., cell clusters or cell type annotations).",
|
|
1444
|
+
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.",
|
|
1445
|
+
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).",
|
|
1446
|
+
FEATURE_VALUE_HISTOGRAM: "The feature value histogram displays the distribution of values (e.g., expression) for the selected feature (e.g., gene).",
|
|
1447
|
+
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).",
|
|
1448
|
+
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."
|
|
1449
|
+
};
|
|
1433
1450
|
const COMPONENT_COORDINATION_TYPES = {
|
|
1434
1451
|
[ViewType.SCATTERPLOT]: [
|
|
1435
1452
|
CoordinationType.DATASET,
|
|
@@ -15060,7 +15077,8 @@ function FeatureListSubscriber(props) {
|
|
|
15060
15077
|
sort = "alphabetical",
|
|
15061
15078
|
sortKey = null,
|
|
15062
15079
|
closeButtonVisible,
|
|
15063
|
-
downloadButtonVisible
|
|
15080
|
+
downloadButtonVisible,
|
|
15081
|
+
helpText = ViewHelpMapping.FEATURE_LIST
|
|
15064
15082
|
} = props;
|
|
15065
15083
|
const loaders = useLoaders();
|
|
15066
15084
|
const [{
|
|
@@ -15124,6 +15142,7 @@ function FeatureListSubscriber(props) {
|
|
|
15124
15142
|
removeGridComponent,
|
|
15125
15143
|
isReady,
|
|
15126
15144
|
urls,
|
|
15145
|
+
helpText,
|
|
15127
15146
|
options: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
15128
15147
|
FeatureListOptions,
|
|
15129
15148
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeatureListSubscriber.d.ts","sourceRoot":"","sources":["../src/FeatureListSubscriber.js"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,6CAlBG;IAAsB,KAAK,EAAnB,MAAM;IACQ,kBAAkB,EAAhC,MAAM;IAEU,mBAAmB;IAErB,KAAK,EAAnB,MAAM;IACQ,sBAAsB,EAApC,MAAM;IAEQ,4BAA4B,EAA1C,MAAM;IAES,iBAAiB,EAAhC,OAAO;IAEQ,SAAS,EAAxB,OAAO;IAC0B,IAAI,EAArC,cAAc,GAAC,UAAU;IAGkB,OAAO,EAAlD,cAAc,GAAC,eAAe,GAAC,IAAI;CAC7C,
|
|
1
|
+
{"version":3,"file":"FeatureListSubscriber.d.ts","sourceRoot":"","sources":["../src/FeatureListSubscriber.js"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,6CAlBG;IAAsB,KAAK,EAAnB,MAAM;IACQ,kBAAkB,EAAhC,MAAM;IAEU,mBAAmB;IAErB,KAAK,EAAnB,MAAM;IACQ,sBAAsB,EAApC,MAAM;IAEQ,4BAA4B,EAA1C,MAAM;IAES,iBAAiB,EAAhC,OAAO;IAEQ,SAAS,EAAxB,OAAO;IAC0B,IAAI,EAArC,cAAc,GAAC,UAAU;IAGkB,OAAO,EAAlD,cAAc,GAAC,eAAe,GAAC,IAAI;CAC7C,eAsHA"}
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
3
|
import { pluralize as plur, capitalize, commaNumber } from '@vitessce/utils';
|
|
4
4
|
import { TitleInfo, useReady, useUrls, useFeatureLabelsData, useObsFeatureMatrixIndices, useCoordination, useLoaders, } from '@vitessce/vit-s';
|
|
5
|
-
import { ViewType, COMPONENT_COORDINATION_TYPES } from '@vitessce/constants-internal';
|
|
5
|
+
import { ViewType, COMPONENT_COORDINATION_TYPES, ViewHelpMapping } from '@vitessce/constants-internal';
|
|
6
6
|
import FeatureList from './FeatureList.js';
|
|
7
7
|
import FeatureListOptions from './FeatureListOptions.js';
|
|
8
8
|
/**
|
|
@@ -27,7 +27,7 @@ import FeatureListOptions from './FeatureListOptions.js';
|
|
|
27
27
|
* @param {'featureIndex'|'featureLabels'|null} props.sortKey The information to use for sorting.
|
|
28
28
|
*/
|
|
29
29
|
export function FeatureListSubscriber(props) {
|
|
30
|
-
const { coordinationScopes, removeGridComponent, variablesLabelOverride, theme, title: titleOverride, enableMultiSelect = false, showTable = false, sort = 'alphabetical', sortKey = null, closeButtonVisible, downloadButtonVisible, } = props;
|
|
30
|
+
const { coordinationScopes, removeGridComponent, variablesLabelOverride, theme, title: titleOverride, enableMultiSelect = false, showTable = false, sort = 'alphabetical', sortKey = null, closeButtonVisible, downloadButtonVisible, helpText = ViewHelpMapping.FEATURE_LIST, } = props;
|
|
31
31
|
const loaders = useLoaders();
|
|
32
32
|
// Get "props" from the coordination space.
|
|
33
33
|
const [{ dataset, obsType, featureType, featureSelection: geneSelection, featureFilter: geneFilter, obsColorEncoding: cellColorEncoding, }, { setFeatureSelection: setGeneSelection, setFeatureFilter: setGeneFilter, setFeatureHighlight: setGeneHighlight, setObsColorEncoding: setCellColorEncoding, }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType.FEATURE_LIST], coordinationScopes);
|
|
@@ -61,5 +61,5 @@ export function FeatureListSubscriber(props) {
|
|
|
61
61
|
// Virtual scroll is used but this allows for the same styling as a scroll component
|
|
62
62
|
// even though this no longer uses the TitleInfo component's
|
|
63
63
|
// scroll css (SelectableTable is virtual scroll).
|
|
64
|
-
isScroll: true, closeButtonVisible: closeButtonVisible, downloadButtonVisible: downloadButtonVisible, removeGridComponent: removeGridComponent, isReady: isReady, urls: urls, options: (_jsx(FeatureListOptions, { featureListSort: featureListSort, setFeatureListSort: setFeatureListSort, featureListSortKey: featureListSortKey || initialSortKey, setFeatureListSortKey: setFeatureListSortKey, showFeatureTable: showFeatureTable, setShowFeatureTable: setShowFeatureTable, hasFeatureLabels: Boolean(featureLabelsMap), primaryColumnName: primaryColumnName })), children: _jsx(FeatureList, { hasColorEncoding: cellColorEncoding === 'geneSelection', showFeatureTable: showFeatureTable, geneList: geneList, featureListSort: featureListSort, featureListSortKey: featureListSortKey || initialSortKey, featureLabelsMap: featureLabelsMap, featureType: featureType, geneSelection: geneSelection, geneFilter: geneFilter, setGeneSelection: setGeneSelectionAndColorEncoding, setGeneFilter: setGeneFilter, setGeneHighlight: setGeneHighlight, enableMultiSelect: enableMultiSelect, hasFeatureLabels: Boolean(featureLabelsMap), primaryColumnName: primaryColumnName }) }));
|
|
64
|
+
isScroll: true, closeButtonVisible: closeButtonVisible, downloadButtonVisible: downloadButtonVisible, removeGridComponent: removeGridComponent, isReady: isReady, urls: urls, helpText: helpText, options: (_jsx(FeatureListOptions, { featureListSort: featureListSort, setFeatureListSort: setFeatureListSort, featureListSortKey: featureListSortKey || initialSortKey, setFeatureListSortKey: setFeatureListSortKey, showFeatureTable: showFeatureTable, setShowFeatureTable: setShowFeatureTable, hasFeatureLabels: Boolean(featureLabelsMap), primaryColumnName: primaryColumnName })), children: _jsx(FeatureList, { hasColorEncoding: cellColorEncoding === 'geneSelection', showFeatureTable: showFeatureTable, geneList: geneList, featureListSort: featureListSort, featureListSortKey: featureListSortKey || initialSortKey, featureLabelsMap: featureLabelsMap, featureType: featureType, geneSelection: geneSelection, geneFilter: geneFilter, setGeneSelection: setGeneSelectionAndColorEncoding, setGeneFilter: setGeneFilter, setGeneHighlight: setGeneHighlight, enableMultiSelect: enableMultiSelect, hasFeatureLabels: Boolean(featureLabelsMap), primaryColumnName: primaryColumnName }) }));
|
|
65
65
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/feature-list",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.11",
|
|
4
4
|
"author": "Gehlenborg Lab",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"react-virtualized": "^9.22.2",
|
|
23
23
|
"uuid": "^9.0.0",
|
|
24
24
|
"react-aria": "^3.28.0",
|
|
25
|
-
"@vitessce/constants-internal": "3.4.
|
|
26
|
-
"@vitessce/utils": "3.4.
|
|
27
|
-
"@vitessce/vit-s": "3.4.
|
|
25
|
+
"@vitessce/constants-internal": "3.4.11",
|
|
26
|
+
"@vitessce/utils": "3.4.11",
|
|
27
|
+
"@vitessce/vit-s": "3.4.11"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@testing-library/jest-dom": "^5.16.4",
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
useFeatureLabelsData, useObsFeatureMatrixIndices,
|
|
7
7
|
useCoordination, useLoaders,
|
|
8
8
|
} from '@vitessce/vit-s';
|
|
9
|
-
import { ViewType, COMPONENT_COORDINATION_TYPES } from '@vitessce/constants-internal';
|
|
9
|
+
import { ViewType, COMPONENT_COORDINATION_TYPES, ViewHelpMapping } from '@vitessce/constants-internal';
|
|
10
10
|
import FeatureList from './FeatureList.js';
|
|
11
11
|
import FeatureListOptions from './FeatureListOptions.js';
|
|
12
12
|
|
|
@@ -45,6 +45,7 @@ export function FeatureListSubscriber(props) {
|
|
|
45
45
|
sortKey = null,
|
|
46
46
|
closeButtonVisible,
|
|
47
47
|
downloadButtonVisible,
|
|
48
|
+
helpText = ViewHelpMapping.FEATURE_LIST,
|
|
48
49
|
} = props;
|
|
49
50
|
|
|
50
51
|
const loaders = useLoaders();
|
|
@@ -115,6 +116,7 @@ export function FeatureListSubscriber(props) {
|
|
|
115
116
|
removeGridComponent={removeGridComponent}
|
|
116
117
|
isReady={isReady}
|
|
117
118
|
urls={urls}
|
|
119
|
+
helpText={helpText}
|
|
118
120
|
options={(
|
|
119
121
|
<FeatureListOptions
|
|
120
122
|
featureListSort={featureListSort}
|