vg
tools for working with variation graphs
|
#include <genotypekit.hpp>
Public Member Functions | |
virtual | ~FixedGenotypePriorCalculator ()=default |
virtual double | calculate_log_prior (const Genotype &genotype) |
Public Member Functions inherited from vg::GenotypePriorCalculator | |
virtual | ~GenotypePriorCalculator ()=default |
Public Attributes | |
double | homozygous_prior_ln = prob_to_logprob(0.999) |
double | heterozygous_prior_ln = prob_to_logprob(0.001) |
This genotype prior calculator has a fixed prior for homozygous genotypes and a fixed prior for hets.
|
virtualdefault |
|
virtual |
Return the log prior of the given genotype.
TODO: ploidy priors on nested sites???
Implements vg::GenotypePriorCalculator.
double vg::FixedGenotypePriorCalculator::heterozygous_prior_ln = prob_to_logprob(0.001) |
double vg::FixedGenotypePriorCalculator::homozygous_prior_ln = prob_to_logprob(0.999) |