plotMethProfile: Plots methylation profiles over a specific region

Description Usage Arguments Value Author(s) Examples

View source: R/plotMethProfile.R

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

1
plotMethProfile(rrbs, CpGs, group1, group2, CpGindex, plot_title = NaN)

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

plot_title

Optional title for the plot, overrides automatic title

Value

NULL, the function plots the profiles

Author(s)

Tom Mayo t.mayo@ed.ac.uk

Examples

1
2
3
4
# plot the 9th region in the Toy Data Set
data(rrbsDemo)
data(CpGsDemo)
plotMethProfile(rrbsDemo, CpGsDemo, 'H1-hESC', 'K562', 9)

M3D documentation built on April 29, 2020, 5:59 a.m.