Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Volcano is crashing when pvalue == 0 #28

Open
flegeai opened this issue Apr 19, 2022 · 0 comments
Open

Volcano is crashing when pvalue == 0 #28

flegeai opened this issue Apr 19, 2022 · 0 comments

Comments

@flegeai
Copy link
Collaborator

flegeai commented Apr 19, 2022

log10 transformation (l1223 in Asko.R) returns Inf when p-value are 0. A possible solution might be to add 1e-314 to the pvalue (or .Machine$double.xmin) each time the og10(pvalue) is calculated :
with(tglm, plot(tglm$logFC, -log10(tglm$PValue + .Machine$double.xmin), pch=16, cex=0.5, xlim=c(min(tglm$logFC)-0.5, max(tglm$logFC)+0.5), ylim=c(min(-log10(tglm$PValue + .Machine$double.xmin))-0.5, max(-log10(tglm$PValue + .Machine$double.xmin))+0.5), main=paste0("Volcano plot - ", contrast), xlab="Log2FoldChange", ylab="-log10(pvalue)"))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant