Calculate the overlap interval.

get_overlap(inter_result)

Arguments

inter_result

Result tibble from valr::bed_intersect, contains (start.x, end.x) and (start.y, end.y)

Value

A tibble contains the interval(start, end) of overlap region

Examples

get_overlap(valr::bed_intersect(a, b))
#> Error in eval(expr, envir, enclos): object 'b' not found