optimal_weights: Find the best weights to rank the results.

View source: R/ranking.R

optimal_weightsR Documentation

Find the best weights to rank the results.

Description

This function finds the optimal parameters to ranking() that result in the reference genes ranking particulary high.

Usage

optimal_weights(analysis, methods, reference_gene_ids, target = "mean")

Arguments

analysis

Results from analyze() or ranking().

methods

Methods to include in the score.

reference_gene_ids

IDs of the reference genes.

target

The optimization target. It may be one of "mean", "median", "min" or "max" and results in the respective rank being optimized.

Value

Named list pairing method names with their optimal weights. This can be used as an argument to ranking().


johrpan/geposan documentation built on Feb. 28, 2025, 3:48 a.m.