Skip to contents

Will merge bins of y into x, taking the weighted mean of the binned signal in y of granges_signal_colname

Usage

integrate_segments(x, y, granges_signal_colname, drop_na = TRUE)

Arguments

x

granges object to integrate on

y

granges

granges_signal_colname

column containing cna signal in granges

drop_na

Logical. Drop bins with any NA values.

Value

x with averaged signal of y integrated over the bins