View source: R/merge_anndata.R
merge_anndata | R Documentation |
anndata
objectsMerge a list of Seurat objects efficiently.
merge_anndata(
obj_list,
axis = 0L,
join = "outer",
merge = NULL,
uns_merge = NULL,
label = NULL,
keys = NULL,
index_unique = NULL,
fill_value = NULL,
pairwise = FALSE,
verbose = TRUE
)
obj_list |
A named list of AnnData objects, or paths to AnnData objects saved to disk as .h5ad files. |
axis |
Which axis to concatenate along. |
join |
How to align values when concatenating. If "outer", the union of the other axis is taken. If "inner", the intersection. See |
merge |
How elements not aligned to the axis being concatenated along are selected. Currently implemented strategies include: * |
uns_merge |
How the elements of |
label |
Column in axis annotation (i.e. |
keys |
Names for each object being added. These values are used for column values for |
index_unique |
Whether to make the index unique by using the keys. If provided, this is the delimeter between "orig_idxindex_uniquekey". When |
fill_value |
When |
pairwise |
Whether pairwise elements along the concatenated dimension should be included. This is FALSE by default, since the resulting arrays are often not meaningful. |
verbose |
Print messages. |
A merged AnnData object.
obj <- example_obj("anndata")
obj_list <- Seurat::SplitObject(obj,split.by = "groups")
obj2 <- merge_seurat(obj_list)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.