Skip to contents

Extend the coordinates of an intervals set to the right.

Usage

gintervals.extend_right(intervals, ext)

Arguments

intervals

An intervals set.

ext

number of bp to extend to the right.

Value

A new intervals set where the end coordinates are end + ext. Note that the intervals remain bounded by the chromosome boundaries.

Examples

gdb.init_examples()
gintervals(1, 50, 150) %>% gintervals.extend_right(20)
#>   chrom start end
#> 1  chr1    50 170