Skip to content

Reuse PackedGraph path steps when clip-vg flips a node - #96

Draft
yeeus wants to merge 1 commit into
ComparativeGenomicsToolkit:masterfrom
yeeus:reuse-packed-path-steps-on-flips
Draft

yeeus wants to merge 1 commit into
ComparativeGenomicsToolkit:masterfrom
yeeus:reuse-packed-path-steps-on-flips

Conversation

@yeeus

@yeeus yeeus commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Use the PackedGraph path-step transfer primitive from vgteam/libbdsg#251 after the replacement node and its edges have been created. If the primitive is unavailable in an older dependency build, the graph uses another backend, or the path is circular, use the existing per-step rewrite. The benefit applies to orientation changes that qualify for this path. The frozen chr21 pipeline already used it. No standalone chr21 RSS improvement is attributed to it.

Built clip-vg both with and without the new method. On a graph with a reverse-oriented reference node, both builds validated and produced identical decoded GFA records. A separate PackedGraph test covered repeated and reverse steps, circular fallback, destruction of the old node, and serialization round-trip. The fast path becomes available when hal2vg builds with an updated libbdsg.

The integrated chr21 comparison covered 1,319 human haplotypes and passed 37/37 final-output comparisons against each of the paired control and the historical outputs in scope. See ComparativeGenomicsToolkit/cactus#2096 for test coverage and benchmark context.

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