average_value: weighted average by width

Description Usage Arguments Value

View source: R/parp1.R

Description

given a GRanges object and an mcols column, a weighted average of the mcols column will be calculated where the weight will be the fractional number of bases indicated by the width of each entry in the GRanges object.

Usage

1
average_value(granges, use_column = "mcols.signal")

Arguments

granges

the GRanges object

use_column

which column from mcols has the signal to average

Value

numeric


rmflight/fmcorrelationbreastcaparp1 documentation built on May 27, 2019, 9:31 a.m.