-
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] Enable moltypes other than DNA in LCA databases #1013
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1013 +/- ##
==========================================
+ Coverage 92.23% 92.31% +0.07%
==========================================
Files 72 72
Lines 5397 5413 +16
==========================================
+ Hits 4978 4997 +19
+ Misses 419 416 -3
Continue to review full report at Codecov.
|
@bluegenes could you review this, please? thanks! |
Yay! Tests passed! |
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.
Other than the ksize, looks good to me!
k=19 gives 19/3=6.33, which rounds down to a k=6. It's fine for testing, but might lead to a bit of confusion if folks look to the tests to figure out how to run something (or that might just be me).
tests/test_lca.py
Outdated
sig1 = sourmash.load_one_signature(sigfile1) | ||
sig2 = sourmash.load_one_signature(sigfile2) | ||
|
||
db = sourmash.lca.LCA_Database(ksize=19, scaled=100, moltype='protein') |
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.
thanks @bluegenes! I changed the ksize=19 to ksize=57 in 20d5cf5 and 59a6fb8 - will merge if / when the tests pass! |
This PR adds support for protein, dayhoff, and hp signatures to
LCA_Database
andsourmash lca index
. Things now work as expected on the command line, although the default scaled and ksize forsourmash lca index
don't really make sense and we might want to change them in some future version.Fixes #947
Also:
Tests to write:
make test
Did it pass the tests?make coverage
Is the new code covered?without a major version increment. Changing file formats also requires a
major version number increment.
changes were made?