Closed pjvandehaar closed 3 years ago
For the second option do you mean having the two Manhattan plots sharing the same x-axis, with one on top, and the other flipped on the bottom? That could work.
Yep. Flipping the second upside down wouldn't work for 3+ phenotypes, so I'm not sure about that yet.
locuszoom.js allows adding any number of plots into the page by just appending them to the top/bottom. This, potentially, allows comparing any number of datasets. However, even such solution is not perfect, since the page is limited by screen size and can't fit more than 2-4 plots at the same time into visible area. Maybe it is not worth trying to implement the case 3+?
On the pheno page, add a button "compare to other phenotype". When clicked, show an autocomplete searchbox of phenotype names. When one is selected, show:
[easy] Both Manhattan plots, shorter. For traits that have a p-value better than 1e-40, it would really help to have the graph fold at 1e-10 (or wherever) so that other significant peaks are still visible.
[?] A neglog10pval-vs-neglog10pval plot. To quickly query for the data, maybe one of these subsets would work (& maybe query tooltips via api):