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

haplotypes_to_hashes(population, pids)

Arguments

population

Population obtained from simulation

pids

Vector of individual pids

Value

Integer vector with haplotype hashes

Details

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