vg
tools for working with variation graphs
|
#include <phased_genome.hpp>
Public Member Functions | |
Haplotype (NodeTraversal node_traversal) | |
Construct a haplotype with a single node. More... | |
template<typename NodeTraversalIterator > | |
Haplotype (NodeTraversalIterator first, NodeTraversalIterator last) | |
Construct a haplotype with an iterator that yields NodeTraversals. More... | |
~Haplotype () | |
HaplotypeNode * | append_left (NodeTraversal node_traversal) |
HaplotypeNode * | append_right (NodeTraversal node_traversal) |
Private Attributes | |
PhasedGenome::HaplotypeNode * | left_telomere_node |
Leftmost node in walk. More... | |
PhasedGenome::HaplotypeNode * | right_telomere_node |
Rightmost node in walk. More... | |
unordered_map< const Snarl *, pair< HaplotypeNode *, HaplotypeNode * > > | sites |
Friends | |
class | PhasedGenome |
class | HaplotypeNode |
Specialized linked list that tracks a walk through the variation graph and maintains an index of sites.
vg::PhasedGenome::Haplotype::Haplotype | ( | NodeTraversal | node_traversal | ) |
Construct a haplotype with a single node.
vg::PhasedGenome::Haplotype::Haplotype | ( | NodeTraversalIterator | first, |
NodeTraversalIterator | last | ||
) |
Construct a haplotype with an iterator that yields NodeTraversals.
vg::PhasedGenome::Haplotype::~Haplotype | ( | ) |
|
inline |
Add a haplotype node for this node traversal to left end of haplotye and return new node. Does not maintain indices; intended for use by the PhasedGenome for initial haplotype build.
|
inline |
Add a haplotype node for this node traversal to right end of haplotye and return new node. Does not maintain indices; intended for use by the PhasedGenome for initial haplotype build.
|
friend |
|
friend |
|
private |
Leftmost node in walk.
|
private |
Rightmost node in walk.
|
private |
Index of the location in the haplotype of nested sites. Locations of sites are stored as the nodes on haplotype that correspond to the start and end node of the site. The pair of haplotype nodes is stored in left-to-right order along the haplotype (i.e. .first->prev and .second->next are outside the bubble).