mean_expr

besca.pp.mean_expr(adata)[source]

Calculate the mean expression of a gene.

Calculates for each gene its mean expression in the adata object.

Parameters:

adata (AnnData) – The annotated data matrix.

Returns:

updates the:class:~anndata.AnnData object adding mean to adata.var.

Return type:

None

Example

>>> import besca as bc
>>> adata = bc.datasets.simulated_pbmc3k_raw()
>>> bc.pp.mean_expr(adata)