-
Notifications
You must be signed in to change notification settings - Fork 1
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
adding imprecise SVs #260
adding imprecise SVs #260
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 @pnrobinson,
thank you for pointing this out. The topic of breakends/translocations has not yet been addressed by GPSEA and it seems like there is a need.
The PR looks OK, there are few things that I'd like to clarify though. Please see below.
src/gpsea/model/_variant.py
Outdated
@@ -242,6 +242,11 @@ class VariantClass(enum.Enum): | |||
A breakend. | |||
""" | |||
|
|||
TRANSLOCATION = 7 |
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.
Isn't this redundant with BND
above?
@@ -528,6 +534,10 @@ def _map_structural_type_to_variant_class( | |||
return VariantClass.DEL | |||
elif structural_type.id in self._so_duplications: | |||
return VariantClass.DUP | |||
elif structural_type.id in self._so_translocations: | |||
return VariantClass.TRANSLOCATION |
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.
Depending on my comment in _variant.py
, this may need to be changed to VariantClass.BND
.
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.
I think BND is broader than just translocation ("BND can be used to represent reciprocal translocations or non-reciprocal break ends. ") but in any case, BND is a technical description rather than a biological one, and so I do not think we should actually keep BND as a Variant Category
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.
So do you recommend (effectively) renaming BND
to TRANSLOCATION
?
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.
That would work, yes, I am guessing it has not been used in any other context yet (if at al!)!
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.
It has not been used, and I kind of planned to use BND
as a translocation. Let's then keep TRANSLOCATION
and remove BND
.
@ielis Using TRANSLOCATION instead of BND seems good. Probably we can merge this? |
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.
Awesome!
Addresses #259
Not entirely clear to me what the testing is for functionality. For instance, why do we want this function to return None? Please document! :-0