|
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_VARIANT_FILTER_NUMERICAL_H_
2 #define GENESIS_POPULATION_FILTER_VARIANT_FILTER_NUMERICAL_H_
49 namespace population {
209 return [params](
Variant& variant ){
223 return [params, &stats](
Variant& variant ){
247 return [params](
Variant& variant ){
261 return [params, &stats](
Variant& variant ){
276 bool all_need_pass =
false
278 return [sample_count_params, variant_params, all_need_pass](
Variant& variant ){
280 variant, sample_count_params, all_need_pass
301 bool all_need_pass =
false
303 return [variant_params, sample_count_params, &variant_stats, &sample_count_stats, all_need_pass](
307 variant, sample_count_params, variant_stats, sample_count_stats, all_need_pass
316 #endif // include guard
size_t snp_max_count
Maximum count for each nucleotide to be considered a SNP for the whole Variant.
Filter settings to filter and transform SampleCounts.
size_t snp_min_count
Minimum count for each nucleotide to be considered a SNP for the whole Variant.
bool only_biallelic_snps
Filter if the Variant does not have exactly two alleles.
size_t deletions_count_limit
Maximum number of deletions at a position before being filtered out.
std::function< bool(Variant &)> make_variant_filter_numerical_excluding(VariantFilterNumericalParams const ¶ms)
Return a functional to numerically filter Variants in an VariantInputStream, excluding the ones that ...
size_t max_read_depth
Maximum read depth expected for the whole Variant to be considered covered.
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.
std::function< void(Variant &)> make_variant_filter_numerical_tagging(VariantFilterNumericalParams const ¶ms)
Return a functional to numerically filter Variants in an VariantInputStream, tagging the ones that do...
A single variant at a position in a chromosome, along with SampleCounts for a set of samples.
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
size_t min_read_depth
Minimum read depth expected for the whole Variant to be considered covered.
Counts of how many entries with a particular Filter Tag occured in some data.
bool apply_variant_filter_numerical(Variant &variant, VariantFilterNumericalParams const ¶ms, VariantFilterStats &stats)
Filter a given Variant based on the numerical properties of the counts.
bool only_snps
Filter if the Variant does not have two or more alleles.
double snp_min_allele_frequency
Minimum allele frequency that needs to be achieved.