This function estimates pairwise G'st (Hedrick 2005) among subpopulations using empirical Bayes method (Kitada et al. 2007). This function accepts two types of data object, GENEPOP data (Rousset 2008) and allele (haplotype) frequency data (Kitada et al. 2007). Missing genotype values in the GENEPOP file ("0000" or "000000") are simply ignored.
EBGstH(popdata, num.iter = 100)
Genotype data object of populations created by read.genepop function from a GENEPOP file. Allele (haplotype) frequency data object created by read.frequency function from a frequency format file also is acceptable.
A positive integer value specifying the number of iterations in empirical Bayes simulation.
Frequency format file is a plain text file containing allele (haplotype) count data. This format is mainly for mitochondrial DNA (mtDNA) haplotype frequency data, however nuclear DNA (nDNA) data also is applicable. In the data object created by read.frequency function, "number of samples" means haplotype count. Therefore, it equals the number of individuals in mtDNA data, however it is the twice of the number of individuals in nDNA data. First part of the frequency format file is the number of subpopulations, second part is the number of loci, and latter parts are [population x allele] matrices of the observed allele (haplotype) counts at each locus. Two examples of frequency format files are attached in this package. See
Matrix of estimated pairwise Hedrick's G'st.
Reiichiro Nakamichi, Hirohisa Kishino, Shuichi Kitada
Hedrick P (2005) A standardized genetic differentiation measure. Evolution, 59, 1633-1638.
Kitada S, Kitakado T, Kishino H (2007) Empirical Bayes inference of pairwise FST and its distribution in the genome. Genetics, 177, 861-873.
Rousset F (2008) Genepop'007: a complete reimplementation of the Genepop software for Windows and Linux. Mol. Ecol. Resources, 8, 103-106.
1 2 3 4 5 6 7 8 9 10 11 12 13 14
# Example of GENEPOP file data(jsmackerel) cat(jsmackerel$MS.genepop, file="JSM_MS_genepop.txt", sep="\n") cat(jsmackerel$popname, file="JSM_popname.txt", sep=" ") # Data load # Prepare your GENEPOP file and population name file in the working directory # (Here, these files were provided as "JSM_MS_genepop.txt" and "JSM_popname.txt".) popdata <- read.genepop(genepop="JSM_MS_genepop.txt", popname="JSM_popname.txt") # Hedrick's G'st estimation result.EBGstH <- EBGstH(popdata) write.csv(result.EBGstH, "result_EBGstH.csv", na="") print(as.dist(result.EBGstH))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.