-
Notifications
You must be signed in to change notification settings - Fork 79
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 max_containment to MinHash
class.
#1346
Merged
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
ba21268
add max_containment to MinHash
ctb 74e8e07
add max_containment to SourmashSignature
ctb 7e1bdca
add initial scaffolding for max_containment
ctb 8f73291
compute actual max containment
ctb 402ca77
interim comments
ctb 21d6fdb
ok, the basic logic should be laid out
ctb 787764a
fix typo per tessa
ctb 7d2dae3
more typo
ctb bed7110
cleanup and fixes
ctb e3b0f61
change implementation away from **kwargs
ctb 9ffa5ca
update lca_db.search for max_containment
ctb 3a22806
Merge branch 'latest' of github.com:dib-lab/sourmash into add/max_con…
ctb ae92d08
implement sourmash search --max-containment
ctb 61e9888
add lca database for --max-containment test
ctb 30df58d
fix some issues with identifiers in the LCA code
ctb f014cca
Merge branch 'latest' of github.com:dib-lab/sourmash into add/max_con…
ctb ba79e9c
fix duplicate test name
ctb d8d3657
test basic search, no SBT
ctb fc499d5
fix previously hidden test
ctb 77f5407
Merge branch 'latest' into add/max_containment
ctb 4810b00
Merge branch 'latest' of github.com:dib-lab/sourmash into add/max_con…
ctb c8cb293
Merge branch 'add/max_containment' of github.com:dib-lab/sourmash int…
ctb f6296ab
fix typo
ctb 90ffc98
d'oh
ctb 3fd9942
fix max_containment; remove results caching, add assert
ctb 8703e89
remove unused whitespace
ctb 34c1146
check for error if both --containment and --max-containment
ctb 0e230ef
containment can only be calculated on scaled sigs
ctb 1fa8cb7
test SBT.search requires threshold
ctb 5827df6
add --max-containment to compare, along with tests
ctb 813064b
unmask overwritten test & fix
ctb a583783
remove duplicated test function
ctb e5c67d8
test compare --max-containment
ctb bbd3898
add test for both --containment and --max-containment
ctb 8e63268
produce friendlier error message in search
ctb 356e934
grammar fix in comments
ctb cbd2503
improve CSV output for search, marginally
ctb a64714c
Update src/sourmash/commands.py
ctb c717184
Update src/sourmash/minhash.py
ctb 18b4f78
fix test, add tests for empty sigs
ctb 108748a
--best-only on SBTs is currently incompatible with containment
ctb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
It would be nice to modify
similarity
tocontainment
/max_containment
for csv output. Thoughts?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.
semantic versioning prevents us from removing the
similarity
header before 5.0. we could add new columns, I 'spose. I don't like the idea that column headers change depending on command line arguments, though. Not sure how to think about it.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.
(suggest we punt this to a new issue and discuss it there.)
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.
punted to #1390