Skip to content

accept pathlib paths in intersection database lists - #436

Open
rpinho wants to merge 5 commits into
daler:v0.12.2rcfrom
rpinho:fix-pathlib-databases
Open

rpinho wants to merge 5 commits into
daler:v0.12.2rcfrom
rpinho:fix-pathlib-databases

Conversation

@rpinho

@rpinho rpinho commented Nov 18, 2026 •

Copy link
Copy Markdown

This fixes intersect() with a list of pathlib.Path files.

A list of strings works, but a list of Path objects is read as a list of intervals, so BEDTools gives an error. For example, a.intersect([Path('b.bed'), Path('c.bed')], filenames=True).

Now, Path objects in a list or tuple are strings first, so it's the same as a list of filenames. I added a test for this, with the bedtools intersect output.

I'm doing this with AI agents. A separate referee agent on a different model did it again, and it did not get the code of the agent that found it.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N

@daler
daler changed the base branch from master to v0.12.2rc November 28, 2026 01:38
@daler

daler commented Nov 28, 2026

Copy link
Copy Markdown
Owner

@rpinho would you please follow my lead on #434 and #435, editing the PR description and code comments to make them more human-readable? For here as well as #437 and #438.

@rpinho

rpinho commented Nov 28, 2026

Copy link
Copy Markdown
Author

Thanks! I've done this, here and on #437 and #438.

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.

2 participants