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