draw.heatmap: Draw a coverage heatmap

Description Usage Arguments Details Author(s) See Also Examples

Description

This method draws a heatmap of the coverage values using the matrix that is passed as an argument to the method

Usage

1
2
3
4
  ## S4 method for signature 'matrix'
draw.heatmap(data,outfile, color,...)
  ## S4 method for signature 'list'
draw.heatmap(data,outfile, color,...)

Arguments

data

Matrix or list of matrices generated by the function cov.matrix

outfile

URL of the .png file where the plot will be created

color

Graphical argument to set the color of the plot

...

Additional parameters

Details

This function is used to create a coverage heatmap of the matrix/list of matrices generated using the cov.matrix function

Author(s)

Ernesto Lowy <ernestolowy@gmail.com>

See Also

cov.matrix

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
  ## draw the heatmap for a coverate matrix that was previously calculated 
  # using the cov.matrix function for a BAM file containing ChIP-seq data 
  # from a H3K36me3 histone modification experiment
  data(DF_H3K36me3)
  draw.heatmap(DF_H3K36me3,outfile="testHeatmap.png")
  
  ## Now, draw two heatmaps for 2 different coverage matrices previously 
  # obtained for the same H3K36me3 histone modification experiment and its
  # respective 'control' file
  data(DF_H3K36me3_control)
  
  # create a list with the two matrices
  input_l=list(DF_H3K36me3,DF_H3K36me3_control)
  draw.heatmap(input_l,outfile="testHeatmap.png")

CoverageView documentation built on Nov. 8, 2020, 7:52 p.m.