bento.pl.lp_diff_discrete

bento.pl.lp_diff_discrete(sdata, phenotype, fname=None)

Visualize gene pattern frequencies between groups of cells. Plots the log2 fold change and -log10 p-value of each gene, similar to volcano plot. Run after bento.tl.lp_diff_discrete()

Parameters:
  • sdata (SpatialData) – Spatial formatted SpatialData

  • phenotype (str) – Variable used to group cells when calling bento.tl.lp_diff().

  • fname (str, optional) – Save the figure to specified filename, by default None