A library for working with phylogenetic and population genetic data.
v0.27.0
structure.cpp File Reference
#include "genesis/population/functions/structure.hpp"
#include "genesis/utils/math/common.hpp"
#include <cassert>
#include <cmath>
#include <stdexcept>

Go to the source code of this file.

Namespaces

 genesis
 Container namespace for all symbols of genesis in order to keep them separate when used as a library.
 
 genesis::population
 

Functions

std::pair< double, double > f_st_pool_karlsson_nkdk (std::pair< SortedBaseCounts, SortedBaseCounts > const &sample_counts)
 Compute the numerator N_k and denominator D_k needed for the asymptotically unbiased F_ST estimator of Karlsson et al (2007). More...
 
std::tuple< double, double, double > f_st_pool_kofler_pi_snp (BaseCounts const &p1, BaseCounts const &p2)
 Compute the SNP-based Theta Pi values used in f_st_pool_kofler(). More...
 
std::tuple< double, double, double > f_st_pool_unbiased_pi_snp (size_t p1_poolsize, size_t p2_poolsize, BaseCounts const &p1, BaseCounts const &p2)
 Compute the SNP-based Theta Pi values used in f_st_pool_unbiased(). More...