anndata.io.read_elem

Contents

anndata.io.read_elem#

anndata.io.read_elem(elem)[source]#

Read an element from a store.

Assumes that the element is encoded using the anndata encoding. This function will determine the encoded type using the encoding metadata stored in elem’s attributes.

Parameters:
elem Array | Dataset | Group | Group

The stored element.

Return type:

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