Calculates the diversity of each position in a fasta file.