calc.fst.wright: Calculate Fst using Wright (1943)'s formulation ((ht-hs)/ht)

Description Usage Arguments Value

View source: R/gwscaR_fsts.R

Description

Calculate Fst using Wright (1943)'s formulation ((ht-hs)/ht)

Usage

1
calc.fst.wright(al1, al2)

Arguments

al1

A table of allele frequencies for pop 1

al2

A table of allele frequencies for pop 2

Value

data.frame containing the columns: Hs1 = expected heterozygosity in population 1 (vcf1) Hs2 = expected heterozygosity in population 2 (vcf2) Hs = weighted average expected heterozygosity within populations Ht = expected heterozygosity among populations Fst= Fst NumAlleles=The number of alleles (2 for biallelic loci) Num1=number of individuals genotyped & included in Fst calculations in population 1 (vcf1) Num2=number of individuals genotyped & included in Fst calculations in population 2 (vcf2) @export


spflanagan/gwscaR documentation built on Nov. 14, 2019, 9:16 p.m.