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

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

bool filter_by_status (std::function< bool(BaseCountsStatus const &)> predicate, Variant const &variant, SampleFilterType type, size_t min_coverage=0, size_t max_coverage=0, size_t min_count=0, bool tolerate_deletions=false)
 Filter a Variant based on a predicate that is applied to the result of a status() call on the BaseCounts of the variant. More...
 
void transform_zero_out_by_max_count (BaseCounts &sample, size_t max_count)
 Transform a BaseCounts sample by setting any nucleotide count (A, C, G, T) to zero if max_count is exceeded for that nucleotide. More...
 
void transform_zero_out_by_max_count (Variant &variant, size_t max_count)
 Transform a variant by setting any nucleotide count (A, C, G, T) of its samples to zero if max_count is exceeded for that nucleotide. More...
 
void transform_zero_out_by_min_count (BaseCounts &sample, size_t min_count)
 Transform a BaseCounts sample by setting any nucleotide count (A, C, G, T) to zero if min_count is not reached for that nucleotide. More...
 
void transform_zero_out_by_min_count (Variant &variant, size_t min_count)
 Transform a variant by setting any nucleotide count (A, C, G, T) of its samples to zero if min_count is not reached for that nucleotide. More...
 
void transform_zero_out_by_min_max_count (BaseCounts &sample, size_t min_count, size_t max_count)
 Transform a BaseCounts sample by setting any nucleotide count (A, C, G, T) to zero if min_count is not reached or if max_count is exceeded for that nucleotide. More...
 
void transform_zero_out_by_min_max_count (Variant &variant, size_t min_count, size_t max_count)
 Transform a variant by setting any nucleotide count (A, C, G, T) of its samples to zero if min_count is not reached or if max_count is exceeded for that nucleotide. More...