scToNeb {nebula} | R Documentation |
Retrieve data from Seurat or SingleCellExperiment object to prepare for use in nebula
Description
Retrieve data from Seurat or SingleCellExperiment object to prepare for use in nebula
Usage
scToNeb(
obj,
assay = NULL,
id = NULL,
pred = NULL,
offset = NULL,
verbose = TRUE
)
Arguments
obj |
|
assay |
Assay to retrieve counts from the corresponding |
id |
Sample ID to use metadata object i.e. |
pred |
Character vector of predictors from metadata in |
offset |
Metadata column corresponding to per-cell scaling factor e.g. TMM. |
verbose |
Indicating whether to print additional messages. |
Value
data_neb: A list usable for nebula.
Examples
## Not run:
library(Seurat)
library(nebula)
data("sample_seurat")
re <- scToNeb(obj = sample_seurat, assay = "RNA", id = "replicate", pred = c("celltype", "tech"))
## End(Not run)
[Package nebula version 1.5.3 Index]