Learn R Programming

Demerelate (version 0.9-2)

Fis: Calculates allele and genotype frequencies

Description

Internal function to prepare allele and genotype frequencies for F statistics. Rows with NA values are removed from the calculation.

Usage

Fis(tab.pop, allele.column)

Arguments

tab.pop
Object with information for one or several populations and loci. Format needs to be in accordance with inputformat.
allele.column
Loci information from column allele.column and allele.column+1 are used for the calculations.

Value

Details

Be sure to remove all missing data in your data file. Prior to calculation of $F_{is}$ values. Every sample containing NA values in any column will be removed. It may be better to remove complete loci columns to get good results. In any case you should check this.

References

Weir, B.S. and Cockerham, C.C. (1984) Estimating F-Statistics for the analysis of population structure. Evolution, 38, 1358-1370. Nei, M. (1977) F-statistics and analysis of gene diversity in subdivided populations. Annals of Human Genetics, 41, 225-233. Nei, M. and Chesser R.K. (1983) Estimation of fixation indices and gene diversities. Annals of Human Genetics, 47, 253-259.

See Also

weir Fis.calc F.stat

Examples

Run this code
      ## internal function of F.stat not intended for direct use
     
     

Run the code above in your browser using DataLab