Description Usage Arguments Value Examples
This calcualtes global Fsts from a genepop dataframe. This does not include bootstrapping.
1 | calc.actual.fst(df, fst.choice="fst")
|
df |
Provide the genepop dataframe (from my.read.genepop). |
fst.choice |
Specify which type of fst calculation should be used. See fst.options.print for the choices. |
fsts |
This returns a dataframe with Locus, Ht, and Fst characters. |
1 2 3 4 5 6 7 8 9 | gpop<-data.frame(popinfo=c(rep("POP 1", 20),rep("POP 2", 20)),ind.names=c(1:20,1:20),
loc0=sample(c("0101","0102","0202"),40,replace=TRUE))
fsts<-calc.actual.fst(gpop)
## Not run:
gfile<-system.file("extdata", "example.genepop.txt",package = 'fsthet')
gpop<-my.read.genepop(gfile)
fsts<-calc.actual.fst(gpop)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.