Individuals with the same haplotype will have the same hash (integer) and individuals with different haplotypes will have different hashes (integers).

haplotypes_to_hashes(haplotypes)

Arguments

haplotypes

List of haplotypes (list of logical vectors)

Details

This can be useful if for example using haplotypes to define groups and the haplotype itself is not of interest.