diff --git a/client/src/components/app.js b/client/src/components/app.js index 462211c4..275eb997 100644 --- a/client/src/components/app.js +++ b/client/src/components/app.js @@ -18,7 +18,8 @@ import SectionHeader from "./framework/sectionHeader"; @connect(state => { return { - cells: state.cells + cells: state.cells, + initialize: state.initialize }; }) class App extends React.Component { @@ -60,27 +61,27 @@ class App extends React.Component { } render() { - // console.log('app:', this.props, this.state) - return ( - {this.props.cells.loading ? ( + {this.props.cells.loading || this.props.initialize.loading ? (
- {/**/} - - loading cells - + loading cellxgene
) : null} {this.props.cells.error ? "Error loading cells" : null}
- + {this.props.cells.loading || this.props.initialize.loading ? null : ( + + )}
- + {this.props.cells.loading || + this.props.initialize.loading ? null : ( + + )} + {/**/}
diff --git a/client/src/components/expression/cellSetButtons.js b/client/src/components/expression/cellSetButtons.js index 5291ba7e..56123210 100644 --- a/client/src/components/expression/cellSetButtons.js +++ b/client/src/components/expression/cellSetButtons.js @@ -33,17 +33,18 @@ class CellSetButton extends React.Component { }} onClick={this.set.bind(this)} > - + {" "} - {this.props.eitherCellSetOneOrTwo}{" "} + {this.props.eitherCellSetOneOrTwo} + {": "} {this.props.differential[ diff --git a/client/src/components/expression/diffExpHeatmap.js b/client/src/components/expression/diffExpHeatmap.js index de28a174..5e7dd448 100644 --- a/client/src/components/expression/diffExpHeatmap.js +++ b/client/src/components/expression/diffExpHeatmap.js @@ -244,30 +244,6 @@ class Heatmap extends React.Component { return (
- Color by any gene: - - item.toLowerCase().indexOf(value.toLowerCase()) > -1 - } - getItemValue={item => item} - renderItem={(item, highlighted) => ( -
- {item} -
- )} - value={this.state.value} - onChange={e => this.setState({ value: e.target.value })} - onSelect={value => { - this.setState({ value }); - this.props.dispatch( - actions.requestSingleGeneExpressionCountsForColoringPOST(value) - ); - }} - />
-
-
- There are currently - {" " + - (this.props.crossfilter - ? this.props.crossfilter.cells.countFiltered() - : 0) + - " "} - cells selected, click a cell set button to store them. -
- - -
-
- {this.props.differential.celllist1 && - this.props.differential.celllist2 ? ( - - ) : ( - - )} -
+
+ + +
); } } export default Expression; + +//
+// There are currently +// {" " + +// (this.props.crossfilter +// ? this.props.crossfilter.cells.countFiltered() +// : 0) + +// " "} +// cells selected, click a cell set button to store them. +//
diff --git a/client/src/components/graph/graph.js b/client/src/components/graph/graph.js index 41e3c5e2..4d6778ba 100644 --- a/client/src/components/graph/graph.js +++ b/client/src/components/graph/graph.js @@ -36,6 +36,8 @@ class Graph extends React.Component { this.count = 0; this.inverse = mat4.identity([]); this.graphPaddingTop = 100; + this.graphPaddingBottom = 45; + this.graphPaddingRight = 10; this.renderCache = { positions: null, colors: null @@ -209,9 +211,12 @@ class Graph extends React.Component { } if ( - /* invisibly handles the initial null vs integer case as well as resize events */ prevProps.responsive.height !== this.props.responsive.height || - prevProps.responsive.width !== this.props.responsive.width + prevProps.responsive.width !== this.props.responsive.width || + /* first time */ + (this.props.responsive.height && + this.props.responsive.width && + !this.state.svg) ) { /* clear out whatever was on the div, even if nothing, but usually the brushes etc */ d3.select("#graphAttachPoint") @@ -315,9 +320,10 @@ class Graph extends React.Component { }} style={{ fontSize: 14, - fontWeight: 700, + fontWeight: 400, color: "white", - padding: "10px 20px", + padding: "0px 10px", + height: 30, marginRight: 10, borderRadius: 2, backgroundColor: globals.brightBlue, @@ -333,9 +339,10 @@ class Graph extends React.Component { }} style={{ fontSize: 14, - fontWeight: 700, + fontWeight: 400, color: "white", - padding: "10px 20px", + padding: "0px 10px", + height: 30, marginRight: 10, borderRadius: 2, backgroundColor: globals.brightBlue, @@ -346,7 +353,7 @@ class Graph extends React.Component { regraph selection
- +