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

Migrate to SciPy 1.12.0. #110

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions scoary/methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -1264,15 +1264,15 @@ def PairWiseComparisons(nestedlist):
Pbest = "Pworst"
Pworst = "Pbest"
try:
resultscontainer[currentgene][Pbest] = ss.binom_test(
resultscontainer[currentgene][Pbest] = ss.binomtest(
resultscontainer[currentgene]["max_propairs"],
resultscontainer[currentgene]["max_total_pairs"],
0.5)
resultscontainer[currentgene][Pworst] = ss.binom_test(
0.5).pvalue
resultscontainer[currentgene][Pworst] = ss.binomtest(
resultscontainer[currentgene]["max_total_pairs"] -
resultscontainer[currentgene]["max_antipairs"],
resultscontainer[currentgene]["max_total_pairs"],
0.5)
0.5).pvalue
resultscontainer[currentgene]["Plowest"] = min(
resultscontainer[currentgene]["Pbest"],
resultscontainer[currentgene]["Pworst"])
Expand All @@ -1281,7 +1281,7 @@ def PairWiseComparisons(nestedlist):
resultscontainer[currentgene]["Pworst"])
except TypeError:
sys.exit("There was a problem using "
"scipy.stats.binom_test. Ensure you have a recent "
"scipy.stats.binomtest. Ensure you have a recent "
"distribution of SciPy installed.")

# Loop can break early if filtration includes non-pairwise
Expand Down