|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_POPULATION_FILTER_SAMPLE_COUNTS_FILTER_NUMERICAL_H_
2 #define GENESIS_POPULATION_FILTER_SAMPLE_COUNTS_FILTER_NUMERICAL_H_
47 namespace population {
67 bool also_n_and_d_counts =
true
78 bool also_n_and_d_counts =
true
95 bool also_n_and_d_counts =
true
106 bool also_n_and_d_counts =
true
252 bool all_need_pass =
false
263 bool all_need_pass =
false
282 bool all_need_pass =
false
284 return [params, all_need_pass](
Variant& variant ){
298 bool all_need_pass =
false
300 return [params, &variant_stats, &sample_count_stats, all_need_pass](
Variant& variant ){
302 variant, params, variant_stats, sample_count_stats, all_need_pass
310 #endif // include guard
void transform_zero_out_by_max_count(SampleCounts &sample, size_t max_count, bool also_n_and_d_counts)
Transform a SampleCounts sample by setting any nucleotide count (A, C, G, T) to zero if max_count is ...
Filter settings to filter and transform SampleCounts.
One set of nucleotide sample counts, for example for a given sample that represents a pool of sequenc...
size_t min_count
Minimum count for each nucleotide to be considered. All counts below are set to zero.
bool apply_sample_counts_filter_numerical(SampleCounts &sample, SampleCountsFilterNumericalParams const ¶ms, SampleCountsFilterStats &stats)
Filter a given SampleCounts based on the numerical properties of the counts.
size_t max_count
Maximum count for each nucleotide to be considered. All counts above are set to zero.
A single variant at a position in a chromosome, along with SampleCounts for a set of samples.
void transform_zero_out_by_min_count(SampleCounts &sample, size_t min_count, bool also_n_and_d_counts)
Transform a SampleCounts sample by setting any nucleotide count (A, C, G, T) to zero if min_count is ...
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
size_t deletions_count_limit
Maximum number of deletions at a position before being filtered out.
std::function< void(Variant &)> make_sample_counts_filter_numerical_tagging(SampleCountsFilterNumericalParams const ¶ms, bool all_need_pass=false)
Return a functional to numerically filter the SampleCounts samples in a Variant tagging the ones that...
Counts of how many entries with a particular Filter Tag occured in some data.
bool only_biallelic_snps
Filter if the sample does not have exactly two alleles.
bool only_snps
Filter if the sample does not have two or more alleles.
size_t max_read_depth
Maximum read depth expected for a SampleCounts to be considered covered.
size_t min_read_depth
Minimum read depth expected for a SampleCounts to be considered covered.