All Projects → theislab → anndata2ri

theislab / anndata2ri

Licence: other
Convert between AnnData and SingleCellExperiment

Programming Languages

python
139335 projects - #7 most used programming language
Jupyter Notebook
11667 projects

Projects that are alternatives of or similar to anndata2ri

TCGAbiolinksGUI
TCGAbiolinksGUI code development for R/Bioconductor submission http://tcgabiolinks.fmrp.usp.br:3838/
Stars: ✭ 32 (-59.49%)
Mutual labels:  bioconductor
SCICoNE
Single-cell copy number calling and event history reconstruction.
Stars: ✭ 20 (-74.68%)
Mutual labels:  single-cell
RBioFormats
📚 R interface to the Bio-Formats library
Stars: ✭ 20 (-74.68%)
Mutual labels:  bioconductor
dyngen
Simulating single-cell data using gene regulatory networks 📠
Stars: ✭ 59 (-25.32%)
Mutual labels:  single-cell
bioc 2020 tidytranscriptomics
Workshop on tidytranscriptomics: Performing tidy transcriptomics analyses with tidybulk, tidyverse and tidyheatmap
Stars: ✭ 25 (-68.35%)
Mutual labels:  bioconductor
ngs-in-bioc
A course on Analysing Next Generation (/High Throughput etc..) Sequencing data using Bioconductor
Stars: ✭ 37 (-53.16%)
Mutual labels:  bioconductor
scATAC-pro
A comprehensive tool for processing, analyzing and visulizing single cell chromatin accessibility sequencing data
Stars: ✭ 63 (-20.25%)
Mutual labels:  single-cell
scMCA
Mouse cell atlas
Stars: ✭ 45 (-43.04%)
Mutual labels:  single-cell
ensembldb
This is the ensembldb development repository.
Stars: ✭ 31 (-60.76%)
Mutual labels:  bioconductor
Nebulosa
R package to visualize gene expression data based on weighted kernel density estimation
Stars: ✭ 50 (-36.71%)
Mutual labels:  single-cell
NGS
Next-Gen Sequencing tools from the Horvath Lab
Stars: ✭ 30 (-62.03%)
Mutual labels:  single-cell
BiocPkgTools
Computable build reports, package metadata, and download stats from the Bioconductor project
Stars: ✭ 20 (-74.68%)
Mutual labels:  bioconductor
trVAE
Conditional out-of-distribution prediction
Stars: ✭ 47 (-40.51%)
Mutual labels:  single-cell
scAlign
A deep learning-based tool for alignment and integration of single cell genomic data across multiple datasets, species, conditions, batches
Stars: ✭ 32 (-59.49%)
Mutual labels:  single-cell
pipeComp
A R framework for pipeline benchmarking, with application to single-cell RNAseq
Stars: ✭ 38 (-51.9%)
Mutual labels:  bioconductor
SCope
Fast visualization tool for large-scale and high dimensional single-cell data
Stars: ✭ 62 (-21.52%)
Mutual labels:  single-cell
CITE-seq-Count
A tool that allows to get UMI counts from a single cell protein assay
Stars: ✭ 62 (-21.52%)
Mutual labels:  single-cell
rdocumentation-2.0
📚 RDocumentation provides an easy way to search the documentation for every version of every R package on CRAN and Bioconductor.
Stars: ✭ 197 (+149.37%)
Mutual labels:  bioconductor
kana
Single cell analysis in the browser
Stars: ✭ 81 (+2.53%)
Mutual labels:  single-cell
microarray-analysis
Materials on the analysis of microarray expression data; focus on re-analysis of public data ( http://tinyurl.com/cruk-microarray)
Stars: ✭ 44 (-44.3%)
Mutual labels:  bioconductor

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

Either use the converter manually …

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

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

… or activate it globally:

import anndata2ri
from rpy2.robjects import r
anndata2ri.activate()

adata = r('as(some_data, "SingleCellExperiment")')

Usage from Jupyter

Activate the conversion before you load the extension:

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

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 ...
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].