maom commited on
Commit
1ac5d48
·
verified ·
1 Parent(s): 31d8f4e

trouble with multiple edges

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -154,7 +154,12 @@ for i in range(len(neighbors.index)):
154
  "data" : {
155
  "source" : edge["gene_id_1"],
156
  "target" : edge["gene_id_2"],
157
- "width" : 5 + 20 / (1 + np.exp(-10 * (edge["coexp_score"] - 0.9)))}})
 
 
 
 
 
158
 
159
  with col3:
160
  st.text('') # help alignment with input box
 
154
  "data" : {
155
  "source" : edge["gene_id_1"],
156
  "target" : edge["gene_id_2"],
157
+ "width" :
158
+ 20 if edge["coexp_score"] > 0.98 else
159
+ 15 if edge["coexp_score"] > 0.93 else
160
+ 10 if edge["coexp_score"] > 0.90 else
161
+ 8 if edge["coexp_score"] > 0.88 else
162
+ 5}})
163
 
164
  with col3:
165
  st.text('') # help alignment with input box