Geneset remove toggle (#2184)

* no toggle, histo at top

* set mean expression, truncation

* gene set
This commit is contained in:
Colin Megill
2021-05-05 19:51:05 -04:00
committed by GitHub
parent 25b308c532
commit 096d8ff1d2
4 changed files with 20 additions and 66 deletions
@@ -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
}