vg
tools for working with variation graphs
|
Score haplotypes using a GBWT haplotype database (normal or dynamic) More...
#include <haplotypes.hpp>
Public Member Functions | |
GBWTScoreProvider (GBWTType &index) | |
pair< double, bool > | score (const vg::Path &, haploMath::RRMemo &memo) |
Score the given path usign the given memo. More... | |
int64_t | get_haplotype_count () const |
bool | has_incremental_search () const |
IncrementalSearchState | incremental_find (const vg::Position &pos) const |
IncrementalSearchState | incremental_extend (const IncrementalSearchState &state, const vg::Position &pos) const |
Public Member Functions inherited from haplo::ScoreProvider | |
virtual | ~ScoreProvider ()=default |
Private Attributes | |
GBWTType & | index |
Score haplotypes using a GBWT haplotype database (normal or dynamic)
haplo::GBWTScoreProvider< GBWTType >::GBWTScoreProvider | ( | GBWTType & | index | ) |
|
virtual |
Return the haplotype count (number of expected haplotypes that agree with a path that is fixed in the population) that should be used to construct the memo to pass to score, or -1 if the indexes backing the ScoreProvider do not make this information available.
Reimplemented from haplo::ScoreProvider.
|
virtual |
Return true if this ScoreProvider supports incremental search for counting haplotypes.
Reimplemented from haplo::ScoreProvider.
|
virtual |
Extend the given search state with the node visit described by the given Position, if incremental search is supported.
Reimplemented from haplo::ScoreProvider.
|
virtual |
Start a new search state with the node visit described by the given Position, if incremental search is supported.
Reimplemented from haplo::ScoreProvider.
|
virtual |
Score the given path usign the given memo.
Implements haplo::ScoreProvider.
|
private |