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 (