### Calculation of expected and observed heterozygosity ...

(Posted by @timothymillar). The observed heterozygosity is a measure of heterozygosity in the real population and is typically estimated from a sample of multiple individuals of that population. In diploid populations the observed heterozygosity is simply the proportion of heterozygous individuals (see scikit-allel function).. In polyploids the concept of heterozygous or …