Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Circos plot Q: How to make the chromosome labels appear clearer? #19

Closed
jlee110 opened this issue May 30, 2019 · 2 comments
Closed

Circos plot Q: How to make the chromosome labels appear clearer? #19

jlee110 opened this issue May 30, 2019 · 2 comments

Comments

@jlee110
Copy link

jlee110 commented May 30, 2019

In my circos plot, some of the chromosome labels are sort of hidden due to the numerous intrachromosomal fusions, what would you suggest for making the chromosome label stick out?

Is it possible to make the lines connecting the gene label to the chromosomal band longer, or thinner to not hide the chromosome label? Perhaps a different color font for the chromosomal label?

So far I got this parameter to work:
circos.genomicLabels(geneLabels, labels.column=4, side="outside", cex=fontSize,connection_height = convert_height(20, "mm"))

But adding the other parameters give me 50 warnings

circos.genomicLabels(geneLabels, labels.column=4, side="outside", cex=fontSize,connection_height = convert_height(20, "mm"),line_col = par(col="gray"), line_lwd = par(lwd=0.8), line_lty = par(lty=4))

@suhrig
Copy link
Owner

suhrig commented May 30, 2019

Drop the par(...= and the warnings should disappear:

circos.genomicLabels(geneLabels, labels.column=4, side="outside", cex=fontSize,connection_height = convert_height(20, "mm"),line_col="gray", line_lwd=0.8, line_lty=4)

What par(...= means is that the function will use the default value, which can be set with par.

@jlee110
Copy link
Author

jlee110 commented May 30, 2019

I'm an R-noob, code-noob, basically a caveman. Thank you!!!!!!!!!!!!!!! 👍

I got exactly what I wanted, thanks to you :)
circos.genomicLabels(geneLabels, labels.column=4, side="outside", cex=fontSize,connection_height = convert_height(20, "mm"),line_col = c("#DBBE4A"), line_lwd = 0.8, line_lty = 4)

Have a great day!

@jlee110 jlee110 closed this as completed May 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants