vg
tools for working with variation graphs
|
#include <min_distance.hpp>
Public Types | |
typedef std::uint64_t | code_type |
Static Public Member Functions | |
static code_type | encode (std::tuple< bool, size_t, size_t, bool, size_t, size_t, size_t, size_t, bool > chain_pos) |
static std::tuple< bool, size_t, size_t, bool, size_t, size_t, size_t, size_t, bool > | decode (code_type code) |
Static Public Attributes | |
constexpr static code_type | NO_CODE = std::numeric_limits<code_type>::max() |
constexpr static size_t | NO_VALUE = std::numeric_limits<size_t>::max() |
constexpr static size_t | NODE_LEN_OFFSET = 1 |
constexpr static size_t | END_LEN_OFFSET = 11 |
constexpr static size_t | START_LEN_OFFSET = 21 |
constexpr static size_t | RANK_OFFSET = 31 |
constexpr static size_t | REV_OFFSET = 55 |
constexpr static size_t | LENGTH_WIDTH = 10 |
constexpr static size_t | RANK_WIDTH = 24 |
constexpr static code_type | LENGTH_MASK = (static_cast<code_type>(1) << LENGTH_WIDTH) - 1 |
constexpr static code_type | RANK_MASK = (static_cast<code_type>(1) << RANK_WIDTH) - 1 |
constexpr static size_t | ID_OFFSET = 33 |
constexpr static size_t | ID_WIDTH = 31 |
constexpr static size_t | OFFSET_WIDTH = 32 |
constexpr static code_type | OFFSET_MASK = (static_cast<code_type>(1) << OFFSET_WIDTH) - 1 |
The encoding of distances for positions in top-level chains or top-level simple bubbles. Either stores (chain id, chain offset) for a position on a top-level chain, or (snarl rank, node length, start length, end length) for a position on a simple bubble We store this information in the minimizer index.
typedef std::uint64_t vg::MIPayload::code_type |
|
inlinestatic |
|
inlinestatic |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |