#' Convert: \code{loom} ==> \code{SummarizedExperiment}
#'
#' @inheritParams converters
#' @inheritParams to_se
#' @inheritDotParams SeuratDisk::LoadLoom
#' @export
#' @examples
#' library(Seurat)
#' obj <- example_obj("loom")
#' obj2 <- loom_to_se(obj)
loom_to_se <- function(obj,
as_sce=FALSE,
verbose=TRUE,
...){
messager_to()
#### Import as a Seurat obj first for convenience ####
obj <- SeuratDisk::LoadLoom(file = obj$filename,
verbose = verbose,
...)
#### Then convert to se/sce ####
obj2 <- seurat_to_se(obj,
as_sce = as_sce,
verbose = verbose)
return(obj2)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.