ideograb {ideogram}R Documentation

ideograb

Description

ideograb reads the position of the graphics pointer when the (first) mouse button is pressed. ideogram also reads a second position of the graphics pointer after another mouse button press. The two points selected are used to define a diagonal line from which a bounding box will be constructed. It then retrieves the gene identifiers of the points that lie within the bounding box.

Usage

ideograb(ideo, show.box = TRUE, brush = NULL, ...)

Arguments

ideo point coordinates and cooresponding gene identifiers from an ideogram function call
show.box boolean. if TRUE, a box is drawn showing the selected region
brush a color to highlight the points within the selected region
... additional plotting paramters passed to points to modify the points within the selected region

Details

Coordinates can be passed in a plotting structure (a list with x, y, and labels components). Typically this is generated from a call to ideogram.

The points selected are used to define the top-left and bottom-right locations or the bottom-left and top-right locations for bounding box. These locations can be selected in any order. A character vector of the labels of all the points that lie within the selected region is returned.

Value

A character vector of gene identifiers

Author(s)

Karl Dykema <karl.dykema@vai.org>

See Also

ideogram

Examples

data(ideogramExample)
ip <- ideogram(colo.eset@exprs[,1],ucsf.chr,chr="1")
if(interactive()) ideograb(ip,brush="red")

[Package ideogram version 1.4.0 Index]