anndata.experimental.ReadCallback#
- class anndata.experimental.ReadCallback(*args, **kwargs)[source]#
Bases:
ProtocolMethods
- __call__(read_func, elem_name, elem, *, iospec)[source]#
Callback used in
anndata.experimental.read_dispatched()to customize reading an element from a store.- Parameters:
- read_func
Read[anndata.experimental.StorageType,anndata.typing.RWAble] anndata.io.read_elem()function to call to read the current element given theiospec.- elem_name
str The key to read in from the group.
- elem
anndata.experimental.StorageType The element to read from.
- iospec
IOSpec Internal AnnData encoding specification for the element.
- read_func
- Return type:
- Returns:
The element read from the store.