calculate_wcFst | R Documentation |
Calculate Weir & Cockerham's Fst
snpdata = calculate_wcFst(snpdata, groups=c("Senegal","Gambia"), from="Country")
snpdata |
SNPdata object |
from |
the metadata column from which these groups belong to |
groups |
a vector of string. the differentiation will be estimated between these groups of samples |
SNPdata object with an extra field: Fst. This is a list of data frames that contain the result from a specific comparison. Every data frame contains N rows (where N is the number of loci) and the following 7 columns:
the chromosome ID
the SNPs positions
the allele frequency in the first group
the allele frequency in the second group
the resulting Fst values
the p-values associated with the Fst results
the p-values corrected for multiple testing using the Benjamini-Hochberg method
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.