Hi everyone. I am using Rcircos package to show genes mutated in a disease and the location of each on the chromosome.
I use the code exactly as example:
#RCIRCOS
library(RCircos)
data(UCSC.HG19.Human.CytoBandIdeogram)
cyto.info <- UCSC.HG19.Human.CytoBandIdeogram
num.inside <- 5
num.outside <- 0
chr.exclude <- "chrY"
RCircos.Set.Core.Componentscyto.info,chr.exclude, num.inside, num.outside)
RCircos.Set.Plot.Area()
RCircos.Chromosome.Ideogram.Plot()
genomic.data <- read.table(file.choose(),sep="\t",header=T)
RCircos.Gene.Connector.Plot(genomic.data, track.num=1, side="in")
RCircos.Gene.Name.Plot(genomic.data, name.col=4, track.num=2, side="in")
But there is a default maximum number of genes I can annotate to each chromosome. The function neglects all the extra values:
Maximum lables for chr1 is 16 . Extra ones are ignored. Maximum lables for chr7 is 10 . Extra ones are ignored. Maximum lables for chr11 is 9 . Extra ones are ignored. Maximum lables for chr12 is 9 . Extra ones are ignored. Maximum lables for chr16 is 6 . Extra ones are ignored. Maximum lables for chr17 is 5 . Extra ones are ignored. Maximum lables for chr19 is 4 . Extra ones are ignored. Maximum lables for chr20 is 4 . Extra ones are ignored. Maximum lables for chr21 is 3 . Extra ones are ignored.
Does anyone know how I can change these defaults?
Thank you.
Mehran
I made a get around by modifying the Gene connector and gene name functions:
Incorporate it into your code with the following:
mod.gene.connector(genomic.data = swapnames,track.num = 1,side = "out",ex = 100) mod.gene.label(gene.data = swapnames,name.col = 4,track.num = 2,side = "out",cex = .6,ex = 100)
Play around with "ex" until the spacing works.