Skip to content

Commit

Permalink
Patch for issue #36 while I try to understand the root cause
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Venturini committed Nov 5, 2015
1 parent 2eb3432 commit 53eab5f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion mikado_lib/loci_objects/transcript_methods/splitting.py
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,17 @@ def split_by_cds(transcript):
# we might have determined that the transcript has not to be split
new_transcripts = [transcript]
else:
new_transcripts = __create_splitted_transcripts(transcript, cds_boundaries)
try:
new_transcripts = __create_splitted_transcripts(transcript, cds_boundaries)
except InvalidTranscript as err:
exc = InvalidTranscript(err)
transcript.logger.error("Error in splitting %s by ORF",
transcript.id)
transcript.logger.exception(exc)
transcript.logger.error("Stripping %s of its CDS.",
transcript.id)
transcript.strip_cds()
new_transcripts = [transcript]

assert len(new_transcripts) > 0, str(transcript)
for new_transc in new_transcripts:
Expand Down

0 comments on commit 53eab5f

Please sign in to comment.