Skip to content

accept pathlib paths in intersection database lists - #436

Merged
daler merged 5 commits into
daler:v0.12.2rcfrom
rpinho:fix-pathlib-databases
Nov 28, 2026
Merged

daler merged 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 and others added 2 commits November 27, 2026 22: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
@rpinho

rpinho commented Nov 28, 2026

Copy link
Copy Markdown
Author

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

@daler
daler merged commit d6615eb into daler:v0.12.2rc Nov 28, 2026
7 checks passed
This was referenced Nov 28, 2026
@daler

daler commented Nov 29, 2026

Copy link
Copy Markdown
Owner

Thanks.

Continuing to use this thread to collectively talk about the five PRs you recently submitted...

In your updated PR messages you say a "a separate referee agent on a different model did it again". What are you saying? That it wrote the same code? And I guess that it was to some degree consistent with the original? Can you clarify that statement?

Also, all of your PRs appear to have the same session link listed. The link does not work. This same (broken) link is now in all of the commit messages as well. Is that intentional?

@rpinho

rpinho commented Nov 30, 2026

Copy link
Copy Markdown
Author

Thanks! It means a second AI agent, on a different model, got only the bug report and checked the bug again with its own repro. It did not get the code, the fix or the reasoning of the agent that found it. So it's a check that the bug is real, not that it wrote the same code.

The link is to my Claude Code session. That session is private, so it does not open for anyone else. It's added by the tool. I'll leave it out of new PRs and commits.

@rpinho

rpinho commented Dec 1, 2026

Copy link
Copy Markdown
Author

Thanks! I'd be glad to help in any way I can. What would be helpful for you? What's a hard problem?

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