Learn R Programming

enrichvs (version 0.0.3)

enrichment_factor: Enrichment factor calculation

Description

This program calculate enrichment factors of virtual screening

Usage

enrichment_factor(x, y, top=0.05, decreasing=TRUE)

Arguments

x
a vector for scores
y
a vector for labels
top
thresholed ratio of top-ranked compound
decreasing
TRUE if the compounds are ranked by decreasing score

Value

  • a value, EF

Examples

Run this code
x <- rnorm(1000)  # random scores for 1000 compounds
y <- c(rep(1,50), rep(0,950))     # activity labels for "x"
enrichment_factor(x, y, top=0.1)

data(dud_egfr)
enrichment_factor(dud_egfr[,1], dud_egfr[,2], decreasing=FALSE)

Run the code above in your browser using DataLab