View source: R/outflank_mod_fst_nocorrect.R
outflank_mod_fst_nocorrect | R Documentation |
WC_FST_FiniteSample_Diploids_2Alleles_NoCorr()
Skip the need for diploid genotypes, i.e. just use allele frequencies,
and produce the same output as WC_FST_FiniteSample_Diploids_2Alleles_NoCorr()
.
Calculate FST without a sample size correction.
outflank_mod_fst_nocorrect(alleleFreqs, sampSize, Ho)
alleleFreqs |
Numeric: A vector of the Reference allele frequency, with the length == number of populations. |
sampSize |
Integer: A vector of sample sizes, with the length == number
of populations and the order corresponding to the those in |
Ho |
Integer: An optional vector of the heterozygote frequency,
with the length == number of populations and the order corresponding
to the those in |
By using just allele frequencies, there is no information about the observed frequency of heterozygotes, Ho. The function will make the naive assumption that Ho = He, if Ho is not specified.
Returns a list of values related to FST:
He: the expected heterozygosity of the locus
FSTNoCorr: Fst (without sample size correction)
T1NoCorr: The numerator of the uncorrected sample size correction (similar to Weir and Cockerham 1984)
T2NoCorr: The denominator of the uncorrected sample size correction
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.