-
Notifications
You must be signed in to change notification settings - Fork 27
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
Repeat subunit length not always correct #351
Labels
2.0-alpha
Issues related to VRS 2.0-alpha branch
bug
Something isn't working
priority:high
High priority
Comments
ehclark
added
bug
Something isn't working
2.0-alpha
Issues related to VRS 2.0-alpha branch
priority:high
High priority
labels
Feb 22, 2024
To identify this problem I wrote a script that generates random indels for a region and then validates the RLE if the translated allele contains one. Here is the script:
|
Merged
larrybabb
pushed a commit
that referenced
this issue
Feb 23, 2024
* Restore line that recomputes repeat subunit length * Added additional HGVS test case * Only recompute subunit length for ambiguous insertions or deletion/insertions * Added test case with ambiguous deletion * addresses #351 --------- Co-authored-by: Eugene Clark <ehclark@partners.org>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
2.0-alpha
Issues related to VRS 2.0-alpha branch
bug
Something isn't working
priority:high
High priority
It would appear that in the course of completing #342, an important line of code got removed related to correct handling for ambiguous insertions.
The line of code
repeat_subunit_length = math.gcd(len_extended_ref, len_extended_alt)
insrc/ga4gh/vrs/normalize.py
was added in 96d98cd, but then dropped in b51fb6c.Without this line, the
repeatSubunitLength
is not always correct.Example:
The text was updated successfully, but these errors were encountered: