anndata.experimental.read_dispatched

anndata.experimental.read_dispatched#

anndata.experimental.read_dispatched(elem, callback)[source]#

Read elem, calling the callback at each sub-element.

Parameters:
elem Union[Array, Dataset, Group, Group]

Storage container (e.g. h5py.Group, zarr.Group). This must have anndata element specifications.

callback ReadCallback

Function to call at each anndata encoded element.

Return type:

Union[DataFrame, number, str, ndarray, MaskedArray, csr_matrix, csc_matrix, Array, Dataset, Array, ZappyArray, CSRDataset, CSCDataset, DaskArray, CupyArray, CupySparseMatrix, dict[str, RWAble], list[RWAble], AnnData, Categorical, ExtensionArray]