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.