anndata.experimental.write_elem
- anndata.experimental.write_elem(store, k, elem, *, dataset_kwargs=mappingproxy({}))
Write an element to a storage group using anndata encoding.
- Parameters:
- store :
Group
|Group
Union
[Group
,Group
] The group to write to.
- k :
str
The key to write to in the group. Note that absolute paths will be written from the root.
- elem :
Any
The element to write. Typically an in-memory object, e.g. an AnnData, pandas dataframe, scipy sparse matrix, etc.
- dataset_kwargs :
Mapping
(default:mappingproxy({})
) Keyword arguments to pass to the stores dataset creation function. E.g. for zarr this would be chunks, compressor.
- store :
- Return type: