Font size is already at its best but thanks for the thought!
I will contact the author...
Cheers,
R
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
Looking at the Rcircos's code, it seems that the max number of labels depends from the default text size (see line 2526, and the definition of size.factor on line 2509). Have you tried to reduce the font size of labels?
In any case, I would suggest you to contact the author of Rcircos and report him the problem. By the way, you can tell him that there is a spelling typo in the error message.
Font size is already at its best but thanks for the thought!
I will contact the author...
Cheers,
R
Hi there,
Any news concerning this issue?
I have the same problem. I think there are useful options in the Circos software to modify scaling of individual chromosomes but not sure if this is available using the R package?
Is there any trick using the parameters or modifying some functions with hidden thresholds?
Thanks for any advice!
Roland
Hi there,
I faced the same problem. Got it working by reducing the default character width. I changed it using "rcircos.params$char.width". It automatically calculates the number of labels that can be fit.
Rachel
Hi :),
Same as Rachel here. I changed the maximun labels per chromosome by modifying parameters such as rcircos.params$base.per.unit, rcircos.params$char.width and rcircos.params$text.size. Dont forget to update the modifications with RCircos.Reset.Plot.Parameters(rcircos.params).
Dany
Log in to answer this question.
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.