librarysize_overview

besca.pl.librarysize_overview(adata, bins=100, figsize=None)[source]

Generates overview figure of libarysize, dropouts and detected genes.

Generates one overview figure showing histograms of the librarysize, number of detected genes and number of dropouts per cell. Can be used instead of plotting librarysize(), dropouts() abd detected_genes() seperately.

Parameters:
  • adata (AnnData) – AnnData object containing data that is to be visualized. Genes need to be in coloumns and cells in rows

  • bins (int | default = 100) – the number of bins that should be shown on the histrogram

  • figsize ((width, height) or None | default = None) – optional parameter to define the figure size of the plot that is to be generated

Returns:

returns a figure (is also displayed)

Return type:

Figure

Example

Generate overview of the characterisitcs of an example dataset. >>> import besca as bc >>> import matplotlib.pyplot as plt >>> adata = bc.datasets.simulated_pbmc3k_raw() >>> overview = bc.pl.librarysize_overview(adata)