Convert another AnnData object to an ZarrAnnData object
Arguments
- adata
An
AnnDataobject to be converted toZarrAnnData- file
The file name (character) of the
.zarrfile- compression
The compression algorithm to use when writing the Zarr file. Can be one of
"none","gzip","blosc","zstd","lzma","bz2","zlib"or"lz4". Defaults to"none".- mode
The mode to open the Zarr file:
acreates a new file or opens an existing one for read/writeropens an existing file for readingr+opens an existing file for read/writewcreates a file, truncating any existing onesw-/xare synonyms, creating a file and failing if it already exists
- zarr_format
The format to use when creating the Zarr store. Should be either 2 or 3 for Zarr v2 or v3 formats, respectively. The default can also be set using the
anndataR.zarr_formatoption, e.g.options(anndataR.zarr_format = 2). If neither is set, Zarr v3 is used.When an existing store is opened, that store's format is used instead and setting
zarr_formatto a different format is an error. Usemode = "w"to rewrite an existing store in another format.
Value
A ZarrAnnData object with the same data as the input AnnData
object.
See also
Other object converters:
as_AnnData(),
as_HDF5AnnData(),
as_InMemoryAnnData(),
as_ReticulateAnnData(),
as_Seurat(),
as_SingleCellExperiment(),
reticulate-helpers