NOTE See the file https://github.com/radamsRHA/GppFst/blob/master/vignettes/GppFst_Tutorial.pdf for detailed instructions
Steps for conducting posterior predictive simulations for Fst and Dxy.
read.posterior
.The R package GppFst is freely available to download and distribute from github https://github.com/radamsRHA/GppFst/. To install and load GppFst, you must first install the R packages devtools
, phybase
, and Geneland
.
install.packages("devtools")
install.packages("Geneland")
The packages, phybase
should be downloaded http://faculty.franklin.uga.edu/lliu/content/phybase. Save it to your desktop and then use this code to install it from source:
install.packages("~/Desktop/phybase", repos = NULL, type = "source")
Now using devtools we can install GppFst
from github:
library(devtools)
install_github("radamsRHA/GppFst")
library(GppFst) # Load package GppFst
library(phybase) # Load dependancy phybase
library(Geneland) # Load dependancy Geneland
UPDATE: it seems that Geneland has been removed from Cran. As a potential work around, you can install gfortran for mac, for example (https://github.com/fxcoudert/gfortran-for-macOS/releases), and then use the command:
install_github("https://github.com/cran/Geneland")
To begin using GppFst
try using our vignette with example files provided with this package. See the directory ./GppFst_Tutorial/ for example files and tutorial.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.