#' Convert: \code{CellDataSet} ==> \code{list}
#'
#' @inheritParams converters
#' @export
#' @examples
#' obj <- example_obj("cds")
#' obj2 <- cds_to_list(obj)
cds_to_list <- function(obj,
as_sparse = TRUE,
verbose = TRUE){
messager("+ CellDataSet ==> list",v=verbose)
# Biobase::ExpressionSet()
list(data = get_x(obj,
as_sparse = as_sparse,
verbose = verbose),
obs = get_obs(obj, verbose = verbose),
var = get_var(obj, verbose = verbose),
obsm = get_obsm(obj,
verbose = verbose)
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.