Merge two Seurat objects
MergeSeurat(object1, object2, project = NULL, min.cells = 0,
min.genes = 0, is.expr = 0, do.normalize = TRUE, scale.factor = 10000,
do.scale = FALSE, do.center = FALSE, names.field = 1,
names.delim = "_", save.raw = TRUE, add.cell.id1 = NULL,
add.cell.id2 = NULL)
First Seurat object to merge
Second Seurat object to merge
Include genes with detected expression in at least this many cells
Include cells where at least this many genes are detected
Expression threshold for 'detected' gene
Normalize the data after merging. Default is TRUE. If set, will perform the same normalization strategy as stored for the first object
In object@scale.data, perform row-scaling (gene-based z-score). FALSE by default, so run ScaleData after merging.
In object@scale.data, perform row-centering (gene-based centering). FALSE by default
For the initial identity class for each cell, choose this field from the cell's column name
For the initial identity class for each cell, choose this delimiter from the cell's column name
TRUE by default. If FALSE, do not save the unmodified data in object@raw.data which will save memory downstream for large datasets
String to be appended to the names of all cells in object1
String to be appended to the names of all cells in object2
Additional metadata to add to the Seurat object. Should be a data frame where the rows are cell names, and the columns are additional metadata fields
Merged Seurat object