A library for working with phylogenetic data.
vcf_window.hpp File Reference
#include <cassert>
#include <functional>
#include <string>
#include <vector>
#include "genesis/population/formats/vcf_input_iterator.hpp"
#include "genesis/population/formats/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.


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


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...