setGRangesWidth {seqsetvis} | R Documentation |
Essentially works like GenomicRanges::resize() but repeated applications of center do not cause rounding induced drift.
setGRangesWidth(qgr, fwidth, anchor = c("center", "start")[1])
qgr |
GRanges |
fwidth |
numeric width to apply |
anchor |
extend from center of from start (strand sensitive) |
GRanges that parallels qgr with fwidth applied according to anchor.