anndataR provides a pure R implementation of the AnnData data
structure with no Python required. It reads and writes .h5ad files
natively and supports conversion to/from SingleCellExperiment and
Seurat objects. New users should install anndataR from
Bioconductor instead:
BiocManager::install("anndataR")
Existing users of anndata can follow the migration
guide
for guidance on switching to anndataR.
anndata for R is a reticulate wrapper for the Python anndata
package.
This package is no longer under active development as it has been
superseded by anndataR. Bug fixes may
still be applied, but no new features are planned.
anndata for R
anndatafor R is areticulatewrapper for the Pythonanndatapackage.Installation
You can install
anndatafor R from CRAN as follows:Normally, reticulate should take care of installing Miniconda and the Python anndata.
If not, try running:
Getting started
The API of anndata for R is very similar to its Python counterpart. Here is an example:
See
?anndatafor a full list of the functions provided by this package. Check out any of the other vignettes by clicking any of the links below:Future work
This package is no longer under active development as it has been superseded by anndataR. Bug fixes may still be applied, but no new features are planned.
References