Skip to content

Commit

Permalink
added logging.info messages
Browse files Browse the repository at this point in the history
  • Loading branch information
iskandr committed Apr 25, 2016
1 parent f3be770 commit ab1473f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions isovar/variant_read.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,15 @@ def trim_N_nucleotides(prefix, suffix):
if 'N' in prefix:
# trim prefix to exclude all occurrences of N
rightmost_index = prefix.rfind('N')
logging.info("Trimming %d nucleotides from read prefix '%s'" % (
rightmost_index + 1, prefix))
prefix = prefix[rightmost_index + 1:]

if 'N' in suffix:
leftmost_index = suffix.find('N')
logging.info("Trimming %d nucleotides from read suffix '%s'" % (
len(suffix) - leftmost_index,
suffix))
suffix = suffix[:leftmost_index]

return prefix, suffix
Expand Down

0 comments on commit ab1473f

Please sign in to comment.