powered by
The function computes the pairwise FST matrix between populations from an object of class genind
genind
mat_pw_fst(x)
A pairwise matrix of FST with as many rows and columns as there are populations in the input data.
matrix
An object of class genind
Negative values are converted into 0
P. Savary
The formula used is that of Weir et Cockerham (1984). This functions uses directly the function pairwise.WCfst from hierfstat.
pairwise.WCfst
weir1984estimatinggraph4lg
if (FALSE) { data("data_ex_genind") mat_fst <- mat_pw_fst(data_ex_genind) }
Run the code above in your browser using DataLab