Computational Methods to Study Diversification in Pathogens, and Invertebrate and Vertebrate Immune Systems