Boost f-statitics power using genealogies. Compatible with admixtools2.
Full documentation at
Each function is described on this page:


Please install this package by running the following command in R:


Alternatively, clone this directory ( and then in R type

Please make sure to have an up-to-date R version (>=3.6.0) and C/C++ compiler (e.g., >=GCC v8) loaded in your environment. If you encounter issues, it can help to create a clean R library. Assuming you place this in your home directory, this is done using

mkdir ~/R_libs_for_twigstats/
export R_LIBS_USER="~/R_libs_for_twigstats/"

Now, all required R packages will be installed into this fresh R library.