-
Notifications
You must be signed in to change notification settings - Fork 16
Remove derived state check #1059
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1059 +/- ##
==========================================
+ Coverage 93.27% 95.58% +2.30%
==========================================
Files 18 13 -5
Lines 6545 4753 -1792
Branches 1117 800 -317
==========================================
- Hits 6105 4543 -1562
+ Misses 299 159 -140
+ Partials 141 51 -90
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
jeromekelleher
left a comment
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.
Can we just remove check for > num alleles instead?
| ret = TSI_ERR_BAD_MUTATION_SITE; | ||
| goto out; | ||
| } | ||
| if (derived_state < 0 || derived_state >= (allele_t) self->sites.num_alleles[site]) { |
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.
Is this what we did in the old branch, or did we just check for derived state being > 0? I can see checking for < 0 having value. I can't find the branch now either - is it on my fork
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.
In your branch (https://github.com/jeromekelleher/tsinfer/blob/experimental-hmm/lib/tree_sequence_builder.c#L420) you have:
if (derived_state < 0) {
ret = TSI_ERR_BAD_MUTATION_DERIVED_STATE;
goto out;
}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.
Let's go with that then
d88a4b7 to
98c038d
Compare
|
Great - changed over to just remove the allele count check. |
As mentioned at jeromekelleher/sc2ts#554