dylanplummer commited on
Commit
2e1e60c
·
1 Parent(s): 55d7f2c

fix after violin

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -423,8 +423,8 @@ def perturb(gene, locus1, locus2, use_max_gene, tf_knockout):
423
  violin_img = violin_img[:, :, [1, 2, 3, 0]]
424
 
425
  fig, ax = plt.subplots(figsize=(6, 4))
426
- sc.pl.violin(rna, 'new_count', groupby='celltype', show=False, ax=ax, rotation=90)
427
- ax.set_title(f'{max_gene if use_max_gene else gene} expression after perturbation')
428
  fig.tight_layout()
429
  fig.canvas.draw()
430
  violin_img_new = np.frombuffer(fig.canvas.tostring_argb(), dtype=np.uint8)
 
423
  violin_img = violin_img[:, :, [1, 2, 3, 0]]
424
 
425
  fig, ax = plt.subplots(figsize=(6, 4))
426
+ sc.pl.violin(rna, 'new_mean', groupby='celltype', show=False, ax=ax, rotation=90)
427
+ ax.set_title(f'{max_gene if use_max_gene else gene} normalized expression after perturbation')
428
  fig.tight_layout()
429
  fig.canvas.draw()
430
  violin_img_new = np.frombuffer(fig.canvas.tostring_argb(), dtype=np.uint8)