mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-26 18:48:11 +08:00
* first cut at re-embedding route and back-end support * update and expand config route tests * add scanpy_umap * add reembedding to config route parameters * front-end support for reembedding fetch and UI * remove unused imports * add loading state * save reembedding in reducer state * improve withColsFrom * transmit reembed schema to client; pick unique embedding names * display embeddings * format * lint * spaces, tab size 2 * lint * test hack for smoke-test race * back out hack sleep * add check for backed mode * add unit test for reembedding * lint * hide re-embedding CLI param from help
44 lines
1.1 KiB
JavaScript
44 lines
1.1 KiB
JavaScript
import React from "react";
|
|
import { AnchorButton, ButtonGroup, Tooltip } from "@blueprintjs/core";
|
|
import * as globals from "../../globals";
|
|
|
|
function Subset(props) {
|
|
const {
|
|
subsetPossible,
|
|
subsetResetPossible,
|
|
handleSubset,
|
|
handleSubsetReset
|
|
} = props;
|
|
|
|
return (
|
|
<ButtonGroup style={{ marginRight: "10px" }}>
|
|
<Tooltip
|
|
content="Subset to currently selected cells and associated metadata"
|
|
position="bottom"
|
|
hoverOpenDelay={globals.tooltipHoverOpenDelay}
|
|
>
|
|
<AnchorButton
|
|
data-testid="subset-button"
|
|
disabled={!subsetPossible}
|
|
icon="pie-chart"
|
|
onClick={handleSubset}
|
|
/>
|
|
</Tooltip>
|
|
<Tooltip
|
|
content="Undo subset and show all cells and associated metadata"
|
|
position="bottom"
|
|
hoverOpenDelay={globals.tooltipHoverOpenDelay}
|
|
>
|
|
<AnchorButton
|
|
data-testid="reset-subset-button"
|
|
disabled={!subsetResetPossible}
|
|
icon="full-circle"
|
|
onClick={handleSubsetReset}
|
|
/>
|
|
</Tooltip>
|
|
</ButtonGroup>
|
|
);
|
|
}
|
|
|
|
export default Subset;
|