-
Notifications
You must be signed in to change notification settings - Fork 4
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
Current issues with lovd_getVariantInfo()
#581
Comments
Regarding the handling of variants such as Our best option is to:
|
The function above could be named |
Now adding a stub to sort-of support the allele notation (combined variants). Leaving the issue open for now, but the worst is handled. |
If the supported suffix will get any more complex, perhaps it's time to then pull the suffix handling into a separate function. Especially for insertions, both |
There are some issues with the current version of
lovd_getVariantInfo()
as in theimprove/getVariantInfo
branch. The below variants should be HGVS but are not regarded as such.c.361A>T^362C>G
and related, e.g.,c.361^362C>G
c.3789_3797delins[NG_001212.4:g.6520_6528]
NG is not allowed, NC is.
g.6128749_6128787delins[NC_000022.11:17178886_17178924]
It has been clarified that this is not HGVS. We could have this fixed in
lovd_fixHGVS()
, though.g.(32366565_32380940)_(32380940_32382772)dup
I believe this should be accepted? (center positions are the same)
g.(33038290_33229611)_(33229611_?)del
(idem)
We also need to decide how (if?) to handle variants like:
g.[57365055C>T];[57365055C>T]
g.[57365118C>G;57373613_57373615del]
g.[57367503C>T(;)57373597C>T]
g.112036755_112036756ins[112036782_112036805;112036797C>T]
1122–1457 del 326 bp
m.1000_100del
o
prefixFor insertions; there are currently too many pieces of code that handle variant suffixes, with complex
if()
s and regular expressions.lovd_getVariantInfo()
doesn't nearly handle everything thatlovd_fixHGVS()
is handling. It would make much more sense to use the power oflovd_fixHGVS()
also forlovd_getVariantInfo()
, so it will ALWAYS provide a proper suggestion instead of sometimes. It would be better to suggest one fix for the entire suffix, so not per piece.lovd_fixHGVS()
can then be rewritten just to copy the suggestion so the logic stays in one place.lovd_getVariantInfo()
andlovd_fixHGVS()
now have extensive code handling possible suffixes. That new function will then parse the suffix and return an object; either a length object, sequence object, variant object, or an array of objects, etc. The rest of the code will then check if that object fits the variant, etc.The text was updated successfully, but these errors were encountered: