setGRangesWidth {seqsetvis}R Documentation

Return GRanges with single width

Description

Essentially works like GenomicRanges::resize() but repeated applications of center do not cause rounding induced drift.

Usage

setGRangesWidth(qgr, fwidth, anchor = c("center", "start")[1])

Arguments

qgr

GRanges

fwidth

numeric width to apply

anchor

extend from center of from start (strand sensitive)

Value

GRanges that parallels qgr with fwidth applied according to anchor.


[Package seqsetvis version 1.0.2 Index]