vasilisNt commited on
Commit
8c2f1e1
1 Parent(s): 5db5da8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -12,6 +12,7 @@ LLR_FILE='sample gene scores.zip'
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
@@ -50,7 +51,8 @@ def plot_interactive(uniprot_id):
50
 
51
  return fig
52
 
53
- uid = st.selectbox("uniprot_id:", uids)
 
54
  fig = plot_interactive(uid)
55
  fig.update_layout(width = 800, height = 600, autosize = False)
56
  st.plotly_chart(fig, use_container_width=True)
 
12
  with ZipFile(LLR_FILE) as myzip:
13
  uids=[i.split('/')[-1].split('_')[0] for i in myzip.namelist()][1:]
14
 
15
+ df=pd.read_csv('uniprot_isoforms.csv',index_col=0)
16
 
17
  def load_LLR(uniprot_id):
18
  '''Loads the LLRs for a given uniprot id. Returns a 20xL dataframe
 
51
 
52
  return fig
53
 
54
+ uid = st.selectbox("uniprot_id:", df)
55
+
56
  fig = plot_interactive(uid)
57
  fig.update_layout(width = 800, height = 600, autosize = False)
58
  st.plotly_chart(fig, use_container_width=True)