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

BUG: Add updated megares mappings #87

Merged

Conversation

Vedanth-Ramji
Copy link
Member

These mappings were missed by #79. The construct_megares_mapping.py script depends on other argNorm mappings for a large number of the mappings. While I was rerunning crude_db_harmonisation.py for #79, the construct_megares_mapping.py must have used the older mappings for resfinder and argannot for ARGs that didn't have to be passed through RGI (which explains why some megares mappings changed but these didn't).

@luispedro
Copy link
Member

Can we have a check in the code that this doesn't happen again?

@luispedro
Copy link
Member

Better, but can you (1) prefilter the CSV table that gets put into the test directory so that it only has the entries that actually get tested (5% of the total), (2) also add the code that generates this csv table as part of db construction, (3) add some comments to the test so that when it fails next time, the poor student has a chance to figure out what is going on?

tests/test_lib.py Outdated Show resolved Hide resolved
…_mappings`

These mappings are aggregated in `construct_megares_mapping.py` and are initiatlly stored in './db_harmonisation/mapping/megares_resfinder_argannot_mapping.tsv`. This is then moved into `./tests/megaes_mappings/`
@luispedro luispedro merged commit 934e208 into BigDataBiology:main Feb 9, 2025
6 checks passed
@Vedanth-Ramji Vedanth-Ramji deleted the update_megares_mappings branch February 10, 2025 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants