propagate diffexp state through component tree (#2135)

This commit is contained in:
Bruce Martin
2021-03-31 12:23:38 -07:00
committed by GitHub
parent ae30b66123
commit 2fa19c756c
4 changed files with 58 additions and 27 deletions
+8 -11
View File
@@ -31,23 +31,20 @@ class GeneExpression extends React.Component {
renderDiffexpGeneSets = () => {
const { differential } = this.props;
const { diffExp } = differential;
if (!diffExp) return null;
const setGenes = [];
if (differential.diffExp) {
differential.diffExp.forEach((diffexpGene) => {
setGenes.push(diffexpGene[0]);
});
}
return differential.diffExp ? (
// [ [gene, logfoldchange, pval, pval_adj], ...]
const setGenes = diffExp.map((diffExpGene) => diffExpGene[0]);
return (
<GeneSet
key="Temp DiffExp Set"
setGenes={setGenes}
isDiffexp
isDiffExp
diffExp={diffExp}
setName="Temp DiffExp Set"
/>
) : null;
);
};
handleActivateCreateGenesetMode = () => {