## Views derived from coverage
x <- IRanges(start=c(1L, 9L, 4L, 1L, 5L, 10L),
width=c(5L, 6L, 3L, 4L, 3L, 3L))
cvg <- coverage(x)
cvg_views <- slice(cvg, lower=2)
viewApply(cvg_views, diff)
viewMins(cvg_views)
viewMaxs(cvg_views)
viewSums(cvg_views)
viewMeans(cvg_views)
viewWhichMins(cvg_views)
viewWhichMaxs(cvg_views)
viewRangeMins(cvg_views)
viewRangeMaxs(cvg_views)
Run the code above in your browser using DataLab