Skip to content
Snippets Groups Projects
Commit fde0e0cf authored by Léo Schneider's avatar Léo Schneider Committed by Schneider Leo
Browse files

aa cuting fix

parent e75d9ee8
No related branches found
No related tags found
No related merge requests found
......@@ -29,13 +29,13 @@ def cut(seq, format):
l = len(seq)
if format == 'alphabetical':
for i in range(l):
if seq[i] == 'A' or seq[i] == 'L':
if seq[i] == 'R' or seq[i] == 'K':
if i < l - 1 and seq[i + 1] != 'P':
cuts.append(i + 1)
if format == 'numerical':
for i in range(l):
if seq[i] == 1 or seq[i] == 10:
if seq[i] == 15 or seq[i] == 9:
if i < l - 1 and seq[i + 1] != 13:
cuts.append(i + 1)
return cuts
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment