bioalpha.h5ad_map.H5ADMap.to_memory
- H5ADMap.to_memory()
Return a new AnnData object with all backed arrays loaded into memory.
Params
- copy:
Whether the arrays that are already in-memory should be copied.
Example
import anndata backed = anndata.read_h5ad("file.h5ad", backed="r") mem = backed[backed.obs["cluster"] == "a", :].to_memory()