Usage
identifySigDMR(detectResult, p.adjust.method = "fdr", pValueTh = 0.01, fdrTh = pValueTh, diffTh = 1, minProbeNum = 1, maxGap = 2000, minGap=100, oppositeMethylation = FALSE, topNum = NULL)
Arguments
detectResult
A GRanges object or a data.frame with "PROBEID", "CHROMOSOME" and "POSITION" columns
p.adjust.method
p.value FDR adjust method
pValueTh
The threshold of p.value
fdrTh
The threshold of FDR (adjusted p.value)
diffTh
The threshold of difference between two conditions
minProbeNum
Minimum number of probes in each DMR
maxGap
The maximum gap allowed between two nearby probes to be considered within a same DMR
minGap
If two nearby DMRs have a gap less than or equal to the minGap, they will be merged as a single DMR
oppositeMethylation
Whether require the averaged methylation levels in the DMR are in opposite direction
topNum
Whether only returns the top number of probes (ranked by p.value)