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

highlighting telomeres (adding custom symbols to chromosome ends) #140

Open
JWDebler opened this issue May 9, 2023 · 3 comments
Open

highlighting telomeres (adding custom symbols to chromosome ends) #140

JWDebler opened this issue May 9, 2023 · 3 comments
Assignees

Comments

@JWDebler
Copy link

JWDebler commented May 9, 2023

Hi,
I recently saw a graph in a paper that looked like a KaryploteR image where the authors added something to all the chromosome ends that had telomeres to show how complete their sequence was. I was wondering if there already is such an option and I just can't find it or if that could be implemented. The problem is that telomeres are so short in relation to the rest of the genome that just adding them as tracks like genes would be too small to be visible.
Also, while I'm here, is there a way to add an x-axis label as shown below on top of the graph instead of numbering the bases for each chromosome individually?
Thanks a lot!
Cheers

image

@JWDebler
Copy link
Author

JWDebler commented May 9, 2023

I think I got it, using a combination of kpRect and kpPoints :-)

@bernatgel bernatgel self-assigned this May 9, 2023
@bernatgel
Copy link
Owner

Hi @JWDebler

This plot was probably not created with karyoploteR. There are no options to create these telomere marks, but I would have suggested building your own with kpPoint and kpSegments, but it seems you have already figured that out.

Regarding the scale bar for the whole plot, it is currently not possible. It would be possible to hack it together with kpSegments and kpText (and reuse maybe part of the code of kpAddBaseNumbers). I have thought about adding something similar before (and maybe adding a few additional formatting options) so I will add it to my future enhancements list, but it might take a while.

If you really need it, I would suggest you to try plotting it using the existing functions and ask me if you have any problem.

Hope this helps

Bernat

@JWDebler
Copy link
Author

Thanks for that. I've used kpRect, I'll check out kpSegments.

The scale bar would be nice, but in the short term I'll just add it in Inkscape :-)
Would be great for a future release though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants