Skip to content
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

Issue151 use json for genome status file #157

Merged
merged 15 commits into from
Jul 6, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions src/nplinker/genomics/antismash/antismash_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@
from nplinker.utils import list_dirs
from nplinker.utils import list_files


logger = LogConfig.getLogger(__name__)

# urls to be given to download antismash data
ANTISMASH_DB_PAGE_URL = 'https://antismash-db.secondarymetabolites.org/output/{}/'
ANTISMASH_DB_DOWNLOAD_URL = 'https://antismash-db.secondarymetabolites.org/output/{}/{}'

# The antiSMASH DBV2 is for the availability of the old version, better to keep it.
ANTISMASH_DBV2_PAGE_URL = 'https://antismash-dbv2.secondarymetabolites.org/output/{}/'
ANTISMASH_DBV2_DOWNLOAD_URL = 'https://antismash-dbv2.secondarymetabolites.org/output/{}/{}'


Expand All @@ -29,8 +27,8 @@ def download_and_extract_antismash_data(antismash_id: str,

Args:
antismash_id(str): The id used to download BGC archive from antiSMASH database.
If the id is versioned (e.g., "GCF_004339725.1") please be sure to
specify the version as well.
If the id is versioned (e.g., "GCF_004339725.1") please be sure to
specify the version as well.
download_root(str | PathLike): Path to the directory to place downloaded archive in.
extract_root(str | PathLike): Path to the directory data files will be extracted to.
Note that an `antismash` directory will be created in the specified `extract_root` if
Expand Down
7 changes: 2 additions & 5 deletions src/nplinker/pairedomics/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import logging
from .podp_antismash_downloader import download_antismash_data
from .podp_antismash_downloader import podp_download_and_extract_antismash_data


logging.getLogger(__name__).addHandler(logging.NullHandler())

__all__ = [
"download_antismash_data",
"podp_download_and_extract_antismash_data"
]
__all__ = ["podp_download_and_extract_antismash_data"]
Loading