Wrapper function save variety of data types to the object@misc slot of Seurat object.
Store_Misc_Info_Seurat(
seurat_object,
data_to_store,
data_name,
list_as_list = FALSE,
overwrite = FALSE,
verbose = TRUE
)object name.
data to be stored in @misc slot. Can be single piece of data or list.
If list of data see list_as_list parameter for control over data storage.
name to give the entry in @misc slot. Must be of equal length of the number
of data items being stored.
logical. If data_to_store is a list, this dictates whether to store in @misc slot
as list (TRUE) or whether to store each entry in the list separately (FALSE). Default is FALSE.
Logical. Whether to overwrite existing items with the same name. Default is FALSE, meaning
that function will abort if item with data_name is present in misc slot.
logical, whether to print messages when running function, default is TRUE.
Seurat Object with new entries in the @misc slot.