R/loom_to_scle.R

Defines functions loom_to_scle

Documented in loom_to_scle

#' Convert: \code{loom} ==> \code{SingleCellLoomExperiment}
#'
#' @inheritParams converters
#' @inheritDotParams LoomExperiment::SingleCellLoomExperiment
#' @export
#' @examples
#' library(Seurat)
#' obj <-  example_obj("loom")
#' sce <- loom_to_scle(obj)
loom_to_scle <- function(obj,
                         verbose=TRUE,
                         ...){
  requireNamespace("LoomExperiment")

  messager_to()
  obj2 <- LoomExperiment::SingleCellLoomExperiment(obj,
                                                   ...)
  return(obj2)
}
bschilder/scKirby documentation built on Oct. 2, 2024, 10:16 p.m.