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

#include <genome_state.hpp>

Inheritance diagram for vg::DeleteHaplotypeCommand:
vg::GenomeStateCommand

Public Member Functions

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

Public Attributes

unordered_map< const Snarl *, vector< size_t > > deletions
 

Constructor & Destructor Documentation

◆ ~DeleteHaplotypeCommand()

virtual vg::DeleteHaplotypeCommand::~DeleteHaplotypeCommand ( )
virtualdefault

Member Function Documentation

◆ execute()

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

For each snarl, delete the haplotype in each overall lane in the vector. You must specify out the deletions for all the snarls in a haplotype; we won't automatically go and find the children if you just list to delete from the parents. Deletions happen from begin to end through each vector. Lane numbers for a given snarl must be strictly decreasing.


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