joyplots working

This commit is contained in:
Colin Megill
2017-09-06 22:19:55 -07:00
parent 129ffa1ec6
commit 0e36aaf830
20 changed files with 680 additions and 146 deletions
+38
View File
@@ -0,0 +1,38 @@
import React from 'react';
import _ from "lodash";
import styles from "./joy.css";
import drawJoy from "./drawJoy";
import joyParser from "./joyParser";
class Joy extends React.Component {
constructor(props) {
super(props);
this.state = {
};
}
componentWillReceiveProps(nextProps) {
if (nextProps.data) {
console.log('joyplot data 44', nextProps.data)
drawJoy(joyParser(nextProps.data));
}
}
componentDidMount() {
}
render() {
return (
<div id="joyplot_wrapper" style={{marginTop: 50}}>
<h3> Joy </h3>
<p> Cell expression distribution per gene & if differential expression, Ie., cells for cluster 5, top genes expressed by cluster 8</p>
<div id="joyplot"> </div>
</div>
)
}
};
export default Joy;