Given a ChrStrandData object (produced by the makeChrStrandData
function), this function plots a heat map of its data values along a
specified chromosome, optionally clustering samples and including an
idiogram.
plotChrMap( data, chr, start = 1, end, subset = NULL, cytoband, interval = ceiling((end-start)/500), strands = c('forward', 'reverse'), ... )
makeChrStrandData
function.data
to plot.chrHeatMap
function.grabChrMapProbes
. This function is used to plot ChrStrandData objects (the output of the
makeChrStrandData
function) as heatmaps arranged along genome
coordinates. The default heat map will plot the entire forward strand
for the chosen chromosome at the top of the figure, with an idiogram
and the reverse strand below it. To plot both strands overlaid, use
the strands='both'
argument. Probe or gene signals are averaged over a
window size controlled by interval
, such that the default
length of each heat map segment is 1/500 the total heat map
width. This can be varied as required to control the resolution of the
plot. This function uses both the start and end chromosomal locations
for each gene to plot heatmap positions, and as such will not work
with older AnnotationDbi packages.
See the related functions from this package for further plotting
arguments which may be passed to this function. In particular, see the
drawMapDendro
documentation for arguments used to control
sample clustering and plot axis font sizes, and chrHeatMap
for
arguments relating to the idiogram plot. Note that the plotting area
layout() and par() values are not reset on exit, so that
grabChrMapProbes
can be subsequently used on the output.
Idiogram plotting is currently only supported for data mapping to human, mouse and rat genomes. In principle this is extendable to any organism for which the UCSC genome browser includes cytoband information. Please contact the maintainer of this package for help in such cases.
drawMapDendro
, chrHeatMap
, makeChrStrandData
, grabChrMapProbes
data('demo')
plotChrMap(chrdata, '22', cytoband='q11', labRow=ALLs.chr22$mol.biol,
cexCol=0.8, cexCyto=1.2, srtCyto=0)
Run the code above in your browser using DataLab