Spaces:
Runtime error
Runtime error
Commit ·
7694a74
1
Parent(s): b865c23
fix loop scatter return
Browse files
app.py
CHANGED
|
@@ -395,7 +395,7 @@ with gr.Blocks(theme='WeixuanYuan/Soft_dark') as demo:
|
|
| 395 |
bins_idx_y = int(y / h * len(bins))
|
| 396 |
new_a1 = f"{bins.iloc[bins_idx_x]['chrom']}:{bins.iloc[bins_idx_x]['start']}"
|
| 397 |
new_a2 = f"{bins.iloc[bins_idx_y]['chrom']}:{bins.iloc[bins_idx_y]['start']}"
|
| 398 |
-
return new_a1, new_a2
|
| 399 |
for out_heatmap in out_heatmaps:
|
| 400 |
out_heatmap.select(set_loop, [out_heatmap, in_locus, anchor1, anchor2, heatmap_size], outputs=[anchor1, anchor2, heatmap_x, heatmap_y])
|
| 401 |
|
|
|
|
| 395 |
bins_idx_y = int(y / h * len(bins))
|
| 396 |
new_a1 = f"{bins.iloc[bins_idx_x]['chrom']}:{bins.iloc[bins_idx_x]['start']}"
|
| 397 |
new_a2 = f"{bins.iloc[bins_idx_y]['chrom']}:{bins.iloc[bins_idx_y]['start']}"
|
| 398 |
+
return new_a1, new_a2, x, y
|
| 399 |
for out_heatmap in out_heatmaps:
|
| 400 |
out_heatmap.select(set_loop, [out_heatmap, in_locus, anchor1, anchor2, heatmap_size], outputs=[anchor1, anchor2, heatmap_x, heatmap_y])
|
| 401 |
|