Learn R Programming

MethTargetedNGS (version 1.4.0)

methHeatmap: Generate Heatmap of the given methylation data.

Description

Heatmaps are the way of visualizing methylation statuses of a sample. This function allows user to visualize methylation statuses at each CpG site for every sequence available in pool.

Usage

methHeatmap(Sample, yl = "", plot = TRUE, title = "")

Arguments

Sample
Matrix from methAlign. Also matrix where columns represents Cytosine of CpG sites and rows represents sequences.
yl
Ylabel for heatmap
plot
Boolean. If plot == FALSE, function will return a matrix of 1s and 0s. If plot == TRUE, function will create a heatmap as well as return a matrix of 1s and 0s
title
Title of the heatmap

Value

Heatmap

See Also

methAlign

Examples

Run this code
healthy = system.file("extdata", "Healthy.fasta", package = "MethTargetedNGS")
reference = system.file("extdata", "Reference.fasta", package = "MethTargetedNGS")
healthy = methAlign(healthy,reference)
hHeatmap = methHeatmap(healthy,plot=TRUE)

Run the code above in your browser using DataLab