A library for working with phylogenetic and population genetic data.
v0.32.0
sample_counts_filter_numerical.cpp File Reference
#include "genesis/population/filter/sample_counts_filter_numerical.hpp"
#include "genesis/population/function/functions.hpp"
#include "genesis/population/filter/sample_counts_filter.hpp"
#include "genesis/utils/text/char.hpp"
#include <cassert>
#include <cmath>
#include <iostream>
#include <stdexcept>
#include <sstream>

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 apply_sample_counts_filter_numerical (SampleCounts &sample, SampleCountsFilterNumericalParams const &params)
 Filter a given SampleCounts based on the numerical properties of the counts. More...
 
bool apply_sample_counts_filter_numerical (SampleCounts &sample, SampleCountsFilterNumericalParams const &params, SampleCountsFilterStats &stats)
 Filter a given SampleCounts based on the numerical properties of the counts. More...
 
bool apply_sample_counts_filter_numerical (Variant &variant, SampleCountsFilterNumericalParams const &params, bool all_need_pass=false)
 
bool apply_sample_counts_filter_numerical (Variant &variant, SampleCountsFilterNumericalParams const &params, VariantFilterStats &variant_stats, SampleCountsFilterStats &sample_count_stats, bool all_need_pass=false)
 Filter a given SampleCounts based on the numerical properties of the counts. More...
 
void transform_zero_out_by_max_count (SampleCounts &sample, size_t max_count, bool also_n_and_d_counts=true)
 Transform a SampleCounts 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, bool also_n_and_d_counts=true)
 Transform a SampleCounts 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_min_count (SampleCounts &sample, size_t min_count, bool also_n_and_d_counts=true)
 Transform a SampleCounts 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, bool also_n_and_d_counts=true)
 Transform a SampleCounts sample by setting any nucleotide count (A, C, G, T) to zero if min_count is not reached for that nucleotide. More...