A library for working with phylogenetic and population genetic data.
v0.32.0
variant_input_stream.cpp File Reference
#include "genesis/population/function/variant_input_stream.hpp"
#include "genesis/population/function/subsample.hpp"
#include <cassert>
#include <stdexcept>
#include <unordered_set>

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::vector< bool > make_sample_name_filter (std::vector< std::string > const &sample_names, std::vector< std::string > const &names_filter, bool inverse_filter=false)
 Create a filter for samples, indicating which to keep. More...
 
std::function< void(Variant &)> make_variant_input_stream_sample_name_filter_transform (std::vector< bool > const &sample_filter)
 
std::function< void(Variant &)> make_variant_input_stream_sample_subsampling_transform (size_t max_depth, SubsamplingMethod method)
 
std::function< void(Variant const &)> make_variant_input_stream_sequence_length_observer (std::shared_ptr< genesis::sequence::SequenceDict > sequence_dict)
 
std::function< void(Variant const &)> make_variant_input_stream_sequence_order_observer (std::shared_ptr< genesis::sequence::SequenceDict > sequence_dict, bool check_sequence_lengths)