vg
tools for working with variation graphs
|
#include <chain_items.hpp>
Public Member Functions | |
size_t | read_start () const |
Get the start position in the read of this anchor's match. More... | |
const pos_t & | graph_start () const |
Get the start position in the graph of this anchor's match. More... | |
size_t | read_exclusion_start () const |
size_t | length () const |
Get the length of this anchor's match. More... | |
int | score () const |
Get the alignment score of the anchor. More... | |
size_t | read_end () const |
Get the end position in the read of this anchor's match. More... | |
pos_t | graph_end () const |
Get the end position in the graph of this anchor's match. More... | |
size_t | read_exclusion_end () const |
size_t | seed_start () const |
size_t | seed_end () const |
ZipCode * | start_hint () const |
size_t | start_hint_offset () const |
ZipCode * | end_hint () const |
size_t | end_hint_offset () const |
size_t | base_seed_length () const |
bool | is_skippable () const |
Anchor (size_t read_start, const pos_t &graph_start, size_t length, size_t margin_before, size_t margin_after, int score, size_t seed_number=std::numeric_limits< size_t >::max(), ZipCode *hint=nullptr, size_t hint_start=0, bool skippable=false) | |
Anchor (const Anchor &first, const Anchor &last, size_t extra_margin_before, size_t extra_margin_after, int score) | |
Anchor ()=default | |
Anchor (const Anchor &other)=default | |
Anchor & | operator= (const Anchor &other)=default |
Anchor (Anchor &&other)=default | |
Anchor & | operator= (Anchor &&other)=default |
Protected Attributes | |
size_t | start |
size_t | size |
size_t | margin_before |
size_t | margin_after |
pos_t | start_pos |
pos_t | end_pos |
int | points |
size_t | start_seed |
size_t | end_seed |
ZipCode * | start_zip |
ZipCode * | end_zip |
size_t | start_offset |
size_t | end_offset |
size_t | seed_length |
bool | skippable |
Represents a piece fo a graph node matching to a piece of a read. Can be chained together.
|
inline |
Compose a read start position, graph start position, and match length into an Anchor. Can also bring along a distance hint and a seed number.
|
inline |
Compose two Anchors into an Anchor that represents coming in through the first one and going out through the second, like a tunnel. Useful for representing chains as chainable items.
|
default |
|
default |
|
default |
|
inline |
Get the length of the exclusion zone for a primary anchor, or the average such length of the anchors this anchor is made from for a composite anchor. This is used in gap scoring during chaining, to make sure gap scores don't get enormous for long composite anchors.
|
inline |
Get the distance-finding hint information (i.e. "zip code") for accelerating distance queries from the end of this anchor, or null if none is set.
|
inline |
Get the graph distance from wherever the end hint is positioned forward to the actual end of the anchor.
|
inline |
Get the end position in the graph of this anchor's match.
|
inline |
Get the start position in the graph of this anchor's match.
|
inline |
Can this anchor be skipped when constructing an alignment? This will be true if the anchor is in a repetitive region of the read
|
inline |
Get the length of this anchor's match.
|
inline |
Get the end position in the read of this anchor's match.
|
inline |
Get the end position in the read of the part of the read that you can't have another anchor in if you take this one.
|
inline |
Get the start position in the read of the part of the read that you can't have another anchor in if you take this one.
We trimmed the anchors down from the minimizers to avoid having to deal with the tail ends of the minimizers going multiple places in the graph. But we don't want to let you take anchors from minimizers that overlapped.
|
inline |
Get the start position in the read of this anchor's match.
|
inline |
Get the alignment score of the anchor.
|
inline |
Get the number of the seed at the end of the chain, or std::numeric_limits<size_t>::max() if not set.
|
inline |
Get the number of the seed at the start of the anchor, or std::numeric_limits<size_t>::max() if not set.
|
inline |
Get the distance-finding hint information (i.e. "zip code") for accelerating distance queries to the start of this anchor, or null if none is set.
|
inline |
Get the graph distance from wherever the start hint is positioned back to the actual start of the anchor.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |