A library for working with phylogenetic and population genetic data.
v0.27.0
population/window/functions.hpp File Reference
#include <cassert>
#include <string>
#include <vector>
#include "genesis/population/window/window.hpp"

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
 

Enumerations

enum  WindowAnchorType {
  kIntervalBegin, kIntervalEnd, kIntervalMidpoint, kVariantFirst,
  kVariantLast, kVariantMedian, kVariantMean, kVariantMidpoint
}
 Position in the genome that is used for reporting when emitting or using a window. More...
 

Functions

template<class D , class A = EmptyAccumulator>
size_t anchor_position (Window< D, A > const &window, WindowAnchorType anchor_type=WindowAnchorType::kIntervalBegin)
 Get the position in the chromosome reported according to a specific WindowAnchorType. More...