-
Notifications
You must be signed in to change notification settings - Fork 70
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
Add unweighted_rf_distance (symmetric_distance) function and tests #2643
base: main
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2643 +/- ##
==========================================
- Coverage 89.83% 80.82% -9.02%
==========================================
Files 30 29 -1
Lines 28613 27798 -815
Branches 5587 1316 -4271
==========================================
- Hits 25705 22467 -3238
- Misses 1654 5235 +3581
+ Partials 1254 96 -1158
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 24 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
c7d7ce2
to
375a316
Compare
@Billyzhang1229 The docs error here is fixed in |
@benjeffery Thank you so much! I think I could do the rebase part. But I have question about the coverage report, the report shows some decrease for the files that I didn't change, do I need to worry about it? |
codecov has been pretty unreliable in reporting numbers. The comments on the PR are usually good. I'll double check this before merge, so don't worry about it. |
375a316
to
bc340d7
Compare
This looks great @Billyzhang1229, thanks! I think the main thing we need here is a bit more testing to reassure ourselves that what we're computing is the same as what'd get using existing methods. How about a small simulation based test like:
Other than that, we just need to think about the naming and be a bit more precise about the documentation - but I think myself and @hyanwong can help with that. @hyanwong - thoughts about function naming here? |
@jeromekelleher Thanks for the feedback! I agree that additional testing would be beneficial to ensure the accuracy of our computations. NamingI am currently using I'm not sure which one is better for naming. So I just wrapped the def unweighted_rf_distance(self, other):
return self.symmetric_distance(other) In the future, we may also want to consider adding a If there is anything else you would like me to add or change, please let me know. |
I think I don't think We will need to be quite precise about what we're computing here in the documentation, but I can do that in a follow-on commit. |
I agree with Jerome. |
In fact, if we want to, we could allow the |
I don't see much point in this - it's forward compatible by not having the argument and we don't need it for this PR. |
bc340d7
to
16b0767
Compare
Add more tests using other existing package
16b0767
to
9894a2f
Compare
Sorry that we haven't got around to merging this yet @Billyzhang1229. It would be great to get this in, and I see you've added extra tests. Do you know how this performs in the case of trees with polytomies? There's an interesting publication at https://onlinelibrary.wiley.com/doi/full/10.1111/cla.12540 that sounds like it might give some useful pointers in this case. |
Add Unweighted Robinson–Foulds Distance (symmetric difference of two trees) function with tests
See also: