scpdac.pl.plot_label_distribution#
- scpdac.pl.plot_label_distribution(adata, key='predicted_celltype', *, ax=None)#
Plot a horizontal bar chart of the value counts of an
obscolumn.Handy for inspecting the output of
scpdac.tl.predict_labels().- Parameters:
- Returns:
The Matplotlib axis containing the plot.
- Raises:
KeyError – If
keyis not present inadata.obs.