From fde0e0cff242e510f6e8d75b1788e3c31ff18f55 Mon Sep 17 00:00:00 2001 From: schne <leo.schneider@ecl19.ec-lyon.fr> Date: Fri, 22 Dec 2023 14:19:29 +0100 Subject: [PATCH] aa cuting fix --- seq_cutting.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seq_cutting.py b/seq_cutting.py index 620503f..c55e303 100644 --- a/seq_cutting.py +++ b/seq_cutting.py @@ -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 -- GitLab