Developing a mathematical method to search for latent periodicity in protein amino-acid sequences with deletions and insertions