Resize GenomicRanges upstream and or downstream. From https://support.bioconductor.org/p/78652/
Value
Returns a GenomicRanges::GRanges() object
Examples
Extend(x = granges(atac_small), upstream = 100, downstream = 100)
#> Warning: '*' ranges were treated as '+'
#> GRanges object with 100 ranges and 0 metadata columns:
#> seqnames ranges strand
#> <Rle> <IRanges> <Rle>
#> [1] chr1 9672-10760 *
#> [2] chr1 180612-181278 *
#> [3] chr1 181100-181707 *
#> [4] chr1 191083-192184 *
#> [5] chr1 267476-268561 *
#> ... ... ... ...
#> [96] chr1 1291464-1292573 *
#> [97] chr1 1299684-1300770 *
#> [98] chr1 1301589-1302643 *
#> [99] chr1 1305098-1306209 *
#> [100] chr1 1307620-1308838 *
#> -------
#> seqinfo: 1 sequence from an unspecified genome; no seqlengths