mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-29 17:28:12 +08:00
Geneset remove toggle (#2184)
* no toggle, histo at top * set mean expression, truncation * gene set
This commit is contained in:
@@ -11,6 +11,7 @@ const HistogramFooter = React.memo(
|
||||
logFoldChange,
|
||||
pvalAdj,
|
||||
isObs,
|
||||
isGeneSetSummary,
|
||||
}) => {
|
||||
/*
|
||||
Footer of each histogram. Will render range, title, and optionally
|
||||
@@ -44,7 +45,8 @@ const HistogramFooter = React.memo(
|
||||
data-testclass="brushable-histogram-field-name"
|
||||
style={{ fontStyle: "italic" }}
|
||||
>
|
||||
{isObs ? displayName : null}
|
||||
{isObs && displayName}
|
||||
{isGeneSetSummary && "gene set mean expression"}
|
||||
</span>
|
||||
<div style={{ display: hideRanges ? "block" : "none" }}>
|
||||
: {rangeMin}
|
||||
|
||||
@@ -364,6 +364,7 @@ class HistogramBrush extends React.PureComponent {
|
||||
isUserDefined,
|
||||
isDiffExp,
|
||||
logFoldChange,
|
||||
isGeneSetSummary,
|
||||
pvalAdj,
|
||||
isScatterplotXXaccessor,
|
||||
isScatterplotYYaccessor,
|
||||
@@ -449,8 +450,9 @@ class HistogramBrush extends React.PureComponent {
|
||||
selectionRange={continuousSelectionRange}
|
||||
mini={mini}
|
||||
/>
|
||||
{!mini ? (
|
||||
{!mini && (
|
||||
<HistogramFooter
|
||||
isGeneSetSummary={isGeneSetSummary}
|
||||
isObs={isObs}
|
||||
isDiffExp={isDiffExp}
|
||||
displayName={field}
|
||||
@@ -462,7 +464,7 @@ class HistogramBrush extends React.PureComponent {
|
||||
logFoldChange={logFoldChange}
|
||||
pvalAdj={pvalAdj}
|
||||
/>
|
||||
) : null}
|
||||
)}
|
||||
</div>
|
||||
) : null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user