Skip to content

Fix fisher_exact docstring example and release 1.5.2 - #212

Merged
endrebak merged 2 commits into
masterfrom
fix-fisher-exact-example
Oct 27, 2026
Merged

endrebak merged 2 commits into
masterfrom
fix-fisher-exact-example

Conversation

@endrebak

@endrebak endrebak commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Ports pyranges/pyranges0#411 by @Mohit-Ak, who found and fixed this: the fisher_exact docstring example passed TN before FN, but the signature is fisher_exact(tp, fp, fn, tn), so it showed the odds ratio and p-values for the wrong table.

Also releases 1.5.2:

  • bump the version in pyproject.toml
  • add the fix, credited to @Mohit-Ak, to CHANGELOG.txt and the README changelog
  • add the 1.5.1 entry that was missing from the README changelog

The release commit has a Co-authored-by trailer for @Mohit-Ak, so a squash merge keeps the credit.

Full tox suite passes locally (py312).

🤖 Generated with Claude Code

endrebak and others added 2 commits October 27, 2026 12:23
The example passed TN before FN, but the signature is
fisher_exact(tp, fp, fn, tn). Port of pyranges/pyranges0#411.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YSQEBfFhfhK1o1XRsbHtcP
Bump the version and add the fisher_exact docstring fix to CHANGELOG.txt
and the README changelog. The fix was found and made by Mohit Arvind
Khakharia (@Mohit-Ak) in pyranges/pyranges0#411; this branch ports it.
The README changelog also gains the missing 1.5.1 entry.

Co-authored-by: Mohit Arvind Khakharia <6740115+Mohit-Ak@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@endrebak endrebak changed the title Fix argument order in fisher_exact docstring example Fix fisher_exact docstring example and release 1.5.2 Oct 27, 2026
@endrebak
endrebak merged commit add4636 into master Oct 27, 2026
4 checks passed
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

Successfully merging this pull request may close these issues.

1 participant