oschwengers / bakta

Rapid & standardized annotation of bacterial genomes, MAGs & plasmids
GNU General Public License v3.0
428 stars 51 forks source link

reproducibility - amrfinderplus-db #306

Closed Juke34 closed 4 weeks ago

Juke34 commented 1 month ago

I ran bakta on database from 2023 and got this error message

Exception: amrfinder error! error code: 1. Please, try 'amrfinder_update --force_update --database /share/banks/bakta_db_2308/db/amrfinderplus-db' to update AMRFinderPlus's internal database.

The thing is for reproducibility reason I want to continue to work with my "old" version of amrfinderplus-db. Is there any way to pass by that limitation? If not it should definitely possible to use the wished version of the DB.

Best regards

marade commented 1 month ago

My initial runs with the latest amrfinderplus-db yield far fewer results than with previous versions. I wonder if that's why you want to use the older version @Juke34 ?

oschwengers commented 1 month ago

In principle, this is not an "issue" with Bakta, but with AMRFinderPlus which changed its internal db format. Thus, newer versions of AMRFinderPlus require a DB update. If you'd like to use an older Bakta DB version (with an older version of the AMRFInderPlus db within), you need to assure that you also use an older version of AMRFinderPlus. You can read more about this in the AMRFinderPlus repository. I guess you need to downgrade it to something before v3.12.8 -> https://github.com/ncbi/amr/releases

Juke34 commented 4 weeks ago

Hi @marade, nothing related to quality/quantity of the results, just matter about be reproducible according to an ancient run.

@oschwengers thank you for your answer, I understand better now.

marade commented 3 weeks ago

FYI, I found I was losing AMR results because the JSON annotation had changed to list format for those entries. Somehow I missed that update.