anndata.read_h5ad(filename, backed=None, chunk_size=6000)

Read .h5ad-formatted hdf5 file.


File name of data file.

backed : {None, 'r', 'r+'}

If 'r', load AnnData in backed mode instead of fully loading it into memory (memory mode). If you want to modify backed attributes of the AnnData object, you need to choose 'r+'.

chunk_size : intint

Used only when loading sparse dataset that is stored as dense. Loading iterates through chunks of the dataset of this row size until it reads the whole dataset. Higher size means higher memory consumption and higher loading speed.