fst.one.plink: Calculate pairwise fsts from a dataset in ped format

Description Usage Arguments Value

View source: R/gwscaR_fsts.R

Description

Calculate pairwise fsts from a dataset in ped format

Usage

1
fst.one.plink(raw, group1, group2, cov.thresh = 0.2, loc_names = NULL)

Arguments

raw

A data.frame with data in ped format

group1

A list with the individuals in group 1

group2

A list with the individuals in group 2

cov.thresh

A threshold for the number of individuals in the populations (default is 0.2)

loc_names

Locus names to be included in the output (optional)

Value

fst.dat A data.frame with columns: Locus Name = the locus name Hs1 = expected heterozygosity in pop 1 Hs2 = expected heterozygosity in pop 2 Hs = expected heterozygosity within populations Ht = expected heterozygosity among populations Fst = Fst NumAlleles = number of alleles at the locus Num1 = the number of individuals in pop 1 Num2 = the number of individuals in pop 2


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