Calculates Nei's (1987) gene diversity (= Hs = expected heterozygosity corrected for small sample size) for each locus and each population sample. Code is modified from function hierfstat::basic.stats and relies on several functions from the hierfstat library: pop.freq(), ind.count(), getal.b().
A matrix of calculated Hs values, with one row per locus and one column per population sample.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.