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

ingest: Update geolocation_rules #135

Merged
merged 1 commit into from
Feb 21, 2025
Merged

Conversation

joverlee521
Copy link
Contributor

Description of proposed changes

Add rules to switch the division and location for geolocations that do not follow the expected GenBank geolocation format.

Following this change, the divisions are back down to 50 values which are the expected US states.

Related issue(s)

Resolves #134
Also fixes #131 by lowering the division count to be less than the color schemes.

Checklist

  • Checks pass

Add rules to switch the division and location for geolocations that
do not follow the expected GenBank geolocation format.

Following this change, the divisions are back down to 50 values which
are the expected US states.

Resolves <#134>

# Switch location and divisions
North America/USA/Barnstable/MA North America/USA/MA/Barnstable
North America/USA/Barrington/RI North America/USA/RI/Barrington
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should "RI" be "Rhode Island", or will line 15 kick in and achieve this for us? (Using this as an example, but it applies to lines 21 to 81)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Answer: "RI" is not in the curated metadata, so yes the rule on line 15 must be being used to convert this to "Rhode Island"

@jameshadfield jameshadfield merged commit f34ce9c into master Feb 21, 2025
6 checks passed
@jameshadfield jameshadfield deleted the update-geolocations branch February 21, 2025 01:54
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.

Clean up NCBI geolocations Automated Ingest to phylogenetic workflow failed during assign-colors
2 participants