totajuliusd / topr

topr is a collection of plotting functions for visualizing and exploring genetic association results. Association results from multiple phenotypes can be viewed simultaneously, over the entire genome (Manhattan plot) or in the more detailed regional view.
Other
45 stars 13 forks source link

Coloured box missing on chr 22 when no chrX in data set #14

Closed amymariemason closed 1 year ago

amymariemason commented 1 year ago

Hello!

Lovely package, but I'm having an issue with manhattan plots when my dataset doesn't contain chrX. The highlight box on chr 22 doesn't appear - I suspect because it is missing a bound?

Can reproduce this with

manhattan(CD_UKBB[CD_UKBB$CHROM!="chrX",])

image

totajuliusd commented 1 year ago

Thank you Amy for pointing this out. I looks like this bug was introduced in the last version of topr. I will fix this within the next 1-2 days and release version 1.1.8 where this wont be a problem.

totajuliusd commented 1 year ago

This issue has been fixed in topr version 1.1.8 which is available on CRAN as of from today.