Extend genome ranges in a strand-aware fashion.
Arguments
- ranges
Genomic regions given as GRanges, data.frame, or list. See
help("genomic-ranges-like")
for details on format and coordinate systems. Required attributes:chr
,start
,end
: genomic position
- upstream
Number of bases to extend each range upstream (negative to shrink width)
- downstream
Number of bases to extend each range downstream (negative to shrink width)
- metadata_cols
Optional list of metadata columns to require & extract
- chromosome_sizes
(optional) Size of chromosomes as a genomic-ranges object
- zero_based_coords
If true, coordinates start and 0 and the end coordinate is not included in the range. If false, coordinates start at 1 and the end coordinate is included in the range