Skip to content

v0.13.0rc - #440

Open
daler wants to merge 34 commits into
masterfrom
v0.13.0rc
Open

daler wants to merge 34 commits into
masterfrom
v0.13.0rc

Conversation

@daler

@daler daler commented Nov 28, 2026

Copy link
Copy Markdown
Owner

Maintenance

  • Remove support for Python 3.9 and 3.10 which are now end-of-life

Bug fixes

  • Intervals with coordinates larger than 2^24 could report incorrect overlaps in some cases. The intervals most affected by this would be very short ones at the ends of long chromosomes, and cases where overlap=1.0 was used. See Fix overlap precision for short intervals at large coordinates #433 for details.
    Any code using these methods should be re-run with an updated version of pybedtools and double-checked:

    • BedTool.all_hits()
    • BedTool.any_hits()
    • BedTool.count_hits()
    • IntervalFile.all_hits()
    • IntervalFile.any_hits()
    • IntervalFile.count_hits()
  • BedTool.tabix() and BedTool.bgzip() behaved incorrectly on some input types and input arg combinations, including empty indexes or double-compression. Fixed in Fix tabix/bgzip for presorted, gzipped, streamed, and BAM inputs #434.

  • BedTool.randomstats would raise a RuntimeError when using multiple processes and would not properly shut down the multiprocessing pools it created. These are both fixed by fix generator completion in randomstats #435.

  • When using methods like BedTool.intersect() that optionally take a list of inputs, if those inputs were Path objects they would not be treated as strings, causing an error and requiring them to be wrapped in str() first. Now they can be provided as-is. Fixed in accept pathlib paths in intersection database lists #436.

  • When iterating through a BAM, and a mate started at the first bp of a chromosome, it would be instead detected as having no mate. Fixed in preserve mate position 1 when iterating over BAM #437.

Improvements

diregoblin and others added 30 commits October 23, 2026 17:17
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N
Fix overlap precision for short intervals at large coordinates
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N
(useful for registering .gz files directly)
- raise error if .gz.gz file will be created
- better handling of streamed files
Fix tabix/bgzip for presorted, gzipped, streamed, and BAM inputs
fix generator completion in randomstats
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N
accept pathlib paths in intersection database lists
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N
preserve mate position 1 when iterating over BAM
@daler daler mentioned this pull request Nov 28, 2026

This branch has not been deployed

No deployments
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.

3 participants