campa.pl.plot_object_stats
- plot_object_stats(adata, group_key, features=None, clusters=None, figsize_mult=(2, 2), **kwargs)[source]
Barplot of object statistics.
- Parameters
adata – Adata containing object statistics in
adata.obsm['object_stats_agg']. E.g. result ofFeatureExtractor.get_object_stats().group_key – Categorical value in
adata.obsto group by.features – List of features to display. Must be columns of
adata.obsm['object_stats_agg']. If None, all features are displayed.clusters – List of clusters to display. Must be columns of
adata.obsm['object_stats_agg']. If None, all clusters are displayed.kwargs – Keyword arguments passed to
sns.boxplot().