powered by
Retrieve data from Seurat or SingleCellExperiment object to prepare for use in nebula
scToNeb( obj, assay = NULL, id = NULL, pred = NULL, offset = NULL, verbose = TRUE )
data_neb: A list usable for nebula.
Seurat or SingleCellExperiment object to create data set for Nebula.
Seurat
SingleCellExperiment
Assay to retrieve counts from the corresponding Seurat count matrix.
Sample ID to use metadata object i.e. obj$id.
obj$id
Character vector of predictors from metadata in Seurat or SingleCellExperiment objects.
Metadata column corresponding to per-cell scaling factor e.g. TMM.
Indicating whether to print additional messages.
if (FALSE) { library(Seurat) library(nebula) data("sample_seurat") re <- scToNeb(obj = sample_seurat, assay = "RNA", id = "replicate", pred = c("celltype", "tech")) }
Run the code above in your browser using DataLab