Skip to content

Commit

Permalink
format #238
Browse files Browse the repository at this point in the history
  • Loading branch information
zqfang committed Dec 21, 2023
1 parent 3b2594d commit 07cb12e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gseapy/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ def calc_pvalues(query, gene_sets, background=20000, **kwargs):
# (m + 0.5) * (k - x + 0.5)
# ) # Haldane-Anscombe correction, issue #132
bu = 0.5 # base up for Haldane-Anscombe correction. When bu=0, the result is exactly equal to Enrichr.
oddr = ((x + bu) * (bg - m - k + x + bu)) / ((m - x + bu) * (k - x + bu)) # issue #237
oddr = ((x + bu) * (bg - m - k + x + bu)) / (
(m - x + bu) * (k - x + bu)
) # issue #237
vals.append((s, pval, oddr, x, m, hits))

return zip(*vals)
Expand Down

0 comments on commit 07cb12e

Please sign in to comment.