vg
tools for working with variation graphs
|
#include <traversal_finder.hpp>
Public Member Functions | |
GBWTTraversalFinder (const HandleGraph &graph, const gbwt::GBWT &gbwt) | |
virtual | ~GBWTTraversalFinder () |
virtual vector< SnarlTraversal > | find_traversals (const Snarl &site) |
virtual vector< Traversal > | find_traversals (const handle_t &snarl_start, const handle_t &snarl_end) |
virtual pair< vector< SnarlTraversal >, vector< vector< gbwt::size_type > > > | find_gbwt_traversals (const Snarl &site, bool return_paths=true) |
virtual pair< vector< Traversal >, vector< vector< gbwt::size_type > > > | find_gbwt_traversals (const handle_t &snarl_start, const handle_t &snarl_end, bool return_paths=true) |
virtual pair< vector< SnarlTraversal >, vector< gbwt::size_type > > | find_path_traversals (const Snarl &site) |
virtual pair< vector< Traversal >, vector< gbwt::size_type > > | find_path_traversals (const handle_t &snarl_start, const handle_t &snarl_end) |
const gbwt::GBWT & | get_gbwt () |
Public Member Functions inherited from vg::TraversalFinder | |
virtual | ~TraversalFinder ()=default |
Protected Member Functions | |
vector< pair< vector< gbwt::node_type >, gbwt::SearchState > > | get_spanning_haplotypes (handle_t start, handle_t end) |
Protected Attributes | |
const HandleGraph & | graph |
const gbwt::GBWT & | gbwt |
Rerturn all traversals of a snarl that correspond to haplotypes stored in a GBWT
vg::GBWTTraversalFinder::GBWTTraversalFinder | ( | const HandleGraph & | graph, |
const gbwt::GBWT & | gbwt | ||
) |
|
virtual |
|
virtual |
|
virtual |
Return the traversals, paired with their path identifiers in the gbwt. The traversals are unique, but there can be more than one path along each one (hence the vector)
|
virtual |
|
virtual |
Return traversals paired with path identifiers from the GBWT. The traversals are not unique (which is consistent with PathTraversalFinder) To get the sample name from the path identifier id, use gbwtgraph::get_path_sample_name();
|
virtual |
Reimplemented from vg::TraversalFinder.
|
virtual |
Implements vg::TraversalFinder.
|
inline |
|
protected |
Breadth first search from the start to the end, only branching if there's a haplotype in the GBWT, and returning all unique haplotypes found.
|
protected |
|
protected |