Skip to contents

Function to write metadata to object

Usage

write_meta(object, ...)

# S3 method for Seurat
write_meta(object, meta, ...)

# S3 method for SingleCellExperiment
write_meta(object, meta, ...)

Arguments

object

object after tsne or umap projections and clustering

...

additional arguments

meta

new metadata dataframe

Value

object with newly inserted metadata columns

Examples

so <- so_pbmc()
obj <- write_meta(
    object = so,
    meta = seurat_meta(so)
)
sce <- sce_pbmc()
obj <- write_meta(
    object = sce,
    meta = object_data(sce, "meta.data")
)