Calculate x and y coordinates of one genomic position for each row of a genomic data set. As a set of points for a circlar line is held in the RCircos session, we only need the index of the point for each genomic position.
Usage
RCircos.Get.Single.Point.Positions(genomic.data=NULL, genomic.columns=3)
Arguments
- genomic.data
A data frame contains genomic positions (at least two or three columns for chromosome names, start and/or end positions).
- genomic.columns
Non-negative integer, total number of columns for genomic position (chromosome name, start and/or end position).
Value
A data frame same as input but with a new column for index of plot positions on a circular line.
Examples
if (FALSE) { # \dontrun{
library(RCircos)
data(RCircos.Heatmap.Data)
dat <- RCircos.Get.Single.Point.Positions(RCircos.Heatmap.Data)
} # }