This function calculates new plot positions from genomic positions for gene labeling. In case there are too many genes in a genomic interval, the lables may become overlapped so that correct numbers and new plot positions are often needed to make the labels readable. If all labels cannot be plotted for the given genomic interval extra labels will be ignored. This function is for internal use only.
RCircos.Get.Gene.Label.Locations(genomic.data=NULL,
genomic.columns=3, is.sorted = TRUE)
A data frame with leading columns for chromosome name, start position, and/or end position.
Non-negative integer, total number of columns for genomic position in each row. Must be either 3 or 2.
Logic, whether the data is sorted by chromosome names and start positions.
All or subset of input data frame with a new column for plot positions.