-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_html.py
More file actions
35 lines (30 loc) · 808 Bytes
/
dot_html.py
File metadata and controls
35 lines (30 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
from dash.exceptions import PreventUpdate
import webbrowser
import pandas as pd
import plotly.graph_objs as go
import plotly.express as px
app = dash.Dash(__name__)
df = pd.read_csv('./applications/shinyEff-Sele/data/shinyEff-Sele_with_eff_sele_map.csv', encoding='utf-8')
print(df)
groupL1 = df.groupby('essential')
print(groupL1)
scatter = px.scatter(
#groupL1.get_group("1x0"),
df,
x='efficacy',
y='selectivity',
color='clusterL1'
)
fig = go.Figure(scatter)
app.layout = html.Div([
dcc.Graph(
figure=fig,
),
]
)
if __name__ == '__main__':
app.run_server(debug=True)