Zoom-in for an intervals set.
Value
A new intervals set where the coordinates are c + round(l/2)
and c - round(l/2)
where l
is the length of the interval divided by zoom
, and c
is the center of the interval.
Examples
gdb.init_examples()
gintervals(1, 0, 200) %>% gintervals.zoom_in(2)
#> chrom start end
#> 1 chr1 50 150