Zoom-out 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 multiplied by zoom
, and c
is the center of the interval. Note that the intervals remain bounded by the chromosome boundaries.
Examples
gdb.init_examples()
gintervals(1, 50, 150) %>% gintervals.zoom_out(2)
#> chrom start end
#> 1 chr1 0 200