|
vg
tools for working with variation graphs
|
#include <dinucleotide_machine.hpp>
Public Member Functions | |
| DinucleotideMachine () | |
| ~DinucleotideMachine ()=default | |
| uint32_t | init_state () const |
| Return an empty dinucleotide set. | |
| uint32_t | update_state (uint32_t state, char next) const |
| uint32_t | merge_state (uint32_t state_1, uint32_t state_2) const |
| Get the union of two dinucleotide sets. | |
| bool | matches (uint32_t state, const char *dinucleotide) const |
| Return true if the set includes this dinucleotide. Only valid for dinucleotides of ACGT (never N). | |
| bool | matches (uint32_t state, const string &dinucleotide) const |
| Same semantics as above. | |
Private Attributes | |
| uint32_t | transition_table [256] |
| uint32_t | nt_table [256] |
| vg::DinucleotideMachine::DinucleotideMachine | ( | ) |
|
default |
| uint32_t vg::DinucleotideMachine::init_state | ( | ) | const |
Return an empty dinucleotide set.
| bool vg::DinucleotideMachine::matches | ( | uint32_t | state, |
| const char * | dinucleotide ) const |
Return true if the set includes this dinucleotide. Only valid for dinucleotides of ACGT (never N).
| bool vg::DinucleotideMachine::matches | ( | uint32_t | state, |
| const string & | dinucleotide ) const |
Same semantics as above.
| uint32_t vg::DinucleotideMachine::merge_state | ( | uint32_t | state_1, |
| uint32_t | state_2 ) const |
Get the union of two dinucleotide sets.
| uint32_t vg::DinucleotideMachine::update_state | ( | uint32_t | state, |
| char | next ) const |
Get the dinucleotide set that results from extending the set by the given character Ns are valid, but will result in no matches
|
private |
|
private |
1.17.0