Aggregate methylation levels and coverage values accross a set of regions

# S4 method for DsNOMe
regionAggregation(
  .object,
  regGr,
  type,
  methAggrFun = "weightedMean",
  dropEmpty = TRUE
)

Arguments

.object

DsNOMe object

regGr

GRanges object containing regions to summarize

type

character string specifying a name for the region type

methAggrFun

aggregation function for methylation levels. Currently mean, median and weightedMean (default) are supported.

dropEmpty

discard all regions with no observed methylation levels

Value

a new DsNOMe object with aggregated regions

Details

Coverage values are aggregated by summing up coverage values for individual GCs while the aggregation function for methylation levels is specified by the methAggrFun parameter.

Author

Fabian Mueller