fixGRangesWidth {seqsetvis}R Documentation

Derive a new GRanges of consistent width based on quantile.

Description

Width is selected by rounding up to the lowest multiple of win_size greater than min_quantile quantile of widths.

Usage

fixGRangesWidth(qgr, min_quantile = 0.75, win_size = 1,
  anchor = c("center", "start")[1])

Arguments

qgr

GRanges. To be resized.

min_quantile

numeric [0,1]. The quantile level final width must be greater than. default is 0.75

win_size

integer > 0. final width must be a multiple of win_size.

anchor

extend from center of from start (strand sensitive)

Value

a GRanges derived from qgr (length and order match). All ranges are of same width and centered on old. Width is at least minimum quantile and a multiple of win_size


[Package seqsetvis version 1.0.2 Index]