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: double mutation in codon when moving up the tree #1235

Merged
merged 1 commit into from
Aug 9, 2023

Conversation

rneher
Copy link
Member

@rneher rneher commented Aug 9, 2023

when a samples shared all privated nuc mutations with a parent, we move up the tree and subtract the shared mutations. However, in rare cases when there are multiple mutations in a codon, not all amino acid mutations are shared. hence we still need to handle left over mutations also in the case where we just move up the tree, not only when we move down the tree.

This change actually harmonized cases and reduced code duplication.

when a samples shared all privated nuc mutations with a parent, we move
up the tree and subtract the shared mutations. However, in rare cases
when there are multiple mutations in a codon, not all amino acid mutations
are shared. hence we still need to handle left over mutations also
in the case where we just move up the tree, not only when we move down
the tree.

This change actually harmonized cases and reduced code duplication.
@vercel
Copy link

vercel bot commented Aug 9, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nextclade ✅ Ready (Inspect) Visit Preview Aug 9, 2023 9:21am

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