Learn R Programming

methylKit (version 0.9.5)

getMethylationStats: get Methylation stats from methylRaw object

Description

The function returns basic statistics about per base/region. It can also plot a histogram of methylation values.

Usage

getMethylationStats(object,plot=FALSE,both.strands=FALSE,labels=TRUE,...)

Arguments

object

a methylRaw object

plot

plot a histogram of Methylation if TRUE (deafult:FALSE)

both.strands

do plots and stats for both strands seperately if TRUE (deafult:FALSE)

labels

should the bars of the histrogram have labels showing the percentage of values in each bin (default:TRUE)

...

options to be passed to hist function.

Value

a summary of Methylation statistics or plot a histogram of coverage

Examples

Run this code
# NOT RUN {
data(methylKit)

# gets coverage stats for the first sample in methylRawList.obj object
getMethylationStats(methylRawList.obj[[1]],plot=TRUE,both.strands=FALSE,labels=TRUE)
# }

Run the code above in your browser using DataLab