Twigstats functions

f2_blocks_from_Relate()

Function to calculate f2 statistics from Relate trees for pairs of populations specified in poplabels.

f2_blocks_from_RelateAges()

Function to calculate f2 statistics from plink files, ascertained using mutation ages in Relate trees.

f4_ratio() jackknife()

Function implementing the F4-ratio statistic

theoretical_zscore()

Function to compute a theoretical z-score given source split times and admixture proportions.

TwigScan functions

TwigScan()

Function implementing TwigScan

Fst_blocks_from_Relate()

Function to calculate Fst from Relate trees for pairs of populations specified in poplabels.

Chromosome painting functions

Painting()

Chromosome painting using genealogies.

PaintingProfile()

Function to compute genome-wide copying proportions.

PaintingNNLS()

Function to run an NNLS on genome-wide copying proportions to estimate admixture proportions.