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

Question about the coordinates in bubble output #50

Open
egoltsman opened this issue Jul 23, 2021 · 1 comment
Open

Question about the coordinates in bubble output #50

egoltsman opened this issue Jul 23, 2021 · 1 comment
Labels
enhancement New feature or request question Further information is requested

Comments

@egoltsman
Copy link

Dear Dr. Li,
When running minigraph --call, how are the positions of the "alleles" (bubble vertices) determined? I am assuming that the reference sequences are mapped to the graph, and that's how the coordinates are calculated. Is that correct?
Below, see an example where I queried the graph with the same sequence that was used as the reference sample during the graph construction phase (minigraph -xasm --call foo.gfa Bd21C1.fa)

Bd21C1  481920  481939  >s1     >s3     >s2:19:+:Bd21C1:481915:481941

Notice how the allele coordinate is different from the bubble position (presumably on the same sequence). Is that a mapping artifact?

Also, what happens when a sequence maps to the bubble in two or more places?

Thank you

@lh3 lh3 added enhancement New feature or request question Further information is requested labels May 9, 2022
@lh3
Copy link
Owner

lh3 commented May 9, 2022

Sorry for the very late response. The coordinate in the last column shows the closest minimizer positions which usually span larger distance than the bubble. When constructing graphs, minigraph tries to find the tightest bubble, but it is not doing that in the --call mode. This is why you see the discrepancy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants