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

Port apply-geolocation-rules to augur curate #1491

Merged
merged 7 commits into from
Jun 26, 2024

Commits on Jun 26, 2024

  1. Copy apply-geolocation-rules from nextstrain/ingest

    Removed the executable permission and shebang since this file is no
    longer expected to be called directly.
    
    Copied from: <https://github.com/nextstrain/ingest/blob/c94d78d1f38b99e893007a76526f3d3824ecded0/apply-geolocation-rules>
    victorlin committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    d0b2bfc View commit details
    Browse the repository at this point in the history
  2. Include copied script as augur curate apply-geolocation-rules

    Added the minimum required changes to allow this subcommand to work:
    
    - renamed the file to work as a python module (i.e. replace hyphens
      with underscores, add .py extension)
    
    - added it as a subcommand of augur curate (after titlecase to be
      consistent with the order used in existing workflows)
    
    - replaced the main entrypoint with register_parser() + run()
    
    - hooked up to augur curate's argparse parser
    
    - updated to work with JSON records directly (i.e. letting augur curate
      handle stdin/stdout)
    victorlin committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    d206af4 View commit details
    Browse the repository at this point in the history
  3. Add tests

    This does not test all functionality, but is better than no testing.
    victorlin committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    52f99e9 View commit details
    Browse the repository at this point in the history
  4. Use AugurError and print_err

    To be consistent with the rest of the codebase.
    victorlin committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    69ea6b9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4a22a5a View commit details
    Browse the repository at this point in the history
  6. Update changelog

    victorlin committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    2b2772f View commit details
    Browse the repository at this point in the history
  7. Add apply-geolocation-rules test

    joverlee521 authored and victorlin committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    295f280 View commit details
    Browse the repository at this point in the history