Learn R Programming

M3D (version 1.6.2)

plotMethProfile: Plots methylation profiles over a specific region

Description

Plots a smoothed methylation profile for each of the two testing groups. Within each group, the mean of methylation level is taken, smoothed and plotted, along with the individual values.

Usage

plotMethProfile(rrbs, CpGs, group1, group2, CpGindex)

Arguments

rrbs
An rrbs object containing methylation and coverage data as created using the BiSeq pacakge
CpGs
A GRanges object with each row being a testing region
group1
The name of the first testing group
group2
The name of the second testing group
CpGindex
The index within the CpGs object of the region we are plotting

Value

NULL, the function plots the profiles

Examples

Run this code
# plot the 9th region in the Toy Data Set
data(rrbsDemo)
data(CpGsDemo)
plotMethProfile(rrbsDemo, CpGsDemo, 'H1-hESC', 'K562', 9)

Run the code above in your browser using DataLab