vg
tools for working with variation graphs
Classes | Namespaces | Functions
position.hpp File Reference
#include <vg/vg.pb.h>
#include "types.hpp"
#include "utility.hpp"
#include "vg/io/json2pb.h"
#include <gcsa/gcsa.h>
#include "handle.hpp"

Classes

class  vg::position_t
 

Namespaces

 vg
 

Functions

Position vg::reverse (const Position &pos, size_t node_length)
 
pos_t vg::make_pos_t (const Position &pos)
 Convert a Position to a (much smaller) pos_t. More...
 
pos_t vg::make_pos_t (const position_t &pos)
 
pos_t vg::make_pos_t (gcsa::node_type node)
 Create a pos_t from a gcsa node. More...
 
Position vg::make_position (const pos_t &pos)
 Convert a pos_t to a Position. More...
 
Position vg::make_position (id_t id, bool is_rev, offset_t off)
 Create a Position from a Node ID, an orientation flag, and an offset along that strand of the node. More...
 
Position vg::make_position (gcsa::node_type node)
 Make a Position from a gcsa node. More...
 
pair< int64_t, int64_t > vg::min_oriented_distances (const unordered_map< path_handle_t, vector< pair< size_t, bool > > > &path_offsets1, const unordered_map< path_handle_t, vector< pair< size_t, bool > > > &path_offsets2)
 Find the min distance in the path offsets where the path orientation is the same and different. More...
 
string vg::debug_string (const position_t &pos)
 
void vg::from_proto_position (const Position &from, position_t &to)
 

Detailed Description

Functions for working with Positions and pos_ts.