dot-sce2adata: Coverts SingleCellExperiment object from R to anndata.AnnData...

Description Usage Arguments Value

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

1
.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


singleCellTK documentation built on Nov. 8, 2020, 5:21 p.m.