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

scale edges

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -154,8 +154,7 @@ for i in range(len(neighbors.index)):
154
  "data" : {
155
  "source" : edge["gene_id_1"],
156
  "target" : edge["gene_id_2"],
157
- "width" : 20 if edge["coexp_score"] > 0.9 else 5}})
158
-
159
 
160
  with col3:
161
  st.text('') # help alignment with input box
 
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