rc.get.coordinates {NetWeaver}R Documentation

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.

Details

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

Value

A list of x and y coordinates.

Author(s)

Minghui Wang <m.h.wang@live.com>

See Also

rc.initialize, rc.reset.params

Examples

#This is not to be run alone. Please see tutorial vignette("netweaver") for usage.

[Package NetWeaver version 0.0.6 Index]