-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4d2c3f7
commit ae41f4d
Showing
8 changed files
with
31 additions
and
27 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 |
---|---|---|
@@ -1,21 +1,21 @@ | ||
import os | ||
|
||
import click | ||
from mikrokondo_tools.download import download as dwnld | ||
|
||
from mikrokondo_tools.download import download as dwnld | ||
|
||
options = {"gtdb-sketch": dwnld.Constants.sketch_url, | ||
options = {"gtdb-sketch": dwnld.Constants.sketch_url, | ||
"dehost": dwnld.Constants.dehost_idx, | ||
"kraken-std": dwnld.Constants.kraken2_std, | ||
"bakta-light": dwnld.Constants.bakta_light, | ||
"bakta-full": dwnld.Constants.bakta_full} | ||
|
||
@click.command(short_help="Download a database for mikrokondo", no_args_is_help=True) | ||
@click.option("-f", "--file", "file", type=click.Choice(options.keys()), required = True, | ||
@click.option("-f", "--file", "file", type=click.Choice(options.keys()), required = True, | ||
help="Pick an option from the list to download") | ||
@click.option("-o", "--output", "output", default=os.getcwd(), type=click.Path(), help="An existing directory to download files too.") | ||
def download(file, output): | ||
"""Download a external file for use in mikrokondo. This script only downloads the file and will not untar or unzip them. | ||
""" | ||
option = options[file] | ||
dwnld.download_file(output_dir=output, url=option) | ||
dwnld.download_file(output_dir=output, url=option) |
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