tomas.vis.UMI_hist

tomas.vis.UMI_hist(adata, groupby=None, groups='all', return_fig=None, **fig_para)

Visualize the log-UMI-amount distribution.

Parameters:
  • adata (AnnData) – The (annotated) UMI count matrix of shape n_obs × n_vars. Rows correspond to droplets and columns to genes.

  • groupby (str) – The key of the droplet categories stored in adata.obs.

  • groups (list of strings, optional) – Droplet categories to visualize logUMI distributions. It should be eithor ‘all’ or a list of cell type annotations specified in adata.obs[groupby]. The default is ‘all’.

  • return_fig (bool, optional) – Return the matplotlib figure. The default is None.

  • **fig_para (optional) – Parameters to configure the plot.

Raises:

ValueError – If ‘groups’ specifies categories not matching with adata.obs[groupby].

Returns:

fig

Return type:

matplotlib figure