ranking: Remove caching for optimization

This commit is contained in:
Elias Projahn 2022-02-24 14:51:15 +01:00
parent 57fc119993
commit 33cc33f81a

View file

@ -65,10 +65,7 @@ optimal_weights <- function(analysis, methods, reference_gene_ids,
stop("Invalid analyis. Use geposan::analyze().") stop("Invalid analyis. Use geposan::analyze().")
} }
cached(
"optimization",
c(analysis$preset, methods, reference_gene_ids, target),
{ # nolint
# Compute the target rank of the reference genes when applying the # Compute the target rank of the reference genes when applying the
# weights. # weights.
target_rank <- function(factors) { target_rank <- function(factors) {
@ -101,5 +98,3 @@ optimal_weights <- function(analysis, methods, reference_gene_ids,
as.list(optimal_factors / max(abs(optimal_factors))) as.list(optimal_factors / max(abs(optimal_factors)))
} }
)
}