vg
tools for working with variation graphs
Public Member Functions | Protected Member Functions | List of all members
handlegraph::MutablePathMetadata Class Referenceabstract

#include <mutable_path_metadata.hpp>

Inheritance diagram for handlegraph::MutablePathMetadata:
handlegraph::PathMetadata handlegraph::MutablePathHandleGraph handlegraph::MutablePathMutableHandleGraph handlegraph::MutablePathDeletableHandleGraph vg::VG

Public Member Functions

virtual ~MutablePathMetadata ()=default
 
virtual path_handle_t create_path (const PathSense &sense, const std::string &sample, const std::string &locus, const size_t &haplotype, const size_t &phase_block, const subrange_t &subrange, bool is_circular=false)
 

Protected Member Functions

virtual path_handle_t create_path_handle (const std::string &name, bool is_circular=false)=0
 

Additional Inherited Members

Detailed Description

This is the interface for mutable embedded path and haplotype thread metadata (see PathMetadata).

Comes with a default implementation of this interface, based on a name-based create_path_handle() and special path name formatting.

Constructor & Destructor Documentation

◆ ~MutablePathMetadata()

virtual handlegraph::MutablePathMetadata::~MutablePathMetadata ( )
virtualdefault

Member Function Documentation

◆ create_path()

path_handle_t handlegraph::MutablePathMetadata::create_path ( const PathSense sense,
const std::string &  sample,
const std::string &  locus,
const size_t &  haplotype,
const size_t &  phase_block,
const subrange_t subrange,
bool  is_circular = false 
)
virtual

Add a path with the given metadata. Any item can be the corresponding unset sentinel (PathMetadata::NO_LOCUS_NAME, PathMetadata::NO_PHASE_BLOCK, etc.).

Implementations may refuse to store paths-or-threads of certain senses when relevant fields are unset.

Handles to other paths must remain valid.

◆ create_path_handle()

virtual path_handle_t handlegraph::MutablePathMetadata::create_path_handle ( const std::string &  name,
bool  is_circular = false 
)
protectedpure virtual

Create a path with the given name. The caller must ensure that no path with the given name exists already, or the behavior is undefined. Returns a handle to the created empty path. Handles to other paths must remain valid.

Implemented in handlegraph::MutablePathHandleGraph.


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