Functions for evolutionary analysis using nucleotide and protein sequences