Pyteomics is a collection of lightweight and handy tools for Python that help to handle various sorts of proteomics data. Pyteomics provides a growing set of modules to facilitate the most common tasks in proteomics data analysis.
it should be: r'[^DE](?=[AFILMV][^P])'
If you check the summary of the cleavage rules here: https://web.expasy.org/peptide_cutter/peptidecutter_enzymes.html the [^P] condition isn't included but it's included in the text above it and also seems to be implemented in their perl script.
I haven't checked other enzymes but there might be similar errors there too.
This rule for thermolysin is incorrect: https://github.com/levitsky/pyteomics/blob/66dcd9d6d35e20c39e82c6c408e1b8ed05089ea6/pyteomics/parser.py#L844
it should be:
r'[^DE](?=[AFILMV][^P])'
If you check the summary of the cleavage rules here: https://web.expasy.org/peptide_cutter/peptidecutter_enzymes.html the[^P]
condition isn't included but it's included in the text above it and also seems to be implemented in their perl script.I haven't checked other enzymes but there might be similar errors there too.