-
Notifications
You must be signed in to change notification settings - Fork 136
ancestral, translate: Error when reference gene length is indivisible by 3 #1901
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
victorlin
commented
Oct 7, 2025
2 tasks
The check is applicable to all load_features calls, not just for VCF inputs in augur translate. Moved into a validation function to be improved in future commits. The calculation has been updated to use the length of feat.location.
b6d4069 to
64bf925
Compare
victorlin
commented
Oct 10, 2025
Member
Author
|
Added a list of review threads in the PR description: |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1901 +/- ##
==========================================
+ Coverage 74.08% 74.13% +0.05%
==========================================
Files 82 82
Lines 8968 8978 +10
Branches 1822 1825 +3
==========================================
+ Hits 6644 6656 +12
+ Misses 2019 2018 -1
+ Partials 305 304 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
4 tasks
7c34a61 to
ed742f7
Compare
3 tasks
ed742f7 to
ea8c7e4
Compare
… instead of warning and padding with N to translate to 'X'. A protein coding sequence with 1 or 2 extra bases indicates a problem with the data. It doesn't make sense to end the translation with 'X' which implies 3 bases.
This matches the equivalent error message in Auspice.¹ ¹ https://github.com/nextstrain/auspice/blob/22124f8eacec2c46f39806aa95472581f65fc25a/src/util/entropyCreateStateFromJsons.ts#L315
ea8c7e4 to
8490941
Compare
joverlee521
approved these changes
Oct 21, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note
Based on #1907
Description of proposed changes
… instead of warning and padding with N to translate to 'X'. A protein coding sequence with 1 or 2 extra bases indicates a problem with the data. It doesn't make sense to end the translation with 'X' which implies 3 bases.
Related issue(s)
Closes #1895
Review threads
load_features()? yesChecklist