mirror of
https://github.com/johrpan/geposan.git
synced 2025-10-26 18:57:25 +01:00
ranking: Use S3 classes and rename optimize method
This commit is contained in:
parent
4792bbaefd
commit
4992bb2930
5 changed files with 55 additions and 31 deletions
|
|
@ -1,25 +0,0 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/ranking.R
|
||||
\name{optimize_weights}
|
||||
\alias{optimize_weights}
|
||||
\title{Find the best weights to rank the results.}
|
||||
\usage{
|
||||
optimize_weights(results, methods, reference_gene_ids, target = "mean")
|
||||
}
|
||||
\arguments{
|
||||
\item{results}{Results from \code{\link[=analyze]{analyze()}} or \code{\link[=ranking]{ranking()}}.}
|
||||
|
||||
\item{methods}{Methods to include in the score.}
|
||||
|
||||
\item{reference_gene_ids}{IDs of the reference genes.}
|
||||
|
||||
\item{target}{The optimization target. It may be one of "mean", "min" or
|
||||
"max" and results in the respective rank being optimized.}
|
||||
}
|
||||
\value{
|
||||
Named list pairing method names with their optimal weights.
|
||||
}
|
||||
\description{
|
||||
This function finds the optimal parameters to \code{\link[=ranking]{ranking()}} that result in the
|
||||
reference genes ranking particulary high.
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue