diff --git a/requirements.txt b/requirements.txt index 8b04a2b1cff5c0fba68064f23abb8b70682354f7..a5ed17434002631ac0a8bf1596601f49769254a9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,9 +10,9 @@ seaborn~=0.13.0 pyopenms~=3.1.0 dlomix~=0.0.6 scikit-learn~=1.4.1.post1 - Levenshtein~=0.25.0 keras~=2.15.0 +tensorflow~=2.15.0.post1 +pillow~=10.2.0 nibabel~=5.2.1 -nilearn~=0.10.4 -Pillow~=10.1.0 \ No newline at end of file +nilearn~=0.10.4 \ No newline at end of file diff --git a/seq_cutting.py b/seq_cutting.py index c55e30310cdd16e03d1e955e190d21e54eee9697..09f53309762452ed19a8e2418a705e19d49fe47a 100644 --- a/seq_cutting.py +++ b/seq_cutting.py @@ -22,7 +22,7 @@ ALPHABET_UNMOD = { } -# trypsin cut after A or L (if not followed by P) +# trypsin cut after K or R (if not followed by P) def cut(seq, format): cuts = [] @@ -52,3 +52,7 @@ def cut_with_ind(seq, ind_list): l.append(seq[ind_list[i]:ind_list[i + 1]]) return l + +def digest(seq, format): + ind = cut(seq, format) + return cut_with_ind(seq, ind) \ No newline at end of file