Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
review

Co-authored-by: bthirion <[email protected]>
  • Loading branch information
lionelkusch and bthirion authored Jan 20, 2025
1 parent a3773af commit f47917a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hidimstat/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def _bhy_threshold(pvals, reshaping_function=None, fdr=0.1):
if selected_index <= n_features:
return pvals_sorted[selected_index]
else:
# no threshold, all the pvalue are positif
# no threshold, all the p-values are positive
return -1.0


Expand Down
2 changes: 1 addition & 1 deletion test/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_fdr_threshold():


def test_fdr_threshold_extreme_values():
"test the extreme cases"
"""test FDR computation for extreme numerical value of the p-values"""
p_values = np.ones(100)
e_values = 1 / p_values

Expand Down

0 comments on commit f47917a

Please sign in to comment.