R/create_se.R

Defines functions .create_se

#' @importFrom ExperimentHub ExperimentHub
#' @importFrom spicyR SegmentedCells
.create_se <- function(dataset, hub=ExperimentHub(), ...) {

  host <- file.path("scSpatial", dataset)
  single_cell_path <- file.path(host, "spatialCellData.rds")
  cellData <- read_rds(single_cell_path)

  SegmentedCells(cellData, ...)
}
celsomilne/scSpatial documentation built on Aug. 11, 2020, 9:51 a.m.