summarize.regions-methods: summarize.regions-methods

Description Usage Arguments Value Examples

Description

Summarize DNA methylation information for which is present in the RnBSet object.

Usage

1
2
3
4
5
6
7
## S4 method for signature 'RnBSet'
summarize.regions(
  object,
  region.type,
  aggregation = rnb.getOption("region.aggregation"),
  overwrite = TRUE
)

Arguments

object

Dataset of interest.

region.type

Type of the region annotation for which the summarization will be performed or "strands" for summarizing the methylation values from both strands

aggregation

Operation to summarize the methylation values. Currently supported values are "mean", "median", "min", "max" and "coverage.weighted"

overwrite

If TRUE the existing region-level information for region.type is discarded

Value

object of the same class as the supplied one containing the summarized methylation information for the specified region types

Examples

1
2
3
4
library(RnBeads.hg19)
data(small.example.object)
rnb.set.summarized<-summarize.regions(rnb.set.example, "genes", overwrite=TRUE)
head(meth(rnb.set.summarized, type="genes", row.names=TRUE))

RnBeads documentation built on March 3, 2021, 2 a.m.