set_var | R Documentation |
Set the feature variable slot (i.e. gene metadata) in any single-cell object that has one.
set_var(obj, var, verbose = TRUE)
obj |
A single-cell object supported by scKirby. See converters for a table of all supported conversions. |
var |
Variable metadata as a data.frame with features as row names. |
verbose |
Print messages. |
Single-cell object.
obj <- example_obj("seurat")
var <- get_var(obj)
var$new_col <- c(1,2)
obj2 <- set_var(obj = obj,
var = var)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.