Skip to content
This repository has been archived by the owner on May 11, 2020. It is now read-only.

Commit

Permalink
Fix off-by-one error in sequence comparison code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Xyaneon committed Oct 15, 2014
1 parent 43f7930 commit e60a589
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sequence_comparison.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def compare_sequences(seq1, seq2, output):
return difference
mctr = 0
shorthand = ""
for i in range(0, len(seq1) - 1):
for i in range(0, len(seq1)):
if seq1[i] != seq2[i]:
# Output mutation shorthand, e.g., K136R
shorthand = seq1[i] + str(i+1) + seq2[i]
Expand Down

0 comments on commit e60a589

Please sign in to comment.