Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -9,6 +9,10 @@ import plotly.graph_objs as go
|
|
9 |
|
10 |
LLR_FILE='sample gene scores.zip'
|
11 |
|
|
|
|
|
|
|
|
|
12 |
def load_LLR(uniprot_id):
|
13 |
'''Loads the LLRs for a given uniprot id. Returns a 20xL dataframe
|
14 |
rows are indexed by AA change,
|
@@ -45,5 +49,6 @@ def plot_interactive(uniprot_id):
|
|
45 |
)
|
46 |
return fig
|
47 |
|
|
|
48 |
|
49 |
st.plotly_chart(plot_interactive('A0AV02-2'), use_container_width=True)
|
|
|
9 |
|
10 |
LLR_FILE='sample gene scores.zip'
|
11 |
|
12 |
+
with ZipFile(LLR_FILE) as myzip:
|
13 |
+
uids=[i.split('/')[-1].split('_')[0] for i in myzip.namelist()][1:]
|
14 |
+
|
15 |
+
|
16 |
def load_LLR(uniprot_id):
|
17 |
'''Loads the LLRs for a given uniprot id. Returns a 20xL dataframe
|
18 |
rows are indexed by AA change,
|
|
|
49 |
)
|
50 |
return fig
|
51 |
|
52 |
+
uid = st.selectbox("uniprot_id:", uids)
|
53 |
|
54 |
st.plotly_chart(plot_interactive('A0AV02-2'), use_container_width=True)
|