Spaces:
Running
Running
scale edges
Browse files
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
|
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
|