-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use new
load_file_as_signatures
function more broadly (#1059)
* deploy new load_signatures API a bit more broadly * pay attention to do_raise properly in load_signatures * explicitly test new sig rename behavior of failing on non-existent files * refactor sourmash_args.load_dbs_and_sigs * refactor traverse into load_database code * cleanup & simplify * comment strange code * replace load_signatures with new load fn in load_query_signatures * add query signature loading from databases for search, gather * add to compare * change sourmash index to use new loading function * change sourmash lca index to use new loading function * special case stdin sig loading * amend lca classify and summarize to use new load_file_as_signatures * add --from-file to sourmash index * adjust cli for index to fix tests * add --query-from-file to lca classify * add --query-from-file to lca summarize * add --from-file to lca index * upgrade multigather with --query-from-file * add comments to categorize * add top-level fn load_file_as_index * more properly test Index.select method on SBTs and LCAs * make _load_database an internal function, remove error/sys.exit output * update sig export to allow --md5 * rename some things to make activity of traverse_find_sigs clearer * fix typo in sourmash_args; add test for index --from-file * add tests for lca summarize --query-from-file * add tests for lca classify --query-from-file * rename test functions to remove traverse * trap certain errors * reset traverse_yield_all to false by default * add tests for --from-file and --force to lca index * test & fix --traverse-directories for lca summarize * fix index --traverse-dir -f * add multigather tests for --query-from-file * add --from-file to compare + tests * add test for compare --traverse-dir -f * fix and test bad ksize for lca db load * check failed gather load * add explicit test for no-such-file in load_file_as_index * add tests for sourmash sig describe on SBT, LCA, and dir * add a test for sig describe on stdin * remove errant comment * add load_file_as_signatures at top-level sourmash * whups, remove leftover test setup stuff * fix IOError vs OSError by choosing OSError * fix quotes expected in error message * detect file-like fp with 'read' as well * update command line docs * update documentation a bit * improve docstrings, defaults * make sure md5 selector is unique in collection
- Loading branch information
Showing
27 changed files
with
1,114 additions
and
212 deletions.
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
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.