library_size¶
- besca.pl.library_size(adata, ax=None, bins=100, figsize=None)[source]¶
- Plot library size. - Generates a histogram of the library size 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 a figure 
- Return type:
- None 
 - Example - Plot distribution of librarysize 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.library_size(adata,ax=ax)