Input/Output#

Backed AnnData objects#

AnnData(*, filename, X, n_obs, n_vars, obs, ...)

An annotated data matrix.

AnnDataSet(adatas, *, filename, add_key, backend)

Similar to AnnData, AnnDataSet contains annotations of observations obs (obsm, obsp), variables var (varm, varp), and unstructured annotations uns.

AnnData IO#

read(filename[, backed, backend])

Read .h5ad-formatted hdf5 file.

read_mtx(mtx_file, *[, obs_names, ...])

Read Matrix Market file.

read_dataset(filename, *[, ...])

Read AnnDataSet object.

AnnData.write(filename, backend)

Write .h5ad-formatted hdf5 file.

AnnData.subset([obs_indices, var_indices, ...])

Subsetting the AnnData object.

AnnData.copy(filename, backend)

Copy the AnnData object.

AnnDataSet.subset([obs_indices, ...])

Subsetting the AnnDataSet object.