.sce2adata {singleCellTK} | R Documentation

## Coverts SingleCellExperiment object from R to anndata.AnnData object in Python

### Description

The AnnData object here can be saved to .h5ad file and read into Python interactive console. Mostly used senario is when you want to apply reticulated Python function, which only works with an anndata.AnnData object.

### Usage

    .sce2adata(SCE, useAssay = "counts")

### Arguments

`SCE` | A SingleCellExperiment object.
`useAssay` | Character, default '"counts"'. The name of assay of interests that will be set as the primary matrix of the output AnnData. Available options can be listed by 'assayNames(SCE)'. Thee primary matrix will be saved in 'adata$X', Other assays will be stored in 'adata$obsm' together with the low-dimension representations (for now).

### Value

A Python anndata.AnnData object

[Package singleCellTK version 2.0.0 Index]