utils.basic.stats: Calculates mean observed heterozygosity, mean expected...

View source: R/utils.basic.stats.r

utils.basic.statsR Documentation

Calculates mean observed heterozygosity, mean expected heterozygosity and Fis per locus, per population and various population differentiation measures

Description

This is a re-implementation of hierfstat::basics.stats specifically for genlight objects. Formula (and hence results) match exactly the original version of hierfstat::basics.stats but it is much faster.

Usage

utils.basic.stats(x, digits = 4)

Arguments

x

A genlight object containing the SNP genotypes [required].

digits

Number of decimals to report [default 4]

Value

A list with with the statistics for each population

Author(s)

Luis Mijangos and Carlo Pacioni (bugs? Post to https://groups.google.com/d/forum/dartr)

Examples

require("dartR.data")
out <- utils.basic.stats(platypus.gl)

green-striped-gecko/dartR documentation built on Sept. 7, 2024, 4:15 a.m.