vg
tools for working with variation graphs
Public Member Functions | Public Attributes | List of all members
vg::ReplaceLocalHaplotypeCommand Struct Reference

#include <genome_state.hpp>

Inheritance diagram for vg::ReplaceLocalHaplotypeCommand:
vg::GenomeStateCommand

Public Member Functions

virtual GenomeStateCommandexecute (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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~ReplaceLocalHaplotypeCommand()

virtual vg::ReplaceLocalHaplotypeCommand::~ReplaceLocalHaplotypeCommand ( )
virtualdefault

Member Function Documentation

◆ execute()

GenomeStateCommand * vg::ReplaceLocalHaplotypeCommand::execute ( GenomeState state) const
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.

Member Data Documentation

◆ deletions

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.

◆ insertions

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.


The documentation for this struct was generated from the following files: