Skip to contents

Zoom-in for an intervals set.

Usage

gintervals.zoom_in(intervals, zoom)

Arguments

intervals

An intervals set.

zoom

the zoom-in factor.

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