-
Notifications
You must be signed in to change notification settings - Fork 72
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
Ls missingness #2515
Ls missingness #2515
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2515 +/- ##
=======================================
Coverage 89.83% 89.83%
=======================================
Files 30 30
Lines 28624 28624
Branches 5590 5590
=======================================
Hits 25713 25713
Misses 1655 1655
Partials 1256 1256
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report in Codecov by Sentry.
|
ec791fd
to
c548679
Compare
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.
Looks good to me, just needs a rebase and squash
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.
LGTM, couple of nits.
@@ -246,6 +250,8 @@ def stupid_compress_dict(self): | |||
u = tree.parent(u) | |||
self.N[self.T_index[u]] += 1 | |||
|
|||
print(self.T) |
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.
Stray print?
else: | ||
query_is_hom = np.logical_not(query_is_het) | ||
|
||
EQUAL_BOTH_HOM = np.logical_and( |
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.
All caps like this is usually reserved for constants (https://peps.python.org/pep-0008/#constants) is there a convention here that I'm not seeing?
Let's update this and merge |
7dbfb6b
to
a505138
Compare
Can you squash the commits again please @astheeggeggs? Something has gone a bit haywire, there should only be one commit by the end. (I'm happy to do it, if you prefer) |
Yeah, would you mind? I've merged the various conflicts and have checked all the tests I wrote are passing. Seems fine, but my rebasing skills are terrible. |
Added forwards backwards testing and now include missingness appropriately added missingness to diploid LS added some fixes for flake errors added missingness to diploid viterbi changed test_genotype_matching_fb.py remove stray print removed caps for bool EQUAL_BOTH_HOM etc Removed caps for EQUAL_BOTH_HOM etc in Viterbi removed unused imported function
979e14d
to
4926a25
Compare
done - should merge automatically now |
Missingness added to forwards-backwards diploid LiS testing
Added missingness, by including an emission probability of 1 for all missing characters in the query sequence.