
Compute population specific Fst
pop_fst.Rd
This function computes population specific Fst, using the approach in Weir and Goudet 2017
(as computed by hierfstat::fst.dosage()
).
Arguments
- .x
a grouped
gen_tibble
(as obtained by usingdplyr::group_by()
)- include_global
boolean determining whether, besides the population specific Fst, a global Fst should be appended. Note that this will return a vector of n populations plus 1 (the global value)
- allele_sharing_mat
optional, the matrix of Allele Sharing returned by
pairwise_allele_sharing()
withas_matrix=TRUE
. As a number of statistics can be derived from the Allele Sharing matrix,