color by gene expression

This commit is contained in:
Colin Megill
2017-09-08 03:55:54 -07:00
parent f3645e0e81
commit d12c4df9af
3 changed files with 68 additions and 22 deletions
+6 -3
View File
@@ -17,12 +17,15 @@ class Graph extends React.Component {
componentWillReceiveProps(nextProps) {
/* maybe should do a check here to confirm ref exists and pass it? */
if (
nextProps.data &&
nextProps.vertices &&
nextProps.expressions &&
nextProps.expressionsCountsMap &&
this.state.context
) {
drawGraph(
nextProps.data.data,
this.state.context
nextProps.vertices.data,
this.state.context,
nextProps.expressionsCountsMap
);
}
}