From 2b441a82c2235bdaf21fff669ea34e4f942023bd Mon Sep 17 00:00:00 2001 From: victorgiurcoiu Date: Fri, 17 May 2024 17:25:59 +0000 Subject: [PATCH] Filter peptides with * --- spectrum_io/spectral_library/digest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spectrum_io/spectral_library/digest.py b/spectrum_io/spectral_library/digest.py index 3e15bd1..8afb444 100644 --- a/spectrum_io/spectral_library/digest.py +++ b/spectrum_io/spectral_library/digest.py @@ -85,7 +85,7 @@ def main(args): def valid_prosit_peptide(peptide: str) -> bool: """Check if peptide is valid.""" - return len(peptide) <= 30 and "U" not in peptide and "X" not in peptide + return len(peptide) <= 30 and "U" not in peptide and "X" not in peptide and "*" not in peptide def parse_args(call):