dylanplummer commited on
Commit
a466150
·
1 Parent(s): 339f7e8

tes reindexing

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -236,9 +236,11 @@ def get_heatmap(celltype, gene, locus1, locus2, heatmap_range):
236
  plt.axis('image')
237
 
238
  w, h = fig.canvas.get_width_height()
239
- heatmap_x = (a1_idx / len(bins)) * w
240
- heatmap_y = (a2_idx / len(bins)) * h
241
- print(heatmap_x, heatmap_y)
 
 
242
  ax.scatter(int(heatmap_x), int(heatmap_y), color='green', marker='*', s=100)
243
 
244
  # redraw the canvas
 
236
  plt.axis('image')
237
 
238
  w, h = fig.canvas.get_width_height()
239
+ #heatmap_x = (a1_idx / len(bins)) * w
240
+ #heatmap_y = (a2_idx / len(bins)) * h
241
+ #print(heatmap_x, heatmap_y)
242
+ heatmap_x = a1_idx
243
+ heatmap_y = a2_idx
244
  ax.scatter(int(heatmap_x), int(heatmap_y), color='green', marker='*', s=100)
245
 
246
  # redraw the canvas