vasilisNt commited on
Commit
268ab01
1 Parent(s): ae9cb77

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -76,6 +76,7 @@ def plot_interactive(uniprot_id, show_clinvar=False):
76
  customdata=pcust,
77
  mode='markers',
78
  marker=dict(size=8),
 
79
  hovertemplate="<br>".join([
80
  "<b>%{x} %{y}</b>"+
81
  " (%{customdata:.2f})",
@@ -86,6 +87,7 @@ def plot_interactive(uniprot_id, show_clinvar=False):
86
  y=hwt_y,
87
  customdata=cust,
88
  mode='markers',
 
89
  marker=dict(size=8),
90
  hovertemplate="<br>".join([
91
  "<b>%{x} %{y}</b>"+
@@ -99,7 +101,7 @@ def plot_interactive(uniprot_id, show_clinvar=False):
99
  selection = st.selectbox("uniprot_id:", df)
100
  uid=df[df.txt==selection].index.values[0]
101
 
102
- show_clinvar = st.checkbox('show clinvar annotations')
103
 
104
  fig = plot_interactive(uid,show_clinvar=show_clinvar)
105
  fig.update_layout(width = 800, height = 600, autosize = False)
 
76
  customdata=pcust,
77
  mode='markers',
78
  marker=dict(size=8),
79
+ showlegend=False,
80
  hovertemplate="<br>".join([
81
  "<b>%{x} %{y}</b>"+
82
  " (%{customdata:.2f})",
 
87
  y=hwt_y,
88
  customdata=cust,
89
  mode='markers',
90
+ showlegend=False,
91
  marker=dict(size=8),
92
  hovertemplate="<br>".join([
93
  "<b>%{x} %{y}</b>"+
 
101
  selection = st.selectbox("uniprot_id:", df)
102
  uid=df[df.txt==selection].index.values[0]
103
 
104
+ show_clinvar = st.checkbox('show ClinVar annotations (red: pathogenic, green: benign)')
105
 
106
  fig = plot_interactive(uid,show_clinvar=show_clinvar)
107
  fig.update_layout(width = 800, height = 600, autosize = False)