Skip to content
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

Merged
merged 3 commits into from
Sep 20, 2024
Merged

adding imprecise SVs #260

merged 3 commits into from
Sep 20, 2024

Conversation

pnrobinson
Copy link
Member

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

    def test_find_large_structural(
        self,
        fpath_test_genomic_interpretations: str,
        pp_vc_finder: PhenopacketVariantCoordinateFinder,
    ):
        fpath_pp = os.path.join(fpath_test_genomic_interpretations, 'chromosomal_deletion.ANKRD11.json')
        gi = read_genomic_interpretation_json(fpath_pp)

        vc = pp_vc_finder.find_coordinates(gi)
        assert vc is None

Copy link
Member

@ielis ielis left a 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.

@@ -242,6 +242,11 @@ class VariantClass(enum.Enum):
A breakend.
"""

TRANSLOCATION = 7
Copy link
Member

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
Copy link
Member

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.

Copy link
Member Author

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

Copy link
Member

@ielis ielis Sep 11, 2024

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?

Copy link
Member Author

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!)!

Copy link
Member

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.

@pnrobinson
Copy link
Member Author

@ielis Using TRANSLOCATION instead of BND seems good. Probably we can merge this?

@ielis ielis self-requested a review September 20, 2024 07:52
Copy link
Member

@ielis ielis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@ielis ielis merged commit 4e9f7ab into develop Sep 20, 2024
3 checks passed
@ielis ielis deleted the imprecise_sv branch September 20, 2024 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants