vg
tools for working with variation graphs
|
Public Member Functions | |
seed_info_t (size_t index, bool is_rev, size_t flank, bool right_side, size_t nested_snarl_offset, const size_t &depth, const forest_growing_state_t &forest_state) | |
pos_t | reverse_seed () const |
Public Attributes | |
pos_t | seed_pos |
The seed at the edge of the chain (first/last) More... | |
size_t | node_length |
Length of the seed's node. More... | |
const ZipCode & | zipcode |
The seed's non-reversed zipcode. More... | |
size_t | flank_offset |
Its offset from the edge (i.e. chain.distances.first/second) More... | |
bool | right_side |
Whether to use the right/left side of the seed. More... | |
size_t | rank |
Rank of the seed's chain in the snarl. More... | |
size_t | nested_snarl_offset |
Store edgemost seeds in chains when creating a snarl's distance matrix We make one pass over each chain, remembering its edge seeds, and then use those seeds to calculate all distances
vg::ZipCodeForest::seed_info_t::seed_info_t | ( | size_t | index, |
bool | is_rev, | ||
size_t | flank, | ||
bool | right_side, | ||
size_t | nested_snarl_offset, | ||
const size_t & | depth, | ||
const forest_growing_state_t & | forest_state | ||
) |
Pass the seed's index (which is looked up from forest_state.seeds), whether its position should be reversed, and then a few raw values In addition, snarl depth & forest_state are used to look up seed info
|
inline |
size_t vg::ZipCodeForest::seed_info_t::flank_offset |
Its offset from the edge (i.e. chain.distances.first/second)
size_t vg::ZipCodeForest::seed_info_t::nested_snarl_offset |
If this seed is in a nested snarl, and we're calculating using minimum_distance, then we might need to subtract the offset from inner seed to inner snarl edge
size_t vg::ZipCodeForest::seed_info_t::node_length |
Length of the seed's node.
size_t vg::ZipCodeForest::seed_info_t::rank |
Rank of the seed's chain in the snarl.
bool vg::ZipCodeForest::seed_info_t::right_side |
Whether to use the right/left side of the seed.
pos_t vg::ZipCodeForest::seed_info_t::seed_pos |
The seed at the edge of the chain (first/last)
const ZipCode& vg::ZipCodeForest::seed_info_t::zipcode |
The seed's non-reversed zipcode.