Skip to content

Commit

Permalink
Remove df=0 check in .pval_filter_extreme
Browse files Browse the repository at this point in the history
Not needed; the previous call to pchisq should handle it if the
user doesn't include df as an argument.
  • Loading branch information
amstilp committed Mar 21, 2024
1 parent a732627 commit 90038d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ setMethod(".annotateAssoc",
.pchisq_filter_extreme <- function(...) {
args <- list(...)
pval = pchisq(...)
if ("df" %in% names(args) && args$df > 0) {
if (args$df > 0) {
pval[pval < .Machine$double.xmin] = .Machine$double.xmin
}
return(pval)
Expand Down

0 comments on commit 90038d6

Please sign in to comment.