example_obj | R Documentation |
Create a small example object of scRNA-seq data.
example_obj(
class = c("Seurat", "h5Seurat", "SummarizedExperiment", "SingleCellExperiment",
"CellDataSet", "matrix", "data.table", "data.frame", "list", "loom",
"LoomExperiment", "SingleCellLoomExperiment", "hdf5se", "anndata", "EWCE"),
save_path = file.path(tempdir(), "example"),
verbose = TRUE
)
class |
Object class to return. |
save_path |
Path to save on-disk object formats. |
verbose |
Print messages. |
NOTE: If you get the error
Error: ModuleNotFoundError: No module named 'anndata'
,
try running install_anndata and
then restarting your R session.
Also, loom files require you to run library(Seurat)
beforehand.
Certain file types (loom, anndata) can't be stored as .rda files because they need to be set up for on-disk reading.
A single-cell object.
se <- example_obj("se")
sce <- example_obj("sce")
seurat <- example_obj("seurat")
library(Seurat) # necessary
loom <- example_obj("loom")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.