stephenturner / qqman

An R package for creating Q-Q and manhattan plots from GWAS results
http://cran.r-project.org/web/packages/qqman/
GNU General Public License v3.0
154 stars 92 forks source link

Error due to very very small and/or NA P values #60

Closed zjuwhw closed 6 years ago

zjuwhw commented 6 years ago
library(qqman)
gwasResults$P[1] = 1e-400
manhattan(gwasResults)

Error message:

Error in plot.window(...) : need finite 'ylim' values
stephenturner commented 6 years ago

Not sure the best way to handle this - I don't think you want the y-axis to go all the way up to 400. I might suggest some pre-processing to cap extraordinarily low p-values to something reasonable, not sure how "accurate" p-values from parametric distributions are that are so close to zero.