R/se1.3M.R

Defines functions se1.3M

Documented in se1.3M

#' add/retrieve HSDS-based SE to/from cache
#' @import BiocFileCache SummarizedExperiment
#' @param cache BiocFileCache-like cache
#' @export
se1.3M = function(cache = BiocFileCache::BiocFileCache()) {
  requireNamespace("SummarizedExperiment", quietly=TRUE)
  q = bfcquery(cache, "BiocRestful/tenx1.3M.rds")
  nans = nrow(q)
  if (nans >= 1) return(readRDS(q$rpath[nans]))
  ans = bfcadd(cache, rname="https://mghp.osn.xsede.org/bir190004-bucket01/BiocRestful/tenx1.3M.rds",
     action="copy", download=TRUE)
  readRDS(ans)
}
vjcitn/tenXplore documentation built on Aug. 6, 2024, 6:15 a.m.