centerGRangesAtMax: Centers query GRanges at maximum signal in prof_dt.

Description Usage Arguments Value Examples

View source: R/functions_signal_operations.R

Description

Centers query GRanges at maximum signal in prof_dt.

Usage

1
centerGRangesAtMax(prof_dt, qgr, x_ = "x", y_ = "y", by_ = "id", width = 1)

Arguments

prof_dt

a GRanges or data.table as returned by ssvFetch*.

qgr

the GRanges used to query ssvFetch* as the qgr argument.

x_

positional variable. Should almost always be the default, "x".

y_

the signal value variable. Likely the default value of "y" but could be "y_norm" if append_ynorm was applied to data.

by_

region identifier variable. Should almost always be the default, "id".

width

Desired width of final regions. Default is 1.

Value

a GRanges with same mcols as qgr that has been centered based on signal in prof_dt and with regions of specified width.

Examples

1
2

seqsetvis documentation built on Nov. 8, 2020, 5:57 p.m.