ingest_data | R Documentation |
Automatically infers data format of scRNAseq object, or a path to that object. It then uses the appropriate functions to import that data and convert it to a SingleCellExperiment, which is recognized by other EWCE functions.
ingest_data(
obj,
input_type = "guess",
output_class = c("SingleCellExperiment", "Seurat", "CellDataSet", "list"),
custom_reader = NULL,
save_path = NULL,
overwrite = FALSE,
return_save_path = FALSE,
verbose = TRUE,
...
)
obj |
A single-cell data object, or a path to saved single-cell data. |
input_type |
Format of |
output_class |
Format to convert |
custom_reader |
Custom function to read |
save_path |
Path to save the converted |
overwrite |
If a file of the same name exists, overwrite it. |
return_save_path |
If |
verbose |
Print messages. |
... |
Arguments passed on to
|
Converted single-cell object.
SeuratDisk anndata (R) anndata (python) loomR SingleCellExperiment DelayedArray workshop zellkonverter
## Not run:
#### Input: Seurat object ####
seurat <- example_obj("seurat")
sce1 <- ingest_data(obj=seurat)
#### Input: Matrix object ####
sce2 <- ingest_data(obj=seurat@assays$RNA@counts)
#### Input hdf5se object ####
hdf5se <- example_obj("hdf5se")
sce3 <- ingest_data(obj=hdf5se)
#### Input anndata object ####
ad <- example_obj("anndata")
sce4 <- ingest_data(obj=ad)
#### Input anndata path ####
sce5 <- ingest_data(obj = ad$filename)
#### Input: h5Seurat object ####
h5seurat <- example_obj("h5seurat")
sce6 <- ingest_data(obj=h5seurat)
#### Input: h5Seurat path ####
sce7 <- ingest_data(obj=h5seurat$path)
#### Input: loom object ####
library(Seurat)
loom <- example_obj("loom")
sce8 <- ingest_data(obj=loom)
#### Input: EWCE object ####
\dontrun{
ewce <- ewceData::cortex_mrna()
sce10 <- ingest_data(obj=ewce)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.