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

Add HamronizationNormalizer #85

Conversation

Vedanth-Ramji
Copy link
Member

  • Removed the is_hamronized property for all Normalizers.
  • All hamronized results now go through the HamronizationNormalizer class.
  • HamronizationNormalizer reads a hamronized file line by line, procures input genes, and loads all ARO mapping tables to support hamronized results that combine the outputs from multiple tools and databases.

- Removed the `is_hamronized` property for all Normalizers.
- All hamronized results now go through the `HamronizationNormalizer` class.
- HamronizationNormalizer reads a hamronized file line by line, procures input genes, and loads all ARO mapping tables to support hamronized results that combine the outputs from multiple tools and databases.
- Removed '--hamronized' flag for CLI
- Added `hamronization` as a tool option which invokes `HamronizationNormalizer`. `hamronization` doesn't required `--db` option, and is intended to be used in the following manner: "argnorm hamronization -i PATH_TO_INPUT -o PATH_TO_OUTPUT"
- hAMRonized result from https://raw.githubusercontent.com/ewissel/hAMRoaster/refs/heads/main/study_data/ham_sum.tsv
- Used to test HarmonizationNormalizer on a hamronized file with the combined outputs from different ARG annotation tools (along with their respective databases)
- Updated 'run_argnorm.py' to support the 'hamronization' tool option rather than the '--hamronization' flag
- Removed '@pytest.mark.parametrize('hamronized', [True, False])' in 'test_normalizers.py'. Added test_hamronization_normalizer() which normalizes and tests every file in examples/hamronized
- Added normalized output of combined_hamronization.tsv
@luispedro
Copy link
Member

Thanks! I will look more closely at the implementation later, but a few UX suggestions:

  • The --hamronized flag on the command line should trigger a better error so that people can upgrade better
  • If there are non-supported databases, I think the default should be to error out, but you can add a command line flag on the command line to change it to a warning

@luispedro
Copy link
Member

Merged manually (on command line)

@luispedro luispedro closed this Feb 11, 2025
@Vedanth-Ramji Vedanth-Ramji deleted the hamronization_normalizer branch February 23, 2025 13:29
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