# load the methylation data
data(methylationDataList)
# load the DMRs in CG context
data(DMRsNoiseFilterCG)
# the coordinates of the area to be plotted
largeRegion <- GRanges(seqnames = Rle("Chr3"), ranges = IRanges(1,1E5))
# compute overlaps distribution
hotspots <- computeOverlapProfile(DMRsNoiseFilterCG, largeRegion,
windowSize = 10000, binary = FALSE)
Run the code above in your browser using DataLab