Skip to main content

PyPI Version Bioconda Version Documentation Status Unit Tests Publication DOI

AnnData ↭ SingleCellExperiment

RPy2 converter from AnnData to SingleCellExperiment and back. (For details about conversion see the docs)

You can for example use it to process your data using both Scanpy and Seurat, as described in this example notebook

Installation

pip install anndata2ri
# or
conda install -c bioconda anndata2ri

Troubleshooting

If you have problems installing or importing anndata2ri, please make sure you first:

  1. Check the stack trace: If the error happens while installing or importing a dependency such as rpy2, report your problem in that project’s bug tracker.

  2. Search the issues. At the time of writing 17 of the 29 bugs (60%) are invalid or rpy2 bugs / install problems.

  3. Make sure you have a compatible R version: rpy2 requires R ≥ 3.6.

Usage from Python

Use the converter as a context manager:

import anndata2ri
from rpy2.robjects import r
from rpy2.robjects.conversion import localconverter

with localconverter(anndata2ri.converter):
    adata = r('as(some_data, "SingleCellExperiment")')

Usage from Jupyter

Override the R magic option:

import anndata2ri
%load_ext rpy2.ipython
anndata2ri.set_ipython_converter()

Now you can move objects from Python to R …

import scanpy.datasets as scd
adata_paul = scd.paul15()
%%R -i adata_paul
adata_paul  # class: SingleCellExperiment ...

… and back:

%%R -o adata_allen
data(allen, package = 'scRNAseq')
adata_allen <- as(allen, 'SingleCellExperiment')
print(adata_allen)  # AnnData object with ...

Metadata

Release files for anndata2ri 3.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for anndata2ri 3.1.0
File Size Uploaded Provenance Actions
anndata2ri-3.1.0.tar.gz 37.2 kB With provenance Details for anndata2ri-3.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for anndata2ri 3.1.0
File Interpreter ABI Platform Actions
anndata2ri-3.1.0-py3-none-any.whl Python 3 none any Details for anndata2ri-3.1.0-py3-none-any.whl

Total release size: 66.4 kB

Release files / anndata2ri-3.1.0.tar.gz

Download URL anndata2ri-3.1.0.tar.gz
Size 37.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3b7f23ce8a943ebb2b49d8a4d0d57700c37e7d783057554f3585df70034dacc9
BLAKE2b-256 checksum
How to use checksums
8d01ad10074525c3d30b1b14c9597c15db1c97dc3e36c76fc1e60c98d8b7a372
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Release files / anndata2ri-3.1.0-py3-none-any.whl

Download URL anndata2ri-3.1.0-py3-none-any.whl
Size 29.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
02e5ef0b98de58e56e5c2ab963edaba750cce05c71b761e48a01d2233011dea9
BLAKE2b-256 checksum
How to use checksums
a0d988cc0cf807e96e2b24d564ea76513f5e76107b9010087f502c741d452934
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Security for anndata2ri 3.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for anndata2ri-3.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page