Skip to content

Commit

Permalink
properly handle European genes
Browse files Browse the repository at this point in the history
  • Loading branch information
dpark01 committed Jan 23, 2025
1 parent e5d246c commit 05dcb92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phylo/feature_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def __init__(self, filepath=None, valid_feature_types=None):
self.valid_feature_types = valid_feature_types or self._default_feature_types

self.feature_line_regex_map = {
"feature_table_header" : re.compile(r"^>Feature (gb\||ref\|)(?P<refID>.*)\|.*$"),
"feature_table_header" : re.compile(r"^>Feature (gb\||ref\||emb\|)(?P<refID>.*)\|.*$"),
"feature_first_location_line" : re.compile(r"^(?P<location_operator_start>[<>])?(?P<start>\d+)\t(?P<location_operator_end>[<>])?(?P<end>\d+)\t(?P<feature_type>" + "|".join(self.valid_feature_types) + ")$"),
"feature_subsequent_location_line" : re.compile(r"^(?P<location_operator_start>[<>])?(?P<start>\d+)\t(?P<location_operator_end>[<>])?(?P<end>\d+)\t*$"),
"offset_line" : re.compile(r"^(?:\[offset=(?P<offset>-?\d+)\])$"),
Expand Down

0 comments on commit 05dcb92

Please sign in to comment.