insert_meta_object: more flexible metadata update of single cell objects

Description Usage Arguments Value Examples

View source: R/utils.R

Description

more flexible metadata update of single cell objects

Usage

1
2
3
4
5
6
7
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

1
2
3
4
## Not run: 
insert_meta_object(s_small3, seurat_meta(s_small3, dr = "tsne"))

## End(Not run)

clustifyr documentation built on Nov. 8, 2020, 5:32 p.m.