Description Usage Arguments Details Value Examples
View source: R/TCC.simulation.R
This function calculates AUC (Area under the ROC curve) value from a TCC-class object for simulation study.
1 | calcAUCValue(tcc, t = 1)
|
tcc |
TCC-class object having values in both |
t |
numeric value (between 0 and 1) specifying the FPR (i.e., the
x-axis of ROC curve). AUC value is calculated from 0 to
|
This function is generally used after the estimateDE
function
that estimates p-values (and the derivatives such as the q-values
and the ranks) for individual genes based on the
statistical model for differential expression (DE) analysis.
In case of the simulation analysis, we know which genes are
DEGs or non-DEGs in advance and the information is stored in
the simulation$trueDEG
field of the TCC-class
object tcc
(i.e., tcc$simulation$trueDEG
).
The calcAUCValue
function calculates the AUC value
between the ranked gene list obtained by
the estimateDE
function and the truth
obtained by the simulateReadCounts
function.
A well-ranked gene list should have a high AUC value
(i.e., high sensitivity and specificity).
numeric scalar.
1 2 3 4 5 6 7 8 9 10 11 12 13 | # Analyzing a simulation data for comparing two groups
# (G1 vs. G2) with biological replicates.
# the first 200 genes are DEGs, where 180 are up-regulated in G1.
# The DE analysis is performed by an exact test in edgeR coupled
# with the DEGES/edgeR normalization factors.
tcc <- simulateReadCounts(Ngene = 1000, PDEG = 0.2,
DEG.assign = c(0.9, 0.1),
DEG.foldchange = c(4, 4),
replicates = c(3, 3))
tcc <- calcNormFactors(tcc, norm.method = "tmm", test.method = "edger",
iteration = 1, FDR = 0.1, floorPDEG = 0.05)
tcc <- estimateDE(tcc, test.method = "edger", FDR = 0.1)
calcAUCValue(tcc)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.