mat_pw_fst {graph4lg} | R Documentation |
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)
Arguments
x |
An object of class |
Details
The formula used is that of Weir et Cockerham (1984).
This functions uses directly the function pairwise.WCfst
from hierfstat.
Value
A pairwise matrix
of FST with as many rows and columns as
there are populations in the input data.
Warnings
Negative values are converted into 0
Author(s)
P. Savary
References
Weir BS, Cockerham CC (1984). “Estimating F-statistics for the analysis of population structure.” evolution, 38(6), 1358–1370.
Examples
## Not run:
data("data_ex_genind")
mat_fst <- mat_pw_fst(data_ex_genind)
## End(Not run)
[Package graph4lg version 1.8.0 Index]