vg
tools for working with variation graphs
|
#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< Translation > | translations |
map< pos_t, Translation * > | pos_to_trans |
Class to map paths into a base graph found via a set of Translations
vg::Translator::Translator | ( | void | ) |
vg::Translator::Translator | ( | istream & | in | ) |
vg::Translator::Translator | ( | const vector< Translation > & | trans | ) |
void vg::Translator::build_position_table | ( | void | ) |
Translation vg::Translator::get_translation | ( | const Position & | position | ) |
bool vg::Translator::has_translation | ( | const Position & | position, |
bool | ignore_strand = true |
||
) |
void vg::Translator::load | ( | const vector< Translation > & | trans | ) |
Translation vg::Translator::overlay | ( | const Translation & | trans | ) |
Position vg::Translator::translate | ( | const Position & | position, |
const Translation & | translation | ||
) |
map<pos_t, Translation*> vg::Translator::pos_to_trans |
vector<Translation> vg::Translator::translations |