Skip to content

No secret paths#4795

Merged
adamnovak merged 12 commits intomasterfrom
no-secret-paths
Jan 12, 2026
Merged

No secret paths#4795
adamnovak merged 12 commits intomasterfrom
no-secret-paths

Conversation

@adamnovak
Copy link
Member

Changelog Entry

To be copied to the draft changelog by merger:

  • Operations on GBZ graphs no longer hide haplotype paths from the PathHandleGraph iteration functions. vg attempts to request the appropriate path senses when haplotype paths should be ignored for a particular operation.

Description

In addition to some Makefile revisions (to stop clobbering our own libhandlegraph with the bundled one in libvgio, and to treat the build_graph test binary more like the other binaries), this has the code in gbwtgraph to stop hiding haplotype paths and haplotype steps, and documentation changes in libhandlegraph to stop specifying that one should do that.

It also has changes in libhandlegraph to let you query multiple path senses at once more easily.

Finally, this goes through all the places where we query for paths, and tries to fix the ones that oughtn't include haplotype paths to specifically not request them. This part was mostly done by Anthropic Claude, and despite a fair amount of badgering it never really gained a great understanding of what was going on, so I had to do a lot of manual figuring in at least one place and it's possible others are still wrong.

This does pass the command-line tests when I run it, so we must be mostly pulling the right paths in the right places.

@adamnovak adamnovak marked this pull request as ready for review January 9, 2026 20:21
@adamnovak adamnovak merged commit 1d93a3e into master Jan 12, 2026
2 checks passed
@faithokamoto faithokamoto deleted the no-secret-paths branch January 12, 2026 17:32
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