Description Usage Arguments Details Value Examples
View source: R/Simulations_Functions.R
Given significant genes and a ground truth calculates the false discovery rate and false negative rate of the significance calls.
1 | bg__get_stats(sig, TP, ngenes)
|
sig |
vector of gene IDs/names which were called as significant by some method. |
TP |
vector of gene IDs/names which known to be positives (ground truth). |
ngenes |
number of total genes under consideration. |
False discovery rate (FDR) is the proportion of all genes considered significant which are not in the ground truth. False negative rate (FNR) is the proportion of all ground truth genes which are not considered significant.
vector of two elements: (FDR, FNR).
1 2 3 4 | # Calls <- c(1,3,5,8,10)
# Truth <- c(2,3,5,9)
# total=10
# stats <- bg__get_stats(Calls, Truth, total)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.