fixGRangesWidth: Derive a new GRanges of consistent width based on quantile.

Description Usage Arguments Value

View source: R/functions_fetch_signal.R

Description

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

Usage

1
2
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


jrboyd/seqsetvis documentation built on Oct. 14, 2018, 3:04 p.m.