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

#include <genome_state.hpp>

Inheritance diagram for vg::InsertHaplotypeCommand:
vg::GenomeStateCommand

Public Member Functions

virtual GenomeStateCommandexecute (GenomeState &state) const
 
virtual ~InsertHaplotypeCommand ()=default
 
- Public Member Functions inherited from vg::GenomeStateCommand
virtual ~GenomeStateCommand ()=default
 

Public Attributes

unordered_map< const Snarl *, vector< vector< pair< handle_t, size_t > > > > insertions
 

Constructor & Destructor Documentation

◆ ~InsertHaplotypeCommand()

virtual vg::InsertHaplotypeCommand::~InsertHaplotypeCommand ( )
virtualdefault

Member Function Documentation

◆ execute()

GenomeStateCommand * vg::InsertHaplotypeCommand::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

◆ insertions

unordered_map<const Snarl*, vector<vector<pair<handle_t, size_t> > > > vg::InsertHaplotypeCommand::insertions

For each snarl, holds several haplotype traversals. The handles in each traversal are annotated with their local lane assignments. This annotation lets the command be basically an undelete, because we can exactly reverse a delete. Insertions are applied from begin to end within each vector. Lane numbers for a given forward handle must strictly increase between vectors and within vectors.


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