campa.pl.plot_mean_size

plot_mean_size(adata, groupby_row='cluster', groupby_col='well_name', normby_row=None, normby_col=None, ax=None, figsize=None, adjust_height=False, save=None, **kwargs)[source]

Plot mean cluster sizes per cell, grouped by different columns in obs.

Parameters
  • adata (AnnData) – Adata containing aggregated information by clusters. E.g. result of FeatureExtractor.get_intensity_adata().

  • groupby_row (str) – Column in adata.obs containing the row-wise grouping.

  • groupby_col (str) – Column in adata.obs containing the column-wise grouping.

  • normby_row (Optional[str]) – Value in groupby_row to normalise rows by.

  • normby_col (Optional[str]) – Value in groupby_col to normalise columns by.

  • ax (Optional[Axes]) – Axis to plot in.

  • figsize (Optional[Tuple[int, int]]) – Size of figure.

  • adjust_height (bool) – Option to make plots a bit more streamlined.

  • save (Optional[str]) – Path to save figure to.

  • kwargs (Any) – Keyword arguments for sc.pl.matrixplot().

Return type

None