Learn R Programming

RCircos (version 1.2.2)

RCircos.Get.Single.Point.Positions: Calculate Plot Positions for Genomic Data

Description

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

Run this code
# NOT RUN {
library(RCircos)
data(RCircos.Heatmap.Data)
dat <- RCircos.Get.Single.Point.Positions(RCircos.Heatmap.Data)
# }

Run the code above in your browser using DataLab