vg
tools for working with variation graphs
|
#include <graph_caller.hpp>
Public Member Functions | |
GAFOutputCaller (AlignmentEmitter *emitter, const string &sample_name, const vector< string > &ref_paths, size_t trav_padding) | |
The emitter object is created and owned by external forces. More... | |
virtual | ~GAFOutputCaller () |
void | emit_gaf_traversals (const PathHandleGraph &graph, const string &snarl_name, const vector< SnarlTraversal > &travs, int64_t ref_trav_idx, const string &ref_path_name, int64_t ref_path_position, const TraversalSupportFinder *support_finder=nullptr) |
print the GAF traversals More... | |
void | emit_gaf_variant (const PathHandleGraph &graph, const string &snarl_name, const vector< SnarlTraversal > &travs, const vector< int > &genotype, int64_t ref_trav_idx, const string &ref_path_name, int64_t ref_path_position, const TraversalSupportFinder *support_finder=nullptr) |
print the GAF genotype More... | |
SnarlTraversal | pad_traversal (const PathHandleGraph &graph, const SnarlTraversal &trav) const |
pad a traversal with (first found) reference path, adding up to trav_padding to each side More... | |
Protected Attributes | |
AlignmentEmitter * | emitter |
string | gaf_sample_name |
Sample name. More... | |
size_t | trav_padding = 0 |
unordered_set< string > | ref_paths |
Reference paths are used to pad out traversals. If there are none, then first path found is used. More... | |
Helper class for outputing snarl traversals as GAF
vg::GAFOutputCaller::GAFOutputCaller | ( | AlignmentEmitter * | emitter, |
const string & | sample_name, | ||
const vector< string > & | ref_paths, | ||
size_t | trav_padding | ||
) |
The emitter object is created and owned by external forces.
|
virtual |
void vg::GAFOutputCaller::emit_gaf_traversals | ( | const PathHandleGraph & | graph, |
const string & | snarl_name, | ||
const vector< SnarlTraversal > & | travs, | ||
int64_t | ref_trav_idx, | ||
const string & | ref_path_name, | ||
int64_t | ref_path_position, | ||
const TraversalSupportFinder * | support_finder = nullptr |
||
) |
print the GAF traversals
void vg::GAFOutputCaller::emit_gaf_variant | ( | const PathHandleGraph & | graph, |
const string & | snarl_name, | ||
const vector< SnarlTraversal > & | travs, | ||
const vector< int > & | genotype, | ||
int64_t | ref_trav_idx, | ||
const string & | ref_path_name, | ||
int64_t | ref_path_position, | ||
const TraversalSupportFinder * | support_finder = nullptr |
||
) |
print the GAF genotype
SnarlTraversal vg::GAFOutputCaller::pad_traversal | ( | const PathHandleGraph & | graph, |
const SnarlTraversal & | trav | ||
) | const |
pad a traversal with (first found) reference path, adding up to trav_padding to each side
|
protected |
|
protected |
Sample name.
|
protected |
Reference paths are used to pad out traversals. If there are none, then first path found is used.
|
protected |
Add padding from reference paths to traversals to make them at least this long (only in emit_gaf_traversals(), not emit_gaf_variant)