|
vg
tools for working with variation graphs
|
#include <graph_caller.hpp>
Public Types | |
| enum | RecurseType { RecurseOnFail , RecurseAlways , RecurseNever } |
Public Member Functions | |
| 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) |
| virtual bool | call_snarl (const Snarl &snarl)=0 |
| Call a given snarl, and print the output to out_stream. | |
| void | set_show_progress (bool show_progress) |
| toggle progress messages | |
Protected Member Functions | |
| 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. | |
Protected Attributes | |
| SnarlCaller & | snarl_caller |
| Our Genotyper. | |
| SnarlManager & | snarl_manager |
| Our snarls. | |
| bool | show_progress |
| Toggle progress messages. | |
GraphCaller: Use the snarl decomposition to call snarls in a graph
| vg::GraphCaller::GraphCaller | ( | SnarlCaller & | snarl_caller, |
| SnarlManager & | snarl_manager ) |
|
virtual |
|
protected |
Break up a chain into bits that we want to call using size heuristics.
|
pure virtual |
Call a given snarl, and print the output to out_stream.
Implemented in vg::FlowCaller, vg::LegacyCaller, vg::NestedFlowCaller, and vg::VCFGenotyper.
|
virtual |
For every chain, cut it up into pieces using max_edges and max_trivial to cap the size of each piece then make a fake snarl for each chain piece and call it. If a fake snarl fails to call, It's child chains will be recursed on (if selected)_
|
virtual |
Run call_snarl() on every top-level snarl in the manager. For any that return false, try the children, etc. (when recurse_on_fail true) Snarls are processed in parallel
| void vg::GraphCaller::set_show_progress | ( | bool | show_progress | ) |
toggle progress messages
|
protected |
Toggle progress messages.
|
protected |
Our Genotyper.
|
protected |
Our snarls.
1.17.0