The code is published online, just a tiny bit of Python.
Here’s a breakdown of the regex one-liner:
- lookbehind to skip signal peptides
- scan for rare amino pairs (KK, KR, etc)
- prevent false cleavage match
- enforce minimum spacing recursive pattern match