Skip to contents

Efficiently merge metadata across multiple Seurat objects into one master dataframe.

Usage

mergeMetadata(x)

Arguments

x

A named-list of Seurat objects

Value

A dataframe of merged metadata

Examples

# list of seurat objects with names
objects <- c("obj1", "obj2", "obj3", "obj4")
# Vector of sample IDs
sampleIDs <- c("S1", "S2", "S3", "S4")
names(objects) <- sampleIDs
metadata <- mergeMetadata(objects)
#> Error in mergeMetadata(objects): Input must be a list of Seurat objects.