changeFDR | R Documentation |
Takes a CpGannotated-class
object and a specified FDR > 0 and < 1, and re-indexes the object in order to call DMRs at the specified rate.
changeFDR(annot, FDR)
annot |
A |
FDR |
The desired individual CpG FDR, which will index the rate at which DMRs are called. |
The number of CpG sites called as significant by this function will set the post-smoothing threshold for DMR constituents in dmrcate
.
A re-indexed CpGannotated-class
object.
Tim Peters <t.peters@garvan.org.au>
library(GenomicRanges)
stats <- rt(1000, 2)
pvals <- pt(-abs(stats), 100)
fdrs <- p.adjust(2*pvals, "BH")
annotated <- GRanges(rep("chr1", 1000), IRanges(1:1000, 1:1000), stat = stats,
rawpval = pvals, diff = 0, ind.fdr = fdrs, is.sig = fdrs < 0.05)
names(annotated) <- paste0("CpG_", 1:1000)
myannotation <- new("CpGannotated", ranges=annotated)
changeFDR(myannotation, 0.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.