Skip to content

Commit

Permalink
Trying to fix an edge case for EI-CoreBioinformatics#133
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Venturini authored and Luca Venturini committed Oct 12, 2018
1 parent 6175eb2 commit ef388fc
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Mikado/parsers/bed12.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,11 @@ def __init__(self, *args: Union[str, list, tuple, GffLine],

if "phase=" in self.name and "coding=" in self.name: # Hack to include the properties
groups = dict(re.findall("([^(;|=)]*)=([^;]*)", self.name))
if groups["phase"].isdigit():
self.phase = int(groups["phase"])
else:
self.phase = None
if phase is not None:
if groups["phase"].isdigit():
self.phase = int(groups["phase"])
else:
self.phase = None
if groups["coding"] in ("True", "False"):
self.coding = eval(groups["coding"])
else:
Expand Down

0 comments on commit ef388fc

Please sign in to comment.