vg
tools for working with variation graphs
|
#include <gbwt_extender.hpp>
Public Types | |
typedef std::pair< handle_t, int64_t > | seed_type |
Public Member Functions | |
size_t | length () const |
Length of the extension. More... | |
bool | empty () const |
Is the extension empty? More... | |
bool | full () const |
Is the extension a full-length alignment? More... | |
bool | exact () const |
Is the extension an exact match? More... | |
size_t | mismatches () const |
Number of mismatches in the extension. More... | |
bool | contains (const HandleGraph &graph, seed_type seed) const |
Does the extension contain the seed? More... | |
Position | starting_position (const HandleGraph &graph) const |
Return the starting position of the extension. More... | |
Position | tail_position (const HandleGraph &graph) const |
Return the position after the extension. More... | |
size_t | tail_offset (const HandleGraph &graph) const |
Return the node offset after the extension. More... | |
size_t | overlap (const HandleGraph &graph, const GaplessExtension &another) const |
Number of shared (read position, graph position) pairs in the extensions. More... | |
GaplessExtension | prefix (size_t prefix_length) const |
Take a prefix of the extension as a new GaplessExtension object. More... | |
Path | to_path (const HandleGraph &graph, const std::string &sequence) const |
Convert the extension into a Path. The sequence should be the full read-space sequence. More... | |
bool | operator< (const GaplessExtension &another) const |
For priority queues. More... | |
bool | operator== (const GaplessExtension &another) const |
bool | operator!= (const GaplessExtension &another) const |
Two extensions are not equal if the state, the read interval, or the node offset is different. More... | |
Public Attributes | |
std::vector< handle_t > | path |
size_t | offset |
gbwt::BidirectionalState | state |
std::pair< size_t, size_t > | read_interval |
std::vector< size_t > | mismatch_positions |
int32_t | score |
bool | left_full |
bool | right_full |
bool | left_maximal |
bool | right_maximal |
uint32_t | internal_score |
uint32_t | old_score |
A result of the gapless extension of a seed.
typedef std::pair<handle_t, int64_t> vg::GaplessExtension::seed_type |
bool vg::GaplessExtension::contains | ( | const HandleGraph & | graph, |
seed_type | seed | ||
) | const |
Does the extension contain the seed?
|
inline |
Is the extension empty?
|
inline |
Is the extension an exact match?
|
inline |
Is the extension a full-length alignment?
|
inline |
Length of the extension.
|
inline |
Number of mismatches in the extension.
|
inline |
Two extensions are not equal if the state, the read interval, or the node offset is different.
|
inline |
For priority queues.
|
inline |
Two extensions are equal if the same read interval matches the same search state with the same node offset.
size_t vg::GaplessExtension::overlap | ( | const HandleGraph & | graph, |
const GaplessExtension & | another | ||
) | const |
Number of shared (read position, graph position) pairs in the extensions.
GaplessExtension vg::GaplessExtension::prefix | ( | size_t | prefix_length | ) | const |
Take a prefix of the extension as a new GaplessExtension object.
Position vg::GaplessExtension::starting_position | ( | const HandleGraph & | graph | ) | const |
Return the starting position of the extension.
size_t vg::GaplessExtension::tail_offset | ( | const HandleGraph & | graph | ) | const |
Return the node offset after the extension.
Position vg::GaplessExtension::tail_position | ( | const HandleGraph & | graph | ) | const |
Return the position after the extension.
Path vg::GaplessExtension::to_path | ( | const HandleGraph & | graph, |
const std::string & | sequence | ||
) | const |
Convert the extension into a Path. The sequence should be the full read-space sequence.
uint32_t vg::GaplessExtension::internal_score |
bool vg::GaplessExtension::left_full |
bool vg::GaplessExtension::left_maximal |
std::vector<size_t> vg::GaplessExtension::mismatch_positions |
size_t vg::GaplessExtension::offset |
uint32_t vg::GaplessExtension::old_score |
std::vector<handle_t> vg::GaplessExtension::path |
std::pair<size_t, size_t> vg::GaplessExtension::read_interval |
bool vg::GaplessExtension::right_full |
bool vg::GaplessExtension::right_maximal |
int32_t vg::GaplessExtension::score |
gbwt::BidirectionalState vg::GaplessExtension::state |