#' Convert: \code{Seurat} ==> \code{SummarizedExperiment}
#'
#' @inheritParams converters
#' @inheritParams to_se
#' @returns A \link[SummarizedExperiment]{SummarizedExperiment} object.
#'
#' @export
#' @examples
#' obj <- example_obj("seurat")
#' obj2 <- seurat_to_se(obj)
seurat_to_se <- function(obj,
as_sce=TRUE,
verbose=TRUE){
messager_to()
obj2 <- Seurat::as.SingleCellExperiment(obj)
if(isFALSE(as_sce)){
obj2 <- sce_to_se(obj = obj2,
verbose = verbose)
}
return(obj2)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.