Skip to content

Commit

Permalink
Fix #181 and small bug fix for parsing Mikado annotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucventurini committed Jun 10, 2019
1 parent 468eb2c commit 94160dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Mikado/parsers/bed12.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,8 @@ def _adjust_start(self, sequence, orf_sequence):
self.phase = 0
else:
if self.end - self.thick_end <= 2:
self.phase = self.end - self.thick_end
new_phase = max(self.end - self.thick_end, 0)
self.phase = new_phase
self.thick_end = self.end
else:
self.phase = 0
Expand Down
2 changes: 2 additions & 0 deletions Mikado/parsers/gfannotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@ def is_gene(self):
elif self.id is not None and self.id.startswith("gene:"):
# Hack for EnsEMBL
return True
elif self.feature in ("sublocus", "monosublocus", "monosublocusholder"):
return True
return False

@property
Expand Down

0 comments on commit 94160dd

Please sign in to comment.