Learn R Programming

dartR.base (version 1.0.5)

utils.basic.stats: Calculates mean observed heterozygosity, mean expected heterozygosity and FIS per locus, per population and various population differentiation measures @family utilities

Description

WARNING: UTILITY SCRIPTS ARE FOR INTERNAL USE ONLY AND SHOULD NOT BE USED BY END USERS AS THEIR USE OUT OF CONTEXT COULD LEAD TO UNPREDICTABLE OUTCOMES.

Usage

utils.basic.stats(x)

Value

A list with with the statistics for each population

Arguments

x

A genlight object containing the SNP genotypes [required].

Author

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

Details

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.

Examples

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

Run the code above in your browser using DataLab