Estimating the number of founder lineages from haplotypes of closely linked SNPs