vg
tools for working with variation graphs
|
#include <sampler.hpp>
Public Member Functions | |
virtual | ~AbstractReadSampler ()=default |
AbstractReadSampler (PathPositionHandleGraph &graph) | |
Make a new sampler using the given graph. More... | |
Public Attributes | |
bool | multi_position_annotations = false |
size_t | max_tries = 100 |
What limit should we use for retry loops before giving up or failing? More... | |
std::unique_ptr< std::function< bool(const path_handle_t &)> > | annotation_path_filter |
Protected Member Functions | |
void | annotate_with_path_positions (Alignment &aln) |
Protected Attributes | |
PathPositionHandleGraph & | graph |
The graph being simulated against. More... | |
Interface for shared functionality for things that sample reads.
|
virtualdefault |
|
inline |
Make a new sampler using the given graph.
|
protected |
Annotate the given alignment with the appropriate type of path positions.
std::unique_ptr<std::function<bool(const path_handle_t&)> > vg::AbstractReadSampler::annotation_path_filter |
Set to a filter function that returns true if a given path in the graph is allowed to be used as an annotation path.
|
protected |
The graph being simulated against.
size_t vg::AbstractReadSampler::max_tries = 100 |
What limit should we use for retry loops before giving up or failing?
bool vg::AbstractReadSampler::multi_position_annotations = false |
If true, annotate alignments with multiple positions along reference paths. If false, annotate them with minimum visited positions along reference paths.