aboutsummaryrefslogtreecommitdiff
path: root/src/score_mers.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/score_mers.py')
-rwxr-xr-xsrc/score_mers.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/score_mers.py b/src/score_mers.py
index c7ecf99..d33d23b 100755
--- a/src/score_mers.py
+++ b/src/score_mers.py
@@ -51,12 +51,12 @@ def max_consecutive_binding(mer1, mer2):
consecutive = 0
for x in range(len(mer2)):
if binding[mer1[offset+x]] == mer2[x]:
- consecutive = consecutive + 1
+ consecutive += 1
+ if consecutive > max_bind:
+ max_bind = consecutive
else:
consecutive = 0
- max_bind = max(consecutive,max_bind)
-
return max_bind
def populate_locations(input_fn, mers, mer):