-
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: make sourmash plot
labels/indices arguments make sense
#2790
Conversation
Codecov Report
@@ Coverage Diff @@
## latest #2790 +/- ##
=======================================
Coverage 86.26% 86.27%
=======================================
Files 130 130
Lines 14742 14750 +8
Branches 2621 2623 +2
=======================================
+ Hits 12717 12725 +8
Misses 1724 1724
Partials 301 301
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 |
sourmash plot
labels/indices arguments make sensesourmash plot
labels/indices arguments make sense
Ready for review @sourmash-bio/devs ! Note that the code coverage annotations in the diff are not correct. Not sure what's going on there - I'm going to try rerunning the tests. |
well, the code cov report is correct, even if the github diff display is not. 🤷 |
Arguments all work correctly for my data:
The way indices work make sense, but got me confused for a second, as it starts with 0, and i worked with a dataset named Sample_1 - Sample_10. Sample_1 is 0 in the indices, Sample_10 is 1 in the indices. Which makes sense from a computer perspective, but maybe less from a human perspective. |
…o refactor_plot_indices
thanks @AnneliektH ! b90f761 changes the indices to be 1-based. I'll merge when tests pass here! |
This PR rationalizes
sig plot
arguments for--labels
(show names) and--indices
(show numbers), and adds--no-labels
and--no-indices
, as follows. See #2667 for motivating bug.sourmash plot compare-demo
- labels on dendrogram, labels on matrix ✅ (FIXED)sourmash plot compare-demo --labels
- labels on both dendrogram and matrix ✅sourmash plot compare-demo --indices
- indices on both dendrogram and matrix ✅sourmash plot compare-demo --labels --indices
- labels on both ✅ (FIXED - labels override indices)New arguments from this PR:
sourmash plot compare-demo --no-labels
- indices on both ✅sourmash plot compare-demo --no-labels --no-indices
- no labels/indices on either ✅sourmash plot compare-demo --no-indices
- labels on both ✅The PR also simplifies some of the
plot
command code as well as code infig.py
.TODO:
Fixes #2667
Closes #2672