Generalize equality between haplotypes to take into account the semantic meaning of FASTA codes