-
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.
Merge branch 'latest' into rename_covered_bp
- Loading branch information
Showing
12 changed files
with
702 additions
and
60 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
"""collect manifest information across many files""" | ||
|
||
usage=""" | ||
sourmash sig collect <filenames> -o all.sqlmf | ||
This will collect manifests from across many files and save the information | ||
into a standalone manifest database. | ||
By default, 'sig collect' requires a pre-existing manifest for collections; | ||
this prevents potentially slow manifest rebuilding. You | ||
can turn this check off with '--no-require-manifest'. | ||
""" | ||
|
||
from sourmash.cli.utils import (add_moltype_args, add_ksize_arg, | ||
add_picklist_args, add_pattern_args) | ||
|
||
|
||
def subparser(subparsers): | ||
subparser = subparsers.add_parser('collect', usage=usage) | ||
subparser.add_argument('locations', nargs='*', | ||
help='locations of input signatures') | ||
subparser.add_argument('-o', '--output', help='manifest output file', | ||
required=True) | ||
subparser.add_argument( | ||
'-q', '--quiet', action='store_true', | ||
help='suppress non-error output' | ||
) | ||
subparser.add_argument( | ||
'-d', '--debug', action='store_true', | ||
help='provide debugging output' | ||
) | ||
subparser.add_argument( | ||
'--from-file', | ||
help='a text file containing a list of files to load signatures from' | ||
) | ||
subparser.add_argument( | ||
'--no-require-manifest', | ||
help='do not require a manifest; generate dynamically if needed', | ||
action='store_true' | ||
) | ||
subparser.add_argument( | ||
'-F', '--manifest-format', | ||
help="format of manifest output file; default is 'csv')", | ||
default='sql', | ||
choices=['csv', 'sql'], | ||
) | ||
|
||
subparser.add_argument('--merge-previous', action='store_true', | ||
help='merge new manifests into existing') | ||
subparser.add_argument('--abspath', | ||
help="convert all locations to absolute paths", | ||
action='store_true') | ||
|
||
add_ksize_arg(subparser, 31) | ||
add_moltype_args(subparser) | ||
|
||
|
||
def main(args): | ||
import sourmash | ||
return sourmash.sig.__main__.collect(args) |
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.