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

Allow download of specific database versions #139

Open
marchoeppner opened this issue Mar 18, 2024 · 3 comments
Open

Allow download of specific database versions #139

marchoeppner opened this issue Mar 18, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@marchoeppner
Copy link

Hi,

new AMRfinderplus user - very useful tool, thanks!

I may be missing something, but it appears that the only way to automatically download/build the database is through the amrfinder_update executable. The way I read the code is that it will always download the "latest" release of the database. While this is mostly fine, it does not conform well with the concept of versioning workflows - i.e. I can guarantee that all the data processing up to the AMRfinderplus stage is always identical, but the database may differ depending on when the user installed the workflow. This is not a very good situation imho.

Any chance that the database installation function could be changed to accept specific release tags or similar?
( I guess a workaround may be to just download the un-indexed database files "manually" and figure out the indexing commands, but it would be nice to have that be part of the default installation procedure).

Cheers
Marc

@vbrover
Copy link
Contributor

vbrover commented Mar 18, 2024

but the database may differ depending on when the user installed the workflow. This is not a very good situation imho.

The code of AMRFinderPlus itself also depends on when the user installed the software.

Any chance that the database installation function could be changed to accept specific release tags or similar?

We do not test this functionality, but theoretically it is possible: any previous release of AMRFInderPlus is available and any previous release of the database can be downloaded from https://ftp.ncbi.nlm.nih.gov/pathogen/Antimicrobial_resistance/AMRFinderPlus/database/.
Not every software-database combination will work though.

I guess a workaround may be to just download the un-indexed database files "manually" and figure out the indexing commands,

"Indexing" is only running makeblastdb and hmmpress.

@evolarjun
Copy link
Contributor

To add to what Slava said above, you can download the database files from our FTP site and run amrfinder_index <database_dir> to (re)index the database you downloaded (see also the documentation).

We also build docker containers frozen with combinations of software and database on every database and/or software release on dockerhub starting with 3.10.14-2021-08-11.1 (See https://hub.docker.com/r/ncbi/amr/tags)

@evolarjun evolarjun added the enhancement New feature or request label Mar 18, 2024
@marchoeppner
Copy link
Author

Thanks, I will look into the download and re-indexing option.

My workflow uses bioconda and biocontainers (depending on the user preference), so the version of Amrfinder is basically "locked". The next step would be to also lock the database version so everything is fully version-controlled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants