A library for working with phylogenetic and population genetic data.
v0.32.0
vcf_window.hpp File Reference
#include <cassert>
#include <functional>
#include <string>
#include <vector>
#include "genesis/population/format/vcf_input_stream.hpp"
#include "genesis/population/format/vcf_record.hpp"
#include "genesis/population/window/sliding_window_generator.hpp"
#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
 

Functions

template<class Data , class Accumulator = EmptyAccumulator>
void run_vcf_window (SlidingWindowGenerator< Data, Accumulator > &generator, std::string const &vcf_file, std::function< Data(VcfRecord const &)> conversion, std::function< bool(VcfRecord const &)> condition={})
 Convenience function to iterate over a whole VCF file. More...