Description Usage Arguments Value Author(s) References Examples
Global and by SNP Fst computation for given populations
1 |
x |
A |
pop |
The population vector. |
beg |
Index of the first SNP used for Fst computation |
end |
Index of the last SNP used for Fst computation |
A List of two.
First element is a data frame giving, for each considered SNP, a
, b
and c
computation elements
defined by Weir and Cockerham and Fst.
Second element gives global Fst computed on all considered SNPs.
Claire Dandine-Roulland
Weir BS and Cockerham CC, 1984, Estimating F-statistics for the analysis of population structure, Evolution 38(6), 1358-1370
1 2 3 4 5 6 | # load chr2 data set (~10k SNPs in low LD)
x <- set.stats(read.bed.matrix( system.file("extdata", "chr2.bed", package="gaston") ))
# Compute Fst
fst <- Fst(x, x@ped$population)
str(fst)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.