View source: R/RCircosGenomicData.R
RCircos.Get.Paired.Points.Positions | R Documentation |
Calculate x and y coordinates for a genomic interval which needs two plot positions (start and end) such as link lines/ribbons, tiles, parallel lines. 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.
RCircos.Get.Paired.Points.Positions(genomic.data=NULL, genomic.columns=3, plot.type=c("link", "ribbon", "pLink", "polygon", "tile"))
genomic.data |
A data frame contains paired genomic positions (chromosome names, start and end positions). The data does not need to be sorted. |
genomic.columns |
Non-negative integer, total number of columns for genomic position (chromosome name, start and/or end position). |
plot.type |
Chraracter vector, either "link", "ribbon", "pLink", "polygon", or "tile". |
A data frame same as input but with two new columns for index of plot positions on circular line.
Henry Zhang
## Not run: library(RCircos) data(UCSC.HG19.Human.CytoBandIdeogram) data(RCircos.Link.Data) RCircos.Set.Core.Components(UCSC.HG19.Human.CytoBandIdeogram, chr.exclude=NULL, track.inside=10, tracks.outside=0) linkData<-RCircos.Get.Paired.Points.Positions(RCircos.Link.Data, genomic.columns=3, plot.type="link") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.