YinLiLin / CMplot

📊 Circular and Rectangular Manhattan Plot
502 stars 111 forks source link

Using different genome-wide threshold lines per trait #41

Open JavierMenRev opened 3 years ago

JavierMenRev commented 3 years ago

Thank you for the very useful function.

I was wondering if it would be possible to add different cut-offs lines for each trait in a circular Manhattan plot. I am actually using the CMplot function to plot different Manhattan plot based on a selection scan, and each trait (in this case population) has a different genome-wide significant value.

YinLiLin commented 3 years ago

Thank you for using CMplot. Sorry that it's not supportable at current version, but it's do really a good suggestion, I will add this function in the next update of CMplot.

YinLiLin commented 3 years ago

Hi, I just update CMplot for the issue you proposed about the parameter 'threshold' on GitHub, you can achieve it as following: threshold=list(c(1e-6,1e-4), NULL, 1e-5), each list contains a vector of thresholds for each trait, NULL means no threshold for corresponding trait, the update on R CRAN will be finished at the coming days, please source the online version and try again.