Functions to calculate population genetic metrics. For all functions stratum
splits the data set into different populations. If stratum
is missing, one population is assumed. n_alls
returns the number of alleles per population. rarify
rarifies a population genetic metric.
1 2 3 4 5 6 7 8 9 10 11 12 13 | freq(x, stratum)
het_obs(x, stratum)
het_exp(x, stratum)
n_alls(x, stratum)
n_eff_alls(x, stratum)
nprivate_alleles(x, stratum)
rarify(x, FUN, stratum, nperm = 100)
|
x |
Three dimensional array with individuals, loci and alleles in the first, second and third dimension. |
stratum |
Vector of length |
FUN |
Function to rarify. |
nperm |
Number of permutations. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.