Learn R Programming

NetWeaver (version 0.0.6)

rc.get.coordinates: Get Coordinates

Description

Retrieve x and y coordinates in a track.

Usage

rc.get.trackCoordinates(track.id, Start, End, Chr=NULL, degree=NULL, trackThickness=NULL)
rc.get.coordinates(track.id, Pos, Chr=NULL, degree=NULL, innerSide=TRUE, bottomSide=TRUE)

Arguments

track.id

number of track from outermost.

Start, End

start/end position on a chromosome or since first chromosome. See Details.

Pos

a vector of positions on a chromosome or since first chromosome. See Details.

Chr

a chromosome id. See Details.

degree

the angle of the arc rotation, overwrites Start, End, Pos and Chr.

trackThickness

thickness (height) of a track.

innerSide

whether to compute coordinates on the inner side of a track. Outer side coordinates will be returned if FALSE. Used for circular layout.

bottomSide

whether to compute coordinates on the bottom side of a track. Upper side coordinates will be returned if FALSE. Used for landscape layout.

Value

A list of x and y coordinates.

Details

If Chr is NULL, Start, End and Pos will be considered as cumulative positions since first chromosome.

See Also

rc.initialize, rc.reset.params

Examples

Run this code
# NOT RUN {
#This is not to be run alone. Please see tutorial vignette("netweaver") for usage.
# }

Run the code above in your browser using DataLab