popv.visualization.celltype_ratio_bar_plot

popv.visualization.celltype_ratio_bar_plot#

popv.visualization.celltype_ratio_bar_plot(adata, popv_prediction='popv_prediction', save_folder=None, normalize=True)[source]#

Create bar-plot of celltype rations in query as well as reference cells after running popv.

Parameters:
  • adata – AnnData object.

  • popv_prediction (str | None (default: 'popv_prediction')) – Key in adata.obs for predictions.

  • save_folder (str | None (default: None)) – Path to a folder for storing the plot. Defaults to None and plot is not stored.

  • normalize (bool (default: True)) – Plot relative cell-type abundance. Set to False to plot absolute abundance.

Returns:

Returns axis object of corresponding plot.