anndata_rs.AnnData.copy
- AnnData.copy(filename, backend='hdf5', chunk_size=None)
Copy the AnnData object.
- Parameters:
filename – File name of the output
.h5adfile.backend (Literal['hdf5', 'zarr']) – The backend to use. “hdf5” or “zarr” are supported.
chunk_size (int | None) – If None, writes the entire data matrix at once. Otherwise, rites the data matrix in chunks of the specified size. This can be useful for saving large datasets that do not fit into memory.
- Return type: