API#
The central class:
|
An annotated data matrix. |
Combining#
Combining AnnData
objects.
See also the section on concatenation.
|
Concatenates AnnData objects along an axis. |
Reading#
Reading anndata’s native formats .h5ad
and zarr
.
|
Read |
|
Read from a hierarchical Zarr array store. |
Reading individual portions (obs
, varm
etc.) of the AnnData
object.
|
Read an element from a store. |
|
Generates a backed mode-compatible sparse dataset class. |
Reading file formats that cannot represent all aspects of AnnData
objects.
Tip
You might have more success by assembling the AnnData
object yourself from the individual parts.
|
Read |
|
Read |
|
Read |
|
Read |
|
Read |
|
Read |
|
Read a gzipped condensed count matrix from umi_tools. |
Writing#
Writing a complete AnnData
object to disk in anndata’s native formats .h5ad
and zarr
.
(These functions are also exported as io.write_h5ad()
and io.write_zarr()
.)
|
Write |
|
Write a hierarchical Zarr array store. |
Writing individual portions (obs
, varm
etc.) of the AnnData
object.
|
Write an element to a storage group using anndata encoding. |
Writing formats that cannot represent all aspects of AnnData
objects.
|
Write annotation to |
|
Write |
Experimental API#
Warning
APIs in the experimental module are currently in development and subject to change at any time.
Two classes for working with batched access to collections of many AnnData
objects or .h5ad
files.
In particular, for pytorch-based models.
|
Lazily concatenate AnnData objects along the |
|
PyTorch DataLoader for AnnData objects. |
Out of core concatenation
|
Concatenates multiple AnnData objects along a specified axis using their corresponding stores or paths, and writes the resulting AnnData object to a target location on disk. |
Low level methods for reading and writing elements of an AnnData
object to a store:
|
Read an element from a store lazily. |
|
Lazily read in on-disk/in-cloud AnnData stores, including |
Utilities for customizing the IO process:
|
Read elem, calling the callback at each sub-element. |
|
Write elem to store, recursively calling callback at each sub-element. |
Types used by the former:
|
|
Represent a PEP 604 union type |
|
A wrapper class meant to enable working with lazy masked data. |
|
A wrapper class meant to enable working with lazy categorical data. |
|
A wrapper class meant to enable working with lazy dataframe data. |
Errors and warnings#
Raised whenever initializing an object or assigning a property changes the type of a part of a parameter or the value being assigned. |
Settings#
This manager allows users to customize settings for the anndata package. |
|
|
Provides local override via keyword arguments as a context manager. |
Custom Types/Classes for Readable/Writeable Elements#
On disk CSR sparse matrix. |
|
On disk CSC sparse matrix. |
|
1D or 2D index an |
|
A serializable object, excluding |
|
A superset of |