anndata.experimental.WriteCallback#
- class anndata.experimental.WriteCallback(*args, **kwargs)[source]#
Bases:
ProtocolMethods
- __call__(write_func, store, elem_name, elem, *, iospec, dataset_kwargs)[source]#
Callback used in
anndata.experimental.write_dispatched()to customize writing an element to a store.- Parameters:
- write_func
Write[anndata.typing.RWAble] anndata.io.write_elem()function to call to read the current element given theiospec.- store
anndata.experimental.StorageType The store to which
elemshould be written.- elem_name
str The key to read in from the group.
- elem
anndata.typing.RWAble The element to write out.
- iospec
IOSpec Internal AnnData encoding specification for the element.
- dataset_kwargs
Mapping[str,Any] Keyword arguments to be passed to a library-level io function, like
chunksforzarr.
- write_func
- Return type: