anndata.io.update#
- anndata.io.update(f, adata, use, *, dataset_kwargs=mappingproxy({}), compat=WriteCompat.V0_13, validate_store_attributes=mappingproxy({}), validate_toplevel=True)[source]#
Write only the parts of
adatareferenced byuseinto the existing anndata groupf.- Parameters:
- f
Group|Group An on-disk storage.
- adata
AnnData The
AnnDataobject.- use
AdRef|RefAcc|MapAcc|AdAcc|Sequence[AdRef|RefAcc|MapAcc|AdAcc] Accessors for the parts that should be written to disk.
- dataset_kwargs
Mapping[str,Any] Keyword arguments to pass to the stores dataset creation function. E.g. for zarr this would be
chunks,compressor.- compat
WriteCompat|WriteCompatStr|WriteFeatures Which anndata version’s write behavior to target, see
WriteCompat.- validate_store_attributes
Mapping[type,Mapping[str,str]] Attributes that a valid on-disk store must have. These will be verified prior to writing and writing will abort if the on-disk attributes do not match the ones passed here. This is mostly useful for libraries implementing custom on-disk formats on top of anndata, end users should use the default.
For each type, a dictionary of attributes is specified, e.g.
{AnnData: {"encoding-type": "anndata"}}.- validate_toplevel
bool Whether to validate the attributes of the top-level store. If the calling function has already performed validation, this can be set to
False.
- f
- Return type: