Circos plot with link data using RCircos
0
0
Entering edit mode
20 months ago
Hasib ▴ 20

Hi. I'm trying to plot a circos diagram using the RCircos R package. I have SV (Structural variation) data with Chromosome1,Start1 and Chromosome2,Start2 columns. I want to plot a link track with lines or ribbons. This is my R script below:

library(RCircos)
RCircos.SV.data <- read.csv("C:/Users/hasib/Desktop/DU_001_RCircos.csv")
data(UCSC.HG38.Human.CytoBandIdeogram)
RCircos.Set.Core.Components(cyto.inf=UCSC.HG38.Human.CytoBandIdeogram, chr.exclude= NULL, num.inside=10, num.outside=0)

RCircos.Set.Plot.Area()
RCircos.Chromosome.Ideogram.Plot()
RCircos.Link.Plot(RCircos.SV.data, track.num=4,
                  by.chromosome=TRUE)
RCircos.Link.Plot(RCircos.SV.data, start.pos=0.75, is.sorted = TRUE,
                  by.chromosome=TRUE)

I have a couple of problems with this script. When I run the RCircos.Set.Core.Components() function, I get this error "Error in RCircos.Set.Core.Components(cyto.inf=UCSC.HG38.Human.CytoBandIdeogram, : unused arguments (num.inside = 10, num.outside = 0)". And when I run the plot commands at the end I get a warning message "Error in RCircos.Validate.Genomic.Data(genomic.data, "link", genomic.columns) : One or more genomic position in plot data is outside of chromosome length for chr1."

I am very new to this R package so I can't understand how to troubleshoot. Any help will be much appreciated.

Circos SV plot RCircos • 515 views
ADD COMMENT

Login before adding your answer.

Traffic: 1875 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6