-
Notifications
You must be signed in to change notification settings - Fork 89
handle wes/wgs inheritance edge case #4440
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
babadd7
almost working
jklugherz 7115f81
updates
jklugherz fb1dc19
or_missing
jklugherz de664cd
fix sample tracking logic
jklugherz 8d9d25d
f string
jklugherz 877abbc
another pass
jklugherz fb88af9
minor things
jklugherz 773ba0c
less code
jklugherz 18d1d63
reuse as much code from _annotate_families_inheritance
jklugherz 4d58e03
rstructure passes inheritance field
jklugherz e1edb07
fix _family_has_valid_inheritance
jklugherz d806332
fix up test cases
jklugherz 3206941
oop
jklugherz ef5a4ec
typo
jklugherz 2d5d07f
typo 2
jklugherz f82c0fe
PR comments
jklugherz 0158391
comments
jklugherz 0b542e1
extra lines
jklugherz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Oops, something went wrong.
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.
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 feels incredibly similar to
_annotate_families_inheritance
. Rather than making a whole separate function for this, you could make a much more tightly scoped conditional helper to pass into_annotate_families_inheritance
, perhaps just for thelambda
function applied to thehl.enumerate(ht[entries_ht_field]).starmap(
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 implemented this, but because I don't want the single sample type families that come originally through the mito class code path to call the mito 'family_passes_inheritance_filter' function, I'm still passing a
family_passes_inheritance_filter
function to_filter_inheritance
instead of using python inheritance here. Do you know if there's a cleaner way to do this?