-
Notifications
You must be signed in to change notification settings - Fork 80
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
[MRG] prevent ANI estimation when sketch size estimate may be inaccurate #2032
Conversation
Codecov Report
@@ Coverage Diff @@
## latest #2032 +/- ##
==========================================
+ Coverage 84.15% 91.65% +7.50%
==========================================
Files 129 98 -31
Lines 15087 10854 -4233
Branches 2119 2133 +14
==========================================
- Hits 12696 9948 -2748
+ Misses 2095 607 -1488
- Partials 296 299 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@ctb - Now that we zero/null out ANI when the size estimation may be inaccurate, should self x self be a special case where we return 1? Or still avoid returning ANI? |
On Thu, May 12, 2022 at 01:35:23PM -0700, Tessa Pierce Ward wrote:
@ctb - Now that we zero/null out ANI when the size estimation may be inaccurate, should self x self be a special case where we return 1? Or still avoid returning ANI?
I think avoid, is simplest.
|
agreed! Bit of an issue though -- e.g. -- https://github.com/sourmash-bio/sourmash/blob/latest/src/sourmash/compare.py#L34
|
On Thu, May 12, 2022 at 02:15:03PM -0700, Tessa Pierce Ward wrote:
> On Thu, May 12, 2022 at 01:35:23PM -0700, Tessa Pierce Ward wrote: @ctb - Now that we zero/null out ANI when the size estimation may be inaccurate, should self x self be a special case where we return 1? Or still avoid returning ANI?
> I think avoid, is simplest.
agreed! Bit of an issue though -- `compare` automatically populates diagonal with ones.
aieee
|
Just to put the answer somewhere on here..
To fix, I am just always letting self vs self be 1. I'm also using the |
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!
Using equations from @dkoslicki's #2031
Notes and concerns: