mat_pw_fst: Compute a pairwise FST matrix between populations

View source: R/mat_pw_fst.R

mat_pw_fstR 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 genind

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

\insertRef

weir1984estimatinggraph4lg

Examples

## Not run: 
data("data_ex_genind")
mat_fst <- mat_pw_fst(data_ex_genind)

## End(Not run)

graph4lg documentation built on Feb. 16, 2023, 5:43 p.m.