vg
tools for working with variation graphs
Public Member Functions | List of all members
vg::GenotypePriorCalculator Class Referenceabstract

#include <genotypekit.hpp>

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

Public Member Functions

virtual ~GenotypePriorCalculator ()=default
 
virtual double calculate_log_prior (const Genotype &genotype)=0
 

Detailed Description

Represents a strategy for assigning genotype priors. Polymorphic base class/interface.

Constructor & Destructor Documentation

◆ ~GenotypePriorCalculator()

virtual vg::GenotypePriorCalculator::~GenotypePriorCalculator ( )
virtualdefault

Member Function Documentation

◆ calculate_log_prior()

virtual double vg::GenotypePriorCalculator::calculate_log_prior ( const Genotype genotype)
pure virtual

Return the log prior of the given genotype.

TODO: ploidy priors on nested sites???

Implemented in vg::FixedGenotypePriorCalculator.


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