detected_genes

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

Plot number of detected genes.

Generates a histogram of the number of detected genes per cell.

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

  • ax (axes | default = None) – pass the axes class to which your figure should be added

  • 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:

displays the figure

Return type:

None

Example

Plot number of detected genes from an example dataset. >>> import besca as bc >>> import matplotlib.pyplot as plt >>> adata = bc.datasets.simulated_pbmc3k_raw() >>> fig, ax = plt.subplots(1) >>> bc.pl.detected_genes(adata,ax=ax)