# NOT RUN {
# read the bed file as GRanges object
bed.file=system.file("extdata", "cpgi.hg18.bed.txt", package = "methylKit")
bed.gr=readBed(location=bed.file,remove.unsual=TRUE)
# get flanks on the either side
bed.flanks=getFlanks(bed.gr,flank=2000,clean=TRUE)
# }
Run the code above in your browser using DataLab