View source: R/hit_enrich_curve.R
HitEnrich | R Documentation |
Plot hit enrichment curves based on scores from multiple algorithms. Actual activities are required. Additionally plot the ideal hit enrichment curve that would result under perfect scoring, and the hit enrichment curve that would result under random scoring. Optionally, simultaneous confidence bands may also be requested.
HitEnrich(
S.df,
labels = NULL,
y,
x.max = NULL,
log = TRUE,
title = "",
conf = FALSE,
conf.level = 0.95,
method = "sup-t",
plus = TRUE,
band.frac = NULL
)
S.df |
Data frame where variables are numeric scores from different algorithms. Rows represent unique compounds. |
labels |
Character vector of labels for the different algorithms in
|
y |
Numeric vector of activity values. Activity values must be either 0
(inactive/undesirable) or 1 (active/desirable); no other values are
accepted. Compounds are assumed to be in the same order as in |
x.max |
Integer, the maximum number of tests allowed on the x axis. |
log |
Logical. |
title |
Character string |
conf |
Logical. |
conf.level |
Numeric, confidence coefficient |
method |
Character indicates the method used to obtain confidence bands.
The default is |
plus |
Logical. |
band.frac |
Numeric vector of fractions tested to be used in obtaining
confidence bands. Vector should be no longer than |
By default, x.max
is length(y)
, so that hit enrichment
curves are obtained for all observable fractions, i.e., fractions of
(1:length(y))/length(y)
. By default, confidence bands are evaluated
based on a smaller grid of 40 fractions. This smaller grid is evenly spaced
on either the original grid of (1:length(y))/length(y)
, or the log
scale of the original grid.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.