Skip to content

Commit

Permalink
Fix for the logging messages
Browse files Browse the repository at this point in the history
  • Loading branch information
lucventurini committed Oct 9, 2018
1 parent 5219d68 commit 93f9855
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Mikado/loci/locus.py
Original file line number Diff line number Diff line change
Expand Up @@ -930,11 +930,13 @@ def expand_transcript(transcript, new_start, new_end, fai, logger):
# Now check that we have a valid expansion
if backup.is_coding and not transcript.is_coding:
# Something has gone wrong. Just return the original transcript.
logger.warning("Padding %s would lead to an invalid CDS. Aborting.")
logger.info("Padding %s would lead to an invalid CDS. Aborting.",
transcript.id)
return backup
elif ((backup.strand == "-" and backup.combined_cds_end < transcript.combined_cds_end) or
(backup.combined_cds_end > transcript.combined_cds_end)):
logger.warning("Padding %s would lead to an in-frame stop codon. Aborting.")
logger.info("Padding %s would lead to an in-frame stop codon. Aborting.",
transcript.id)
return backup

return transcript

0 comments on commit 93f9855

Please sign in to comment.