Description Usage Arguments Details Author(s) See Also Examples
plotBindingSites
takes several genomic regions (e.g. protein binding
sites), centers them such that the position 0 refers to the center of each region
and finally calculates the mean methylation of all regions for each given sample.
If several samples are given, the median of the samples' methylation values and
optionally other quantiles are plotted.
1 | plotBindingSites(object, regions, width, groups, quantiles, bandwidth, ...)
|
object |
An object of class |
regions |
Regions given a |
width |
The width of the genomic region that is plotted. Default value is the width of the largest given region. |
groups |
An optional factor defining two or more groups within the given object. The mean methylation is than plotted for each group separately. |
quantiles |
Other quantiles to be plotted besides the median. Default are the 25% and the 75% quantiles. |
bandwidth |
The bandwidth of the kernel smoother used for smoothing methylation values. Default value is 1/8 |
... |
Other graphical parameters passed to the |
First, all regions were expanded or shrinked to the given width
by adding
or removing base pairs symmetrically at both ends of the regions (not by scaling).
A new coordinate system is centered at the middle of the equally sized regions.
Next, the relative methylation values for each sample are averaged accross all
regions. That means, if there are several CpGs from different regions lying the
same position, the mean methylation value is calculated for that position. Then,
the median of these methylation values across all samples is calculated.
Optionally, other quantiles are calculated, too. The median of the methylation is
then plotted for each position after smoothing using a gaussian kernel with the
given bandwidth.
If the given regions correspond to binding sites of a certain protein, the plot can be used to discover whether the protein induces changes in the DNA methylation in the proximity of its binding sites.
Hans-Ulrich Klein
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.