vg
tools for working with variation graphs
Public Member Functions | Public Attributes | List of all members
vg::Translator Class Reference

#include <translator.hpp>

Public Member Functions

 Translator (void)
 
 Translator (istream &in)
 
 Translator (const vector< Translation > &trans)
 
void load (const vector< Translation > &trans)
 
void build_position_table (void)
 
Translation get_translation (const Position &position)
 
bool has_translation (const Position &position, bool ignore_strand=true)
 
Position translate (const Position &position)
 
Position translate (const Position &position, const Translation &translation)
 
Edge translate (const Edge &edge)
 
Mapping translate (const Mapping &mapping)
 
Path translate (const Path &path)
 
Alignment translate (const Alignment &aln)
 
Locus translate (const Locus &locus)
 
Translation overlay (const Translation &trans)
 

Public Attributes

vector< Translationtranslations
 
map< pos_t, Translation * > pos_to_trans
 

Detailed Description

Class to map paths into a base graph found via a set of Translations

Constructor & Destructor Documentation

◆ Translator() [1/3]

vg::Translator::Translator ( void  )

◆ Translator() [2/3]

vg::Translator::Translator ( istream &  in)

◆ Translator() [3/3]

vg::Translator::Translator ( const vector< Translation > &  trans)

Member Function Documentation

◆ build_position_table()

void vg::Translator::build_position_table ( void  )

◆ get_translation()

Translation vg::Translator::get_translation ( const Position position)

◆ has_translation()

bool vg::Translator::has_translation ( const Position position,
bool  ignore_strand = true 
)

◆ load()

void vg::Translator::load ( const vector< Translation > &  trans)

◆ overlay()

Translation vg::Translator::overlay ( const Translation trans)

◆ translate() [1/7]

Alignment vg::Translator::translate ( const Alignment aln)

◆ translate() [2/7]

Edge vg::Translator::translate ( const Edge edge)

◆ translate() [3/7]

Locus vg::Translator::translate ( const Locus locus)

◆ translate() [4/7]

Mapping vg::Translator::translate ( const Mapping mapping)

◆ translate() [5/7]

Path vg::Translator::translate ( const Path path)

◆ translate() [6/7]

Position vg::Translator::translate ( const Position position)

◆ translate() [7/7]

Position vg::Translator::translate ( const Position position,
const Translation translation 
)

Member Data Documentation

◆ pos_to_trans

map<pos_t, Translation*> vg::Translator::pos_to_trans

◆ translations

vector<Translation> vg::Translator::translations

The documentation for this class was generated from the following files: