Learn R Programming

pcadapt (version 2.2)

fstGeno: Fst auxiliary function

Description

fstGeno returns the Fst associated with a particular SNP using Weir and Cokram's formula

Usage

fstGeno(Geno, POPs, nIND, nPOP, PopSizes)

Arguments

Geno
a vector of 0,1 or 2 of length nIND.
POPs
a list of integers specifying which subpopulation the individuals belong to.
nPOP
an integer specifying the number of SNPs present in the dataset.
PopSizes
a list of length nPOP specifying the number of individuals for each subpopulation.

Examples

Run this code
## see also ?fstCalc for examples

Run the code above in your browser using DataLab