anndata.experimental.WriteCallback

anndata.experimental.WriteCallback#

protocol anndata.experimental.WriteCallback[source]#

typing.Protocol

实现此协议的类必须具有以下方法/属性:

__call__(write_func, store, elem_name, elem, *, iospec, dataset_kwargs)[source]#

anndata.experimental.write_dispatched() 中使用的回调,以自定义将元素写入存储。

Parameters:
write_func [RWAble]

anndata.io.write_elem() 函数用于根据 iospec 读取当前元素。

store Array | Dataset | Group | Group

应该写入的商店 elem

NoneNone
elem_name str

从组中读取的关键。

elem RWAble

要输出的元素。

iospec IOSpec

元素的内部AnnData编码规范。

dataset_kwargs Mapping[str, Any]

将作为关键字参数传递给库级 io 函数,例如 chunks 用于 Zarr-Python

Return type:

None