Store_Misc_Info_Seurat {scCustomize} | R Documentation |
Store misc data in Seurat object
Description
Wrapper function save variety of data types to the object@misc
slot of Seurat object.
Usage
Store_Misc_Info_Seurat(
seurat_object,
data_to_store,
data_name,
list_as_list = FALSE,
overwrite = FALSE
)
Arguments
seurat_object |
object name. |
data_to_store |
data to be stored in |
data_name |
name to give the entry in |
list_as_list |
logical. If |
overwrite |
Logical. Whether to overwrite existing items with the same name. Default is FALSE, meaning
that function will abort if item with |
Value
Seurat Object with new entries in the @misc
slot.
Examples
library(Seurat)
clu_pal <- c("red", "green", "blue")
pbmc_small <- Store_Misc_Info_Seurat(seurat_object = pbmc_small, data_to_store = clu_pal,
data_name = "rd1_colors")
[Package scCustomize version 2.1.2 Index]