Learn R Programming

relSim (version 1.0.0)

calcFst: Caculate locus-wise and population \(F_{ST}\) values

Description

This procedure uses the method of Weir and Cockerham to estimate \(\theta\) (\(F_{ST}\)) for a population with substructure

Usage

calcFst(Pop, subPopIdx = NULL)

Value

A vector of length \(n_{loci}+1\) with locus-wise \(\theta\) values and an overall \(\theta\) value for the population

Arguments

Pop

An object type 'population'

subPopIdx

If this vector is not null, then it must consist of \(N\) elements with values from 1 to \(n_s\) representing which subpopulation each member of Pop$profiles belongs to. If it is null then it is assumed that the population consists of \(n_s\) subpopulations of equal size \(N_s\) so that \(n_s\times N_s = N\)

Author

James M. Curran

References

Weir, B.S., Genetic Data Analysis II, (1996) p.173--179, Sinauer, Sunderland, MA.

See Also

breedFst

Examples

Run this code

data(USCaucs)
p = breedFst(USCaucs)
fst = calcFst(p)
fst

Run the code above in your browser using DataLab