Extend the coordinates of an intervals set to the left.
Source:R/utils-intervals.R
gintervals.extend_left.Rd
Extend the coordinates of an intervals set to the left.
Value
A new intervals set where the start coordinates are start - ext
. Note that the intervals remain bounded by the chromosome boundaries.
Examples
gdb.init_examples()
gintervals(1, 50, 150) %>% gintervals.extend_left(20)
#> chrom start end
#> 1 chr1 30 150