mirror of
https://github.com/johrpan/ubigen.git
synced 2025-10-26 19:57:24 +01:00
Improve documentation for rank_genes()
This commit is contained in:
parent
7828f9c71e
commit
a9643ca6dc
2 changed files with 30 additions and 0 deletions
12
R/ranking.R
12
R/ranking.R
|
|
@ -5,6 +5,18 @@
|
||||||
#'
|
#'
|
||||||
#' @param data The input data to use. This should either be the result of a
|
#' @param data The input data to use. This should either be the result of a
|
||||||
#' previous call to this function or the return value of [analyze()].
|
#' previous call to this function or the return value of [analyze()].
|
||||||
|
#' @param cross_sample_metric Name of the column that should be used as the
|
||||||
|
#' metric measuring the expression across samples.
|
||||||
|
#' @param cross_sample_weight Relative weight that should be assigned to the
|
||||||
|
#' cross sample metric.
|
||||||
|
#' @param level_metric Name of the column that should be used to represent
|
||||||
|
#' overall expression levels.
|
||||||
|
#' @param level_weight Relative weight that should be assigned to the level
|
||||||
|
#' metric.
|
||||||
|
#' @param variation_metric Name of the column that should be used as the metric
|
||||||
|
#' representing variation in expression.
|
||||||
|
#' @param variation_weight Relative weight that should be assigned to the
|
||||||
|
#' variation metric.
|
||||||
#'
|
#'
|
||||||
#' @return A `data.table` with gene data as well as the scores, ranks and
|
#' @return A `data.table` with gene data as well as the scores, ranks and
|
||||||
#' percentiles for each gene.
|
#' percentiles for each gene.
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,24 @@ rank_genes(
|
||||||
\arguments{
|
\arguments{
|
||||||
\item{data}{The input data to use. This should either be the result of a
|
\item{data}{The input data to use. This should either be the result of a
|
||||||
previous call to this function or the return value of \code{\link[=analyze]{analyze()}}.}
|
previous call to this function or the return value of \code{\link[=analyze]{analyze()}}.}
|
||||||
|
|
||||||
|
\item{cross_sample_metric}{Name of the column that should be used as the
|
||||||
|
metric measuring the expression across samples.}
|
||||||
|
|
||||||
|
\item{cross_sample_weight}{Relative weight that should be assigned to the
|
||||||
|
cross sample metric.}
|
||||||
|
|
||||||
|
\item{level_metric}{Name of the column that should be used to represent
|
||||||
|
overall expression levels.}
|
||||||
|
|
||||||
|
\item{level_weight}{Relative weight that should be assigned to the level
|
||||||
|
metric.}
|
||||||
|
|
||||||
|
\item{variation_metric}{Name of the column that should be used as the metric
|
||||||
|
representing variation in expression.}
|
||||||
|
|
||||||
|
\item{variation_weight}{Relative weight that should be assigned to the
|
||||||
|
variation metric.}
|
||||||
}
|
}
|
||||||
\value{
|
\value{
|
||||||
A \code{data.table} with gene data as well as the scores, ranks and
|
A \code{data.table} with gene data as well as the scores, ranks and
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue