vg
tools for working with variation graphs
Public Member Functions | Public Attributes | List of all members
vg::FixedGenotypePriorCalculator Class Reference

#include <genotypekit.hpp>

Inheritance diagram for vg::FixedGenotypePriorCalculator:
vg::GenotypePriorCalculator

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)
 

Detailed Description

This genotype prior calculator has a fixed prior for homozygous genotypes and a fixed prior for hets.

Constructor & Destructor Documentation

◆ ~FixedGenotypePriorCalculator()

virtual vg::FixedGenotypePriorCalculator::~FixedGenotypePriorCalculator ( )
virtualdefault

Member Function Documentation

◆ calculate_log_prior()

double vg::FixedGenotypePriorCalculator::calculate_log_prior ( const Genotype genotype)
virtual

Return the log prior of the given genotype.

TODO: ploidy priors on nested sites???

Implements vg::GenotypePriorCalculator.

Member Data Documentation

◆ heterozygous_prior_ln

double vg::FixedGenotypePriorCalculator::heterozygous_prior_ln = prob_to_logprob(0.001)

◆ homozygous_prior_ln

double vg::FixedGenotypePriorCalculator::homozygous_prior_ln = prob_to_logprob(0.999)

The documentation for this class was generated from the following files: