Learn R Programming

graph4lg (version 1.8.0)

mat_pw_fst: Compute a pairwise FST matrix between populations

Description

The function computes the pairwise FST matrix between populations from an object of class genind

Usage

mat_pw_fst(x)

Value

A pairwise matrix of FST with as many rows and columns as there are populations in the input data.

Arguments

x

An object of class genind

Warnings

Negative values are converted into 0

Author

P. Savary

Details

The formula used is that of Weir et Cockerham (1984). This functions uses directly the function pairwise.WCfst from hierfstat.

References

weir1984estimatinggraph4lg

Examples

Run this code
if (FALSE) {
data("data_ex_genind")
mat_fst <- mat_pw_fst(data_ex_genind)
}

Run the code above in your browser using DataLab