merge_sce | R Documentation |
SingleCellExperiment
objectsCombine several SingleCellExperiment
objects from
different batches/experiments.
Extracted from the
scMerge package.
merge_sce(
sce_list,
method = "union",
cut_off_batch = 0.01,
cut_off_overall = 0.01,
use_assays = NULL,
colData_names = intersect,
batch_names = names(sce_list),
verbose = TRUE
)
sce_list |
A list contains the |
method |
A string indicates the method of combining the
gene expression matrix, either |
cut_off_batch |
A numeric vector indicating the cut-off for the proportion of a gene is expressed within each batch. |
cut_off_overall |
A numeric vector indicating the cut-off for the proportion of a gene is expressed overall data. |
use_assays |
A string vector indicating the expression matrices to be combined. The first assay named will be used to determine the proportion of zeros. |
colData_names |
A string vector indicating the |
batch_names |
A string vector indicating the batch names for the output SCE object. |
verbose |
Print messages. |
A SingleCellExperiment
object
with the list of SCE objects combined.
obj <- example_obj("sce")
batch_names <- unique(obj$groups)
sce_list <- list(obj[,obj$groups=='g1'],
obj[,obj$groups=='g2'])
obj2 <- merge_sce(sce_list, batch_names = batch_names)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.