more flexible metadata update of single cell objects
Usage
insert_meta_object(
input,
new_meta,
type = class(input),
meta_loc = NULL,
lookuptable = NULL
)
Examples
so <- so_pbmc()
insert_meta_object(so, seurat_meta(so, dr = "umap"))
#> An object of class Seurat
#> 2000 features across 2638 samples within 1 assay
#> Active assay: RNA (2000 features, 2000 variable features)
#> 2 layers present: counts, data
#> 1 dimensional reduction calculated: umap