Skip to content

Commit

Permalink
Modified an error message, starting to work on in-frame transcripts
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 1d99d37 commit 758ee48
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions Mikado/transcripts/transcript.py
Original file line number Diff line number Diff line change
Expand Up @@ -804,13 +804,20 @@ def get_internal_orf_beds(self):
new_row))

if new_row.invalid is True:
exception = "Invalid ORF for {id} (TS {new_row.thick_start} "
exception += "TE {new_row.thick_end}, phase {new_row.phase} , reason: {reason}"
exception = exception.format(id=self.id, reason=new_row.invalid_reason, **locals())
raise AssertionError(exception)
exc = "Invalid ORF for {id} ({new_row.thick_start}, {new_row.thick_end}, phase {new_row.phase})"
exc += ", reason: {reason}"
exc = exc.format(id=self.id, reason=new_row.invalid_reason, **locals())
raise AssertionError(exc)

yield new_row

@property
def framed_codons(self):
if self.is_coding is False:
return []
else:
pass

@property
def _selected_orf_transcript(self):

Expand Down

0 comments on commit 758ee48

Please sign in to comment.