scdrs.util.load_h5ad#

scdrs.util.load_h5ad(h5ad_file: str, flag_filter_data: bool = False, flag_raw_count: bool = True, min_genes: int = 250, min_cells: int = 50) AnnData[source]#

Load h5ad file and optionally filter out cells and perform normalization.

Parameters:
h5ad_filestr

Path to h5ad file

flag_filter_databool

If True, filter out cells with

  • sc.pp.filter_cells(adata, min_genes=250)

  • sc.pp.filter_genes(adata, min_cells=50)

flag_raw_countbool

If True, perform size-factor normalization and log1p transformation.

Returns:
adataanndata.AnnData

Single-cell data.