View source: R/Object_Utilities.R
Store_Palette_Seurat | R Documentation |
Wrapper function around Store_Misc_Info_Seurat
to store color palettes.
Store_Palette_Seurat(
seurat_object,
palette,
palette_name,
list_as_list = FALSE,
overwrite = FALSE,
verbose = TRUE
)
seurat_object |
object name. |
palette |
vector or list of vectors containing color palettes to store. If list of palettes
see |
palette_name |
name to give the palette(s) 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 |
verbose |
logical, whether to print messages when running function, default is TRUE. |
Seurat Object with new entries in the @misc
slot.
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.