statgen / pheweb

A tool to build a website to browse hundreds or thousands of GWAS.
MIT License
158 stars 65 forks source link

Fold LZ y-axis #127

Closed pjvandehaar closed 3 years ago

pjvandehaar commented 4 years ago

Currently I turn pval=0 into pval=1e-100, resulting in image.

Worst option: use 1e-323 instead Better option: show pval=0 above a little margin Best option: add variable "fold_yaxis_at_20": true in panel layout which disallows custom ticks and y-axis-dragging

ttbek commented 3 years ago

Hmm, what about plotting zeros at y=-1? Unintuitive because that direction is less signifiant (down on the plot), but it may be easier to implement and would make them stand out. Or perhaps plot them on a separate track above.

pjvandehaar commented 3 years ago

Right now pval=0 is plotting as pval=1e-323. I think that's better than -1.

Sometime if I implement y-axis-folding (like the manhattan plot's y-axis), making the separate track for pval=0 associations will be easy.