SCEAnnData | R Documentation |
Data Format Conversion between SingleCellExperiment and AnnData.
SCEAnnData(
from = c("SingleCellExperiment", "AnnData"),
to = c("AnnData", "SingleCellExperiment"),
sce = NULL,
anndata.file = NULL,
slot.name = "counts",
...
)
from |
The source data format to convert, chosen from SingleCellExperiment and AnnData. Default: SingleCellExperiment. |
to |
The target data format to convert, chosen from AnnData and SingleCellExperiment. Default: AnnData. |
sce |
The SingleCellExperiment object to convert. Default: NULL. |
anndata.file |
File used to save or contains AnnData results. Default: NULL. |
slot.name |
Slot name used to save count matrix, used when converting from AnnData to SingleCellExperiment. Default: counts. |
... |
Parameters for |
NULL or SingleCellExperiment.
## Not run:
library(scRNAseq)
seger <- SegerstolpePancreasData()
SCEAnnData(from = "SingleCellExperiment", to = "AnnData", sce = seger, X_name = "counts")
# need users to provide the output file
sce <- SCEAnnData(
from = "AnnData", to = "SingleCellExperiment",
anndata.file = "path/to/seger.h5ad"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.