##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (chr = "chr1", width = 1e+06)
{
require(GenomicRanges)
basic = cchunks(chr, width)
ans = GRanges(chr, IRanges(start = basic[-length(basic)],
end = basic[-1] - 1))
end(ans[length(ans)]) = end(ans[length(ans)]) + 1
ans
}
Run the code above in your browser using DataLab