From 64fbf74d28da61eb9875b521a99bd102e2c3843d Mon Sep 17 00:00:00 2001
From: Schneider Leo <leo.schneider@etu.ec-lyon.fr>
Date: Tue, 30 Apr 2024 11:27:58 +0200
Subject: [PATCH] requirements.txt

---
 requirements.txt | 6 +++---
 seq_cutting.py   | 6 +++++-
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/requirements.txt b/requirements.txt
index 8b04a2b..a5ed174 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 c55e303..09f5330 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
-- 
GitLab