Spaces:
Running
Running
fix syntax
Browse files
app.py
CHANGED
@@ -140,8 +140,8 @@ for i in range(len(node_info.index)):
|
|
140 |
"id": node["gene_id"],
|
141 |
"label": node["gene_name"] if node["gene_name"] is not None else node["gene_id"]},
|
142 |
"position": {
|
143 |
-
"x" : layout[node["gene_index"]][0] *
|
144 |
-
"y" : layout[node["gene_index"]][1] *
|
145 |
|
146 |
for i in range(len(neighbors.index)):
|
147 |
edge = neighbors.iloc[i]
|
@@ -167,6 +167,7 @@ stylesheet = [
|
|
167 |
"width": 200,
|
168 |
"height": 75,
|
169 |
"shape": "rectangle",
|
|
|
170 |
"labelFontSize": 100,
|
171 |
'background-color': '#399AF9'
|
172 |
}},
|
|
|
140 |
"id": node["gene_id"],
|
141 |
"label": node["gene_name"] if node["gene_name"] is not None else node["gene_id"]},
|
142 |
"position": {
|
143 |
+
"x" : layout[node["gene_index"]][0] * 600 + 1500/2,
|
144 |
+
"y" : layout[node["gene_index"]][1] * 600 + 1500/2}})
|
145 |
|
146 |
for i in range(len(neighbors.index)):
|
147 |
edge = neighbors.iloc[i]
|
|
|
167 |
"width": 200,
|
168 |
"height": 75,
|
169 |
"shape": "rectangle",
|
170 |
+
"label" : "data(label)",
|
171 |
"labelFontSize": 100,
|
172 |
'background-color': '#399AF9'
|
173 |
}},
|