-
Notifications
You must be signed in to change notification settings - Fork 55
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
Remove redundant symbolic alt to so term hash #1075
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @nakib103, thanks for your PR! I put some concerns regarding your changes in the following comments.
Please tell me if you want to discuss how to best approach my suggestions. Thanks!
Co-authored-by: Nuno Agostinho <[email protected]>
@nuno-agostinho, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your PR, @nakib103! It's working as intended when testing StructuralVariantOverlap
with same_type=1
.
I am going to approve it, but I am concerned about moving some functions to ensembl-vep, as it makes ensembl-variation require VEP to properly test and may break other repos (web? REST?) that did not consider this requirement before.
Please check with the team if this if fine. If so, the PR is ready to be merged (after you check my small suggestions).
|
||
$abbrev = "DUP:TANDEM" if $abbrev eq "TDUP"; | ||
$abbrev = "CNV:TR" if $abbrev eq "TREP"; | ||
$abbrev =~ s/_/:/ if $abbrev =~ /^(INS|DEL)_ME$/; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is correct as of now, but is not future-proof in case other INS/DEL subtypes are supported in the future. Maybe we could change the INS/DEL to contain the ME, such as INS_ME_ALU
instead of INS_ALU
to be more precise.
This is a bit nitpick-y so maybe just ignore this comment. 😛
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noted! but I think that requires a bigger change and not within the scope/objective of this PR.
Co-authored-by: Nuno Agostinho <[email protected]>
Reported in Ensembl/VEP_plugins#710
Related Ensembl/ensembl-vep#1643
We have hash to convert from symbolic alternative allele from VCF to SO term in several places. It is best have it in one place to avoid errors.