-
Notifications
You must be signed in to change notification settings - Fork 403
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refine location parser to handle edge cases and missing data
Defines a function to parse each GISAID location string, adds doctests for expected behavior on well-formed and malformed (but real) data, and updates the logic of the parser to more robustly handle these cases. Specific improvements include splitting fields with a regular expression to handle inconsistent delimiters, always defining missing values ("?") by default, and trimming extraneous fields and trailing delimiters.
- Loading branch information
Showing
1 changed file
with
55 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters