insert_meta_object: more flexible metadata update of single cell objects

View source: R/utils.R

insert_meta_objectR Documentation

more flexible metadata update of single cell objects

Description

more flexible metadata update of single cell objects

Usage

insert_meta_object(
  input,
  new_meta,
  type = class(input),
  meta_loc = NULL,
  lookuptable = NULL
)

Arguments

input

input object

new_meta

new metadata table to insert back into object

type

look up predefined slots/loc

meta_loc

metadata location

lookuptable

if not supplied, will look in built-in table for object parsing

Value

new object with new metadata inserted

Examples

so <- so_pbmc()
insert_meta_object(so, seurat_meta(so, dr = "umap"))

rnabioco/clustifyR documentation built on Aug. 30, 2024, 8:16 a.m.