grabChrMapProbes: Identify the probes or genes plotted using plotChrMap

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Allows the user to interactively select regions of the plotChrMap heatmap, identifying all the probes or genes plotted in those regions.

Usage

1
grabChrMapProbes( plotmap )

Arguments

plotmap

The output of the plotChrMap function.

Details

This function takes the output of the plotChrMap function and uses it to identify the probes or genes responsible for the signals plotted on the plotChrMap heatmap. It asks the user to select two points on either side of the heatmap bands of interest (specifically, boundary for inclusion of a given band is its left-hand edge), and returns a vector of probe/gene identifiers. This can be passed directly to AnnotationDbi::mget to yield gene symbols and other annotation.

Note that the plotting area layout() and par() values are not reset on exit, so that this function can be reused as many times as is desired.

Value

A character vector of probe/gene identifiers. If multiple identifiers have been averaged into a single band these identifiers will be string concatenated, separated by semicolons. The start, end and interval arguments to plotChrMap can be used in such cases to plot the data at a higher resolution, splitting such loci into separate bands.

Author(s)

Tim F Rayner

See Also

plotChrMap

Examples

1
2
3
4
5
data('demo')
plotmap <- plotChrMap(chrdata, '22', cytoband='q11.23')
probes <- grabChrMapProbes(plotmap)
library('hgu95av2.db')
genes <- mget(probes, hgu95av2SYMBOL, ifnotfound=NA)

ChromHeatMap documentation built on Nov. 8, 2020, 7:33 p.m.