Skip to content

Commit

Permalink
Will fix #2
Browse files Browse the repository at this point in the history
  • Loading branch information
anujg30 authored Sep 21, 2016
1 parent 9b2caf4 commit 7f59f0c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions stringMLST.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,11 +527,12 @@ def printResults(results,output_filename,overwrite,timeDisp):

"""Returns the reverse complement of the sequence"""
def reverseComplement(seq):
seqU = seq.upper()
seq_dict = {'A':'T','T':'A','G':'C','C':'G','Y':'R','R':'Y','S':'S','W':'W','K':'M','M':'K'}
try:
return "".join([seq_dict[base] for base in reversed(seq)])
return "".join([seq_dict[base] for base in reversed(seqU)])
except:
strn = "Reverse Complement Error:" + seq
strn = "Reverse Complement Error:" + seqU
logging.debug(strn)
pass

Expand Down

1 comment on commit 7f59f0c

@anujg30
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will fix #1

Please sign in to comment.