vg
tools for working with variation graphs
Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | List of all members
vg::WFANode Struct Reference

Public Member Functions

 WFANode (const gbwtgraph::CachedGBWTGraph &graph, const gbwt::SearchState &state, pos_t target, std::uint32_t parent)
 
size_t length () const
 
bool is_leaf () const
 
bool expanded () const
 
MatchPos find_pos (size_t type, int32_t score, int32_t diagonal, const MatchPos::PathList &path) const
 
void update (size_t type, int32_t score, int32_t diagonal, const MatchPos &pos)
 
void update (size_t type, int32_t score, int32_t diagonal, uint32_t seq_offset, uint32_t node_offset)
 
void match_forward (const std::string &sequence, MatchPos &pos) const
 

Public Attributes

gbwt::vector_type path
 
gbwt::SearchState state
 
std::string node_sequence
 
std::uint32_t parent
 
std::vector< std::uint32_t > children
 
std::uint32_t target_offset
 
bool dead_end
 
std::array< hash_map< WFAPoint::key_type, WFAPoint::value_type >, 3 > wavefronts
 

Static Public Attributes

constexpr static size_t TARGET_LENGTH = 1024
 
constexpr static size_t MATCHES = 0
 
constexpr static size_t INSERTIONS = 1
 
constexpr static size_t DELETIONS = 2
 

Private Member Functions

bool append_node (const gbwtgraph::CachedGBWTGraph &graph, gbwt::SearchState next, pos_t target)
 

Constructor & Destructor Documentation

◆ WFANode()

vg::WFANode::WFANode ( const gbwtgraph::CachedGBWTGraph &  graph,
const gbwt::SearchState &  state,
pos_t  target,
std::uint32_t  parent 
)
inline

Member Function Documentation

◆ append_node()

bool vg::WFANode::append_node ( const gbwtgraph::CachedGBWTGraph &  graph,
gbwt::SearchState  next,
pos_t  target 
)
inlineprivate

◆ expanded()

bool vg::WFANode::expanded ( ) const
inline

◆ find_pos()

MatchPos vg::WFANode::find_pos ( size_t  type,
int32_t  score,
int32_t  diagonal,
const MatchPos::PathList path 
) const
inline

◆ is_leaf()

bool vg::WFANode::is_leaf ( ) const
inline

◆ length()

size_t vg::WFANode::length ( ) const
inline

◆ match_forward()

void vg::WFANode::match_forward ( const std::string &  sequence,
MatchPos pos 
) const
inline

◆ update() [1/2]

void vg::WFANode::update ( size_t  type,
int32_t  score,
int32_t  diagonal,
const MatchPos pos 
)
inline

◆ update() [2/2]

void vg::WFANode::update ( size_t  type,
int32_t  score,
int32_t  diagonal,
uint32_t  seq_offset,
uint32_t  node_offset 
)
inline

Member Data Documentation

◆ children

std::vector<std::uint32_t> vg::WFANode::children

◆ dead_end

bool vg::WFANode::dead_end

◆ DELETIONS

constexpr static size_t vg::WFANode::DELETIONS = 2
staticconstexpr

◆ INSERTIONS

constexpr static size_t vg::WFANode::INSERTIONS = 1
staticconstexpr

◆ MATCHES

constexpr static size_t vg::WFANode::MATCHES = 0
staticconstexpr

◆ node_sequence

std::string vg::WFANode::node_sequence

◆ parent

std::uint32_t vg::WFANode::parent

◆ path

gbwt::vector_type vg::WFANode::path

◆ state

gbwt::SearchState vg::WFANode::state

◆ TARGET_LENGTH

constexpr static size_t vg::WFANode::TARGET_LENGTH = 1024
staticconstexpr

◆ target_offset

std::uint32_t vg::WFANode::target_offset

◆ wavefronts

std::array<hash_map<WFAPoint::key_type, WFAPoint::value_type>, 3> vg::WFANode::wavefronts

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