-
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] add --distance-matrix
option to sourmash compare
#2225
Conversation
…o fix_containment_direction
…o fix_containment_direction
Codecov Report
@@ Coverage Diff @@
## latest #2225 +/- ##
==========================================
+ Coverage 84.66% 92.04% +7.37%
==========================================
Files 131 100 -31
Lines 15512 11245 -4267
Branches 2210 2213 +3
==========================================
- Hits 13134 10351 -2783
+ Misses 2085 601 -1484
Partials 293 293
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
--distance-matrix
option to sourmash compare
--distance-matrix
option to sourmash compare
ready for review @sourmash-bio/devs ! |
did you confirm that the plot code needs no changes as marked as a todo item? |
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.
a couple of comments, otherwise LGTM.
also why is the docs build failing? (sry if its a dumb question bc i haven't been keeping up with sourmash CI) |
readthedocs is ALWAYS failing. Usually because I haven't pinned some version or something 😆 I'll take a look in a bit. |
unfortunately, it does indeed need changes. but I think I will do as a separate issue. (oddly, I thought I'd made this comment ...somewhere, but apparently forgot it. yay.) |
readthedocs builds failing issue: #2227 |
|
thanks for the review @taylorreiter - I'm going to wait to merge until #2215 is in! |
Co-authored-by: Tessa Pierce Ward <bluegenes@users.noreply.github.com>
…o add/distance_matrix
This PR addresses #2196 by adding a
--distance-matrix
flag tocompare
.This flag simply subtracts every value in the matrix from 1, converting it from a similarity matrix to a distance matrix. Easy peasy!
Along the way, I decided to clean up the compare tests in
tests/test_sourmash.py
, which makes for a somewhat messier diff, sorry :(. Specifically, Idef test_compare
at the beginning of the test fn;c
to test fixtureruntmp
;TODO:
Fixes #2196