|
vg
tools for working with variation graphs
|
#include <cstdint>#include <iostream>#include <sstream>#include <tuple>#include <handlegraph/types.hpp>Namespaces | |
| namespace | vg |
| namespace | std |
Hash functor to hash NodeSides using std::hash. | |
Typedefs | |
| typedef handlegraph::nid_t | vg::id_t |
| typedef std::tuple< id_t, bool, offset_t > | vg::pos_t |
Functions | |
| pos_t | vg::make_pos_t (id_t id, bool is_rev, offset_t off) |
| Create a pos_t from a Node ID, an orientation flag, and an offset along that strand of the node. | |
| id_t | vg::id (const pos_t &pos) |
| Extract the id of the node a pos_t is on. | |
| bool | vg::is_rev (const pos_t &pos) |
| Return true if a pos_t is on the reverse strand of its node. | |
| offset_t | vg::offset (const pos_t &pos) |
| Get the offset along the selected strand of the node from a pos_t. | |
| id_t & | vg::get_id (pos_t &pos) |
| Get a reference to the Node ID of a pos_t. | |
| bool & | vg::get_is_rev (pos_t &pos) |
| Get a reference to the reverse flag of a pos_t. | |
| offset_t & | vg::get_offset (pos_t &pos) |
| Get a reference to the offset field of a pos_t, which counts along the selected strand of the node. | |
| bool | vg::is_empty (const pos_t &pos) |
| Return true if a pos_t is unset. | |
| pos_t | vg::empty_pos_t () |
| Get an unset pos_t. | |
| pos_t | vg::reverse (const pos_t &pos, size_t node_length) |
| pos_t | vg::reverse_base_pos (const pos_t &pos, size_t node_length) |
| Reverse a pos_t and get a pos_t at the same base, going the other direction. | |
| std::ostream & | vg::operator<< (std::ostream &out, const pos_t &pos) |
| Print a pos_t to a stream. | |
| string | std::to_string (const vg::pos_t &pos) |
Contains typedefs for basic types useful for talking about graphs and basic operations using them.
1.9.8