import React from "react"; import { Link } from "react-router-dom"; import _ from "lodash"; import Helmet from "react-helmet"; import Container from "./container"; import buttonStyles from "./buttons.css"; import Categorical from "./categorical/categorical"; import Continuous from "./continuous/continuous"; import Joy from "./joy/joy"; import Graph from "./graph/graph"; class Home extends React.Component { constructor(props) { super(props); this.state = { showClustersPlaceholderImage: false, heatmap: null, graph: null, }; } componentWillMount() { // d3.csv("http://ec2-34-234-75-156.compute-1.amazonaws.com/api/v0.1/metadata", (d) => { // console.log("from ec2",d) // }) const prefix = "http://ec2-34-234-75-156.compute-1.amazonaws.com/api/"; const version = "v0.1/"; const expressions = fetch(`${prefix}${version}expression`, { method: "post", headers: new Headers({ 'Content-Type': 'application/json' }), body: JSON.stringify({ "celllist": ["1001000173.G8", "1001000173.D4"], "genelist": ["1/2-SBSRNA4", "A1BG", "A1BG-AS1", "A1CF", "A2LD1", "A2M", "A2ML1", "A2MP1", "A4GALT"] }) }) // const expressions = fetch(`${prefix}${version}${expression}`) .then((res) => res.json()) .then((data) => { this.setState({heatmap: data}) }) const graph = fetch(`${prefix}${version}graph`) .then((res) => res.json()) .then((data) => { this.setState({graph: data}) }) } render() { return (

cellxgene

Gene selection criteria

T-SNE plot

{this.state.showClustersPlaceholderImage ? : null}
) } }; export default Home; // // // //