vg
tools for working with variation graphs
|
#include <recombinator.hpp>
Public Member Functions | |
bool | has_start () const |
Returns true if the subchain has a start node. More... | |
bool | has_end () const |
Returns true if the subchain has an end node. More... | |
Public Attributes | |
Haplotypes::Subchain::subchain_t | type |
The type of this subchain. More... | |
handle_t | start |
Start node. More... | |
handle_t | end |
End node. More... | |
std::uint32_t | length |
std::uint32_t | extra_snarls |
A subchain is a substring of a top-level chain defined by at most two boundary nodes.
Normal subchains have two boundary nodes, which are assumed to be the start node of a snarl and the end node of a possibly different snarl. There are assumed to be haplotypes crossing the subchain. Prefixes and suffixes lack one of the boundary nodes, while full haplotypes lack both.
When a top-level chain is partitioned into subchains, the boundary nodes may either overlap or be connected by unary paths. If a snarl is not connected, it may be presented as a suffix and a prefix.
|
inline |
Returns true
if the subchain has an end node.
|
inline |
Returns true
if the subchain has a start node.
handle_t vg::HaplotypePartitioner::Subchain::end |
End node.
std::uint32_t vg::HaplotypePartitioner::Subchain::extra_snarls |
Number of additional snarls included in the subchain to keep reversals within the subchain.
std::uint32_t vg::HaplotypePartitioner::Subchain::length |
Shortest distance from the last base of start
to the first base of end
, if both are present.
handle_t vg::HaplotypePartitioner::Subchain::start |
Start node.
Haplotypes::Subchain::subchain_t vg::HaplotypePartitioner::Subchain::type |
The type of this subchain.