|
| LegacyCaller (const PathPositionHandleGraph &graph, SupportBasedSnarlCaller &snarl_caller, SnarlManager &snarl_manager, const string &sample_name, const vector< string > &ref_paths={}, const vector< size_t > &ref_path_offsets={}, const vector< int > &ref_path_ploidies={}) |
|
virtual | ~LegacyCaller () |
|
virtual bool | call_snarl (const Snarl &snarl) |
| Call a given snarl, and print the output to out_stream. More...
|
|
virtual string | vcf_header (const PathHandleGraph &graph, const vector< string > &contigs, const vector< size_t > &contig_length_overrides={}) const |
| Write the vcf header (version and contigs and basic info) More...
|
|
| GraphCaller (SnarlCaller &snarl_caller, SnarlManager &snarl_manager) |
|
virtual | ~GraphCaller () |
|
virtual void | call_top_level_snarls (const HandleGraph &graph, RecurseType recurse_type=RecurseOnFail) |
|
virtual void | call_top_level_chains (const HandleGraph &graph, size_t max_edges, size_t max_trivial, RecurseType recurise_type=RecurseOnFail) |
|
void | set_show_progress (bool show_progress) |
| toggle progress messages More...
|
|
| VCFOutputCaller (const string &sample_name) |
|
virtual | ~VCFOutputCaller () |
|
bool | add_variant (vcflib::Variant &var) const |
|
void | write_variants (ostream &out_stream, const SnarlManager *snarl_manager=nullptr) |
|
void | vcf_fixup (vcflib::Variant &var) const |
| Run vcffixup from vcflib. More...
|
|
void | set_translation (const unordered_map< nid_t, pair< string, size_t >> *translation) |
| Add a translation map. More...
|
|
void | set_nested (bool nested) |
| Assume writing nested snarls is enabled. More...
|
|
|
pair< vector< SnarlTraversal >, vector< int > > | top_down_genotype (const Snarl &snarl, TraversalFinder &trav_finder, int ploidy, const string &ref_path_name, pair< size_t, size_t > ref_interval) const |
|
SnarlTraversal | get_reference_traversal (const Snarl &snarl, TraversalFinder &trav_finder) const |
| we need the reference traversal for VCF, but if the ref is not called, the above method won't find it. More...
|
|
tuple< vector< SnarlTraversal >, vector< int >, unique_ptr< SnarlCaller::CallInfo > > | re_genotype (const Snarl &snarl, TraversalFinder &trav_finder, const vector< SnarlTraversal > &in_traversals, const vector< int > &in_genotype, int ploidy, const string &ref_path_name, pair< size_t, size_t > ref_interval) const |
|
bool | is_traversable (const Snarl &snarl) |
| check if a site can be handled by the RepresentativeTraversalFinder More...
|
|
pair< string, PathIndex * > | find_index (const Snarl &snarl, const vector< PathIndex * > path_indexes) const |
| look up a path index for a site and return its name too More...
|
|
vector< Chain > | break_chain (const HandleGraph &graph, const Chain &chain, size_t max_edges, size_t max_trivial) |
| Break up a chain into bits that we want to call using size heuristics. More...
|
|
void | add_allele_path_to_info (const HandleGraph *graph, vcflib::Variant &v, int allele, const Traversal &trav, bool reversed, bool one_based) const |
| add a traversal to the VCF info field in the format of a GFA W-line or GAF path More...
|
|
void | add_allele_path_to_info (vcflib::Variant &v, int allele, const SnarlTraversal &trav, bool reversed, bool one_based) const |
| legacy version of above More...
|
|
string | trav_string (const HandleGraph &graph, const SnarlTraversal &trav) const |
| convert a traversal into an allele string More...
|
|
bool | emit_variant (const PathPositionHandleGraph &graph, SnarlCaller &snarl_caller, const Snarl &snarl, const vector< SnarlTraversal > &called_traversals, const vector< int > &genotype, int ref_trav_idx, const unique_ptr< SnarlCaller::CallInfo > &call_info, const string &ref_path_name, int ref_offset, bool genotype_snarls, int ploidy, function< string(const vector< SnarlTraversal > &, const vector< int > &, int, int, int)> trav_to_string=nullptr) |
|
tuple< int64_t, int64_t, bool, step_handle_t, step_handle_t > | get_ref_interval (const PathPositionHandleGraph &graph, const Snarl &snarl, const string &ref_path_name) const |
|
pair< string, int64_t > | get_ref_position (const PathPositionHandleGraph &graph, const Snarl &snarl, const string &ref_path_name, int64_t ref_path_offset) const |
| used for making gaf traversal names More...
|
|
void | flatten_common_allele_ends (vcflib::Variant &variant, bool backward, size_t len_override) const |
|
string | print_snarl (const HandleGraph *grpah, const handle_t &snarl_start, const handle_t &snarl_end, bool in_brackets=false) const |
|
string | print_snarl (const Snarl &snarl, bool in_brackets=false) const |
| legacy version of above More...
|
|
void | scan_snarl (const string &allele_string, function< void(const string &, Snarl &)> callback) const |
|
void | update_nesting_info_tags (const SnarlManager *snarl_manager) |
|
LegacyCaller : Preserves (most of) the old vg call logic by using the RepresentativeTraversalFinder to recursively find traversals through arbitrary sites.