vg
tools for working with variation graphs
|
#include <genome_state.hpp>
Public Member Functions | |
virtual GenomeStateCommand * | execute (GenomeState &state) const |
virtual | ~ReplaceLocalHaplotypeCommand ()=default |
Public Member Functions inherited from vg::GenomeStateCommand | |
virtual | ~GenomeStateCommand ()=default |
Public Attributes | |
unordered_map< const Snarl *, vector< size_t > > | deletions |
unordered_map< const Snarl *, vector< vector< pair< handle_t, size_t > > > > | insertions |
We can use this to replace a local haplotype within one or more snarls. We also could just express all the deletions and insertions in terms of this.
|
virtualdefault |
|
virtual |
Execute this command on the given state and return the reverse command. Generally ends up calling a command-type-specific method on the GenomeState that does the actual work.
Implements vg::GenomeStateCommand.
unordered_map<const Snarl*, vector<size_t> > vg::ReplaceLocalHaplotypeCommand::deletions |
Holds, for each snarl, the overall lanes that have to be deleted. Each deleted overall lane for a snarl that is still traversed from its parent needs to be replaced in insertions. Deletions happen first.
unordered_map<const Snarl*, vector<vector<pair<handle_t, size_t> > > > vg::ReplaceLocalHaplotypeCommand::insertions |
Holds, for each Snarl, the visits and their lane assignments that have to be inserted.