Skip to content

Commit

Permalink
Removed the obsolete cache moving code.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Feb 26, 2024
1 parent 79bbe4f commit 05d43db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 48 deletions.
34 changes: 0 additions & 34 deletions R/move_cache.R

This file was deleted.

16 changes: 2 additions & 14 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#' @importFrom SummarizedExperiment SummarizedExperiment
#' @importFrom SummarizedExperiment rowData
#' @importFrom S4Vectors DataFrame
.create_se <- function(dataset, version, hub = .ExperimentHub(), assays="logcounts",
.create_se <- function(dataset, version, hub = ExperimentHub(), assays="logcounts",
rm.NA = c("rows","cols","both","none"), has.rowdata=FALSE, has.coldata=TRUE)
{
rm.NA <- match.arg(rm.NA)
Expand Down Expand Up @@ -79,7 +79,7 @@
tag <- "AH73881"
}

edb <- .AnnotationHub()[[tag]]
edb <- AnnotationHub()[[tag]]
ensid <- mapIds(edb, keys=rownames(se), keytype="SYMBOL", column="GENEID")

keep <- !is.na(ensid) & !duplicated(ensid)
Expand Down Expand Up @@ -112,15 +112,3 @@

se
}

#' @importFrom ExperimentHub ExperimentHub
.ExperimentHub <- function() {
.move_cache("ExperimentHub", "EXPERIMENT_HUB_CACHE")
ExperimentHub()
}

#' @importFrom AnnotationHub AnnotationHub
.AnnotationHub <- function() {
.move_cache("AnnotationHub", "ANNOTATION_HUB_CACHE")
AnnotationHub()
}

0 comments on commit 05d43db

Please sign in to comment.