.sce2adata {singleCellTK} | R Documentation |
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.
.sce2adata(SCE, useAssay = "counts")
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). |
A Python anndata.AnnData object