Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sampled translation #4017

Merged
merged 6 commits into from
Jul 11, 2023
Merged

Fix sampled translation #4017

merged 6 commits into from
Jul 11, 2023

Conversation

jltsiren
Copy link
Contributor

Changelog Entry

To be copied to the draft changelog by merger:

  • Haplotype sampling now copies the vg node to GFA segment translation correctly from the original graph.

Description

Graphs created using GBWTGraph::subgraph() did not copy the node-to-segment translation correctly from the supergraph. This affected the sampled graphs from vg haplotypes. When the translation was used, such as when extracting the GFA from the GBZ, segments got empty and/or incorrect names. This PR fixes the issue and resolves #4016.

There are also some developer tools for investigating the behavior of haplotype sampling at the level of an individual variant / subchain.

@jltsiren jltsiren merged commit a7b0f38 into master Jul 11, 2023
1 check passed
@jltsiren jltsiren deleted the fix-sampled-translation branch July 11, 2023 03:03
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.

vg haplotypes generate personalized graph with some nodes no id
2 participants