rename to expression buttons since heatmap is broken out

This commit is contained in:
Colin Megill
2018-03-02 10:59:12 -08:00
parent 35d48052fe
commit f6af56e7d2
2 changed files with 3 additions and 3 deletions
@@ -0,0 +1,74 @@
import React from "react";
import _ from "lodash";
import { connect } from "react-redux";
import * as globals from "../../globals";
import actions from "../../actions";
import CellSetButton from "./cellSetButtons";
@connect((state) => {
return {
currentCellSelection: state.controls.currentCellSelection,
differential: state.differential
}
})
class Expression extends React.Component {
constructor(props) {
super(props);
this.state = {
};
}
handleClick(gene) {
return () => {
this.props.dispatch({
type: "color by expression",
gene: gene,
});
}
}
computeDiffExp() {
this.props.dispatch(
actions.requestDifferentialExpression(
this.props.differential.celllist1,
this.props.differential.celllist2
)
)
}
render () {
if (
!this.props.differential
) {
return null
}
return (
<div>
<div style={{margin: 10}}>
<CellSetButton
{...this.props}
eitherCellSetOneOrTwo={1}/>
<CellSetButton
{...this.props}
eitherCellSetOneOrTwo={2}/>
</div>
<div>
<button
style={{
fontSize: 18,
margin: 10,
fontWeight: 700,
color: "#FFF",
padding: "12px 20px",
backgroundColor: globals.darkGreen,
border: "none",
cursor: "pointer",
}}
onClick={this.computeDiffExp.bind(this)}>
Compute differential expression
</button>
</div>
</div>
)
}
};
export default Expression;