Interoperability between scverse data structures and other languages#
Here we provide a list of resources that can be used to work with scverse data structures from your language of choice.
A more detailed tutorial on interoperability with other languages can be found in the Single-cell analysis best-practices book.
Conversion between python and R structures for single-cell analysis#
Several toolkits for single-cell analysis in R build upon SingleCellExperiment objects or Seurat objects. The following table provides an indication of which objects slots store the same data in AnnData and R objects.
|
|
|
|
---|---|---|---|
Active expression matrix |
|
|
|
Alternative expression matrices |
|
|
|
Cell-level metadata |
|
|
|
Gene-level metadata |
|
|
|
Dimensionality reductions |
|
|
|
cell IDs |
|
|
|
gene IDs |
|
|
|
Cell-cell similarity graphs |
|
— |
|
AnnData ⇄ Seurat objects#
See Seurat documentation for more details about Seurat objects.
MuDataSeurat - R package to read and write
h5ad
files to and from Seurat objectssceasy - R package to convert between objects within a session or saving
h5ad
orrds
filesUsing reticulate - tutorial for conversion within R/Rmd sessions
AnnData ⇄ SingleCellExperiment objects#
See OSCA book for more details about SingleCellExperiment objects.
zellconverter - R/Bioconductor package to read and write
h5ad
files and to convert objects within R sessions using basiliskanndata2ri - python package to convert between objects within python sessions using rpy2
sceasy - R package to convert between objects within a session or saving
h5ad
orrds
filesUsing reticulate - tutorial for conversion within R/Rmd sessions
AnnData ⇄ Loom objects#
See Loompy documentation for more details about Loom objects.
MuData ⇄ Seurat objects#
See Seurat documentation for more details about Seurat objects.
MuDataSeurat - R package to read and write
h5mu
files to and from Seurat objects
MuData ⇄ MultiAssayExperiment objects#
See documentation for more details about MultiAssayExperiment objects.
MuData for MultiAssayExperiment - R package to read and write
h5mu
files to and fromMultiAssayExperiment
objects
MuData ⇄ ArchR objects#
See ArchR documentation for more details about ArchR objects.
Using chame - python package providing functionality to read Arrow files
Read h5ad/h5mu in other languages#
Julia#
Javascript#
Vitessce -contains loaders from
AnnData
s stored as Zarr
Rust#
anndata-rs provides a Rust implementation of
AnnData
as well as advanced IO support for the HDF5 storage format.