adata_to_srt | R Documentation |
Convert an anndata object to a seurat object using reticulate
adata_to_srt(adata)
adata |
a connected python anndata object. |
data("pancreas_sub")
adata <- srt_to_adata(pancreas_sub)
adata <- RunPAGA(adata = adata, group_by = "SubCellType", linear_reduction = "PCA", nonlinear_reduction = "UMAP")
srt <- adata_to_srt(adata)
srt
### Or convert a h5ad file to Seurat object
# library(reticulate)
# check_Python("scanpy")
# sc <- import("scanpy")
# adata <- sc$read_h5ad("pancreas.h5ad")
# srt <- adata_to_srt(adata)
# srt
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.