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

Update SARG db link in crude_db_harmonisation #64

Merged
merged 1 commit into from
Aug 19, 2024
Merged
Changes from all 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
11 changes: 2 additions & 9 deletions db_harmonisation/crude_db_harmonisation.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,9 @@ def get_resfinder_db():
url = 'https://bitbucket.org/genomicepidemiology/resfinder_db/raw/8aad1d20603fbec937cdae55024568de6dbd609f/all.fsa'
return download_file(url, ofile)

@TaskGenerator
def get_sarg_db():
with tempfile.TemporaryDirectory() as tmpdir:
tmp_zip = f'{tmpdir}/Short_subdatabase_V3.2.1.zip'
download_file.f('https://smile.hku.hk/ARGs/dataset/indexingdownload/Short_subdatabase_V3.2.1.zip', tmp_zip)
subprocess.check_call(
['unzip', tmp_zip, '-d', tmpdir])
shutil.copy(f'{tmpdir}/Short_subdatabase/4.SARG_v3.2_20220917_Short_subdatabase.fasta', 'dbs/sarg.faa')

return 'dbs/sarg.faa'
url = 'https://raw.githubusercontent.com/xinehc/args_oap/a3e5cff4a6c09f81e4834cfd9a31e6ce7d678d71/src/args_oap/db/sarg.fasta'
return download_file(url, 'dbs/sarg.faa')

def get_deeparg_db():
url = 'https://bitbucket.org/gusphdproj/deeparg-largerepo/raw/5683ea1c075dad3a68e0e236c98e2a98d564f560/database/v2/features.fasta'
Expand Down
Loading