Repository navigation
Quad node summary names each member's zygosities like Trio/Duo (All Recessive too); one '--' for unfiltered members - #2934
Merged
Merged
Conversation
… and Duo, and All Recessive's branches read the same way; Any Affected's unfiltered members show '--' in the editor like Shared by all affected #2933
…d the fix removed the overrides rather than adding logic #2933
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Results and testing notes: #2933 (comment)
For #2933.
Mostly a deletion: the Quad node had its own
get_methodthat printed each member's zygosity set with Python'srepr, while Trio and Duo use the shared formatter. This removes the Quad override so every Quad mode goes through the same code as the other two families.Changes
analysis/models/nodes/sources/quad_node.py:SimpleQuadInheritanceis gone. It was aSimpleFamilyInheritancesubclass whose only job was the rawMother:{...} Father:set()summary.QuadRecessive,QuadDominant,QuadDenovoandQuadXLinkedRecessivenow inheritget_methodfromSimpleFamilyInheritance/XLinkedRecessiveInheritance, which callAbstractFamilyInheritance.get_zygosities_method. That method lists the proband first, then relatives in family order, uses zygosity display names, leaves out a member the mode doesn't filter, and applies each member's zygosity requirement (for exampleREF (called)), the same way the Trio and Duo do. The override was carried over unchanged by the Consolidate Duo / Trio / Quad node inheritance code onto one family-shape abstraction #2269 consolidation.analysis/models/nodes/family_inheritance.py:AllRecessiveInheritance.get_method: All Recessive's AR and XLR branches were also printed as raw sets, for all three families, through_branch_method. They now useget_zygosities_methodtoo, and_branch_methodis removed. Trio and Duo All Recessive summaries change in the same way, for exampleAR (Proband: HOM_ALT, Mother: HET, Father: HET) OR XLR (Proband: HOM_ALT, Mother: HET; chrX only)._zygosity_table_row: Any Affected wrote'—'for an unaffected member's cell, while Shared by all affected left it empty, which the Duo, Trio and Quad editors'memberZyg()/lookup()draw as--. Any Affected now leaves it empty as well, so both modes show--.The Q objects are unchanged. Only the summary text and one editor table cell change.
Tests
analysis/tests/test_quad_node.py:test_method_summary_names_each_members_zygosities: the exact summary for everyQuadInheritancemode on the affected-sibling quad. It fails on master.test_zygosity_table_unfiltered_member_is_blank: Any Affected and Shared by all affected both leave an unfiltered member's cell blank. It fails on master.--keepdb --parallel 4, own test DB) passes.