-
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.
[MRG] implement a simple ZipFileLinearIndex class (#1349)
* implement a simple ZipFileLinearIndex class * fix load_file_as_signatures * add tests for zipfile searching etc. * add sig describe test for loading from zipfile * fix load_file_as_index to support zipfiles * rename force; add docstrings * add an IndexOfIndexes class * rename to MultiIndex * switch to using MultiIndex for loading from a directory * some more MultiIndex tests * add test of MultiIndex.signatures * add docstring for MultiIndex * stop special-casing SIGLISTs * fix test to match more informative error message * switch to using LinearIndex.load for stdin, too * add __len__ to MultiIndex * add check_csv to check for appropriate filename loading info * add comment * fix databases load * more tests needed * add tests for incompatible signatures * add filter to LinearIndex and MultiIndex * clean up sourmash_args some more * shift loading over to Index classes * refactor, fix tests * switch to a list of loader functions * comments, docstrings, and tests passing * update to use f strings throughout sourmash_args.py * add docstrings * update comments * remove unnecessary changes * revert to original test * remove unneeded comment * clean up a bit * debugging update * better exception raising and capture for signature parsing * more specific error message * revert change in favor of creating new issue * add commentary => TODO * add tests for MultiIndex.load_from_directory; fix traverse code * switch lca summarize over to usig MultiIndex * switch to using MultiIndex in categorize * remove LoadSingleSignatures * test errors in lca database loading * remove unneeded categorize code * add testme info * verified that this was tested * remove testme comments * add tests for MultiIndex.load_from_file_list * refactor select, add scaled/num/abund * more work * catch ValueError from db.select * update debug print to sys.stder * fix scaled check for LCA database * add debug_literal * break things when filter returns empty Index * fix scaled check for SBT * fix a few tests * fix LCA database ksize message & test * flag for removal * add 'containment' to 'select' * fix remaining tests * update comments * remove all the cruft, yay * added 'is_database' flag for nicer UX * remove overly broad exception catching * add docstrings * document downsampling foo * update for additional test files * update ZipFileLinearIndex for new selector criteria * remove leftover code fragment * add zipfile API tests; use .location * update docs to include zipfile collections * add zipfile loading tests * add __len__ to ZipFileLinearIndex and test MultiIndex load of zipfile * Update doc/command-line.md Co-authored-by: Tessa Pierce <bluegenes@users.noreply.github.com> * add test of incompatible sig search for zipfile Co-authored-by: Tessa Pierce <bluegenes@users.noreply.github.com>
- Loading branch information
Showing
14 changed files
with
396 additions
and
49 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
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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.