teunbrand / ggnomics

A small project to add ggplot2 extensions
https://teunbrand.github.io/ggnomics/
Other
80 stars 4 forks source link

setup_ideograms doesn't work for chromosomes without centromeres #18

Closed teunbrand closed 5 years ago

teunbrand commented 5 years ago

For species with acrocentric chromosomes such as mouse, setup_ideograms throws many unhelpful warnings and doesn't work as intended.

teunbrand commented 5 years ago

The issue was that the setup_ideograms() simply assumed that there were centromeres in the data, which isn't true for acrocentric chromosomes. Function now checks if it can uberhaupt find centromeres first and then builds ideograms accordingly.