merge_seurat: Merge 'Seurat' objects

View source: R/merge_seurat.R

merge_seuratR Documentation

Merge Seurat objects

Description

Merge a list of Seurat objects efficiently.

Usage

merge_seurat(obj_list, chunk_size = 5, verbose = TRUE)

Arguments

obj_list

A named list of Seurat objects, or paths to Seurat objects saved to disk as .rds files.

chunk_size

An integer indicating number of cells to include per chunk. This can be a more memory efficient and scalable way of aggregating on-disk data formats like AnnData, rather than reading in the entire matrix into memory at once (default: NULL).

verbose

Print messages.

Value

A merged Seurat object.

Examples

obj <- example_obj("seurat")
obj_list <- Seurat::SplitObject(obj,split.by = "groups")
obj2 <- merge_seurat(obj_list)

bschilder/scKirby documentation built on April 22, 2024, 12:13 a.m.