#include <graph_caller.hpp>
|
| vector< Chain > | break_chain (const HandleGraph &graph, const Chain &chain, size_t max_edges, size_t max_trivial) const |
| | Break up a chain into bits that we want to call using size heuristics. More...
|
| |
GraphCaller: Use the snarl decomposition to call snarls in a graph
◆ RecurseType
◆ GraphCaller()
◆ ~GraphCaller()
| vg::GraphCaller::~GraphCaller |
( |
| ) |
|
|
virtual |
◆ break_chain()
| vector< Chain > vg::GraphCaller::break_chain |
( |
const HandleGraph & |
graph, |
|
|
const Chain & |
chain, |
|
|
size_t |
max_edges, |
|
|
size_t |
max_trivial |
|
) |
| const |
|
protected |
Break up a chain into bits that we want to call using size heuristics.
◆ call_snarl()
| virtual bool vg::GraphCaller::call_snarl |
( |
const Snarl & |
snarl | ) |
|
|
pure virtual |
◆ call_top_level_chains()
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)_
◆ call_top_level_snarls()
Run call_snarl() on every top-level snarl in the manager, in parallel, and then on children as recurse_type says.
RecurseAlways calls the children of every snarl, RecurseOnFail the children of each snarl whose call returned false, and RecurseNever no children. Calling continues down the snarl tree the same way.
Each snarl is its own parallel job, unless set_snarl_batching(w) was called. Then each job calls, in node-ID order, the top-level snarls whose lower boundary node ID is in one window [k*w, (k+1)*w). Children are always one job each, started in node-ID order.
◆ set_ploidy_regions()
| void vg::GraphCaller::set_ploidy_regions |
( |
PloidyRegions |
regions | ) |
|
Set the ploidy of the regions of the reference that regions covers, in place of the ploidy of their paths.
◆ set_show_progress()
| void vg::GraphCaller::set_show_progress |
( |
bool |
show_progress | ) |
|
◆ set_snarl_batching()
| void vg::GraphCaller::set_snarl_batching |
( |
size_t |
window_size | ) |
|
Make call_top_level_snarls call top-level snarls in batches, by windows of window_size node IDs.
This suits a SnarlCaller that loads its reads one window of node IDs at a time. A size of 0 gives one job per snarl.
◆ ploidy_regions
| PloidyRegions vg::GraphCaller::ploidy_regions |
|
protected |
The ploidy of regions of the reference, which overrides the ploidy of their paths.
◆ RecurseAlways
| constexpr RecurseType vg::GraphCaller::RecurseAlways = RecurseType::Always |
|
staticconstexpr |
◆ RecurseNever
| constexpr RecurseType vg::GraphCaller::RecurseNever = RecurseType::Never |
|
staticconstexpr |
◆ RecurseOnFail
| constexpr RecurseType vg::GraphCaller::RecurseOnFail = RecurseType::OnFail |
|
staticconstexpr |
◆ show_progress
| bool vg::GraphCaller::show_progress |
|
protected |
Toggle progress messages.
◆ snarl_batch_window
| size_t vg::GraphCaller::snarl_batch_window = 0 |
|
protected |
The width, in node IDs, of the windows that top-level snarls are batched by, or 0 for no batching.
◆ snarl_caller
◆ snarl_manager
The documentation for this class was generated from the following files: