vg
tools for working with variation graphs
Public Member Functions | Private Attributes | List of all members
vg::ReadMasker Class Reference

#include <gbwt_extender.hpp>

Public Member Functions

 ReadMasker (const std::string &valid_chars)
 
void operator() (std::string &sequence) const
 Applies the mask to the given sequence. More...
 

Private Attributes

std::vector< char > mask
 

Detailed Description

An utility class that masks all characters except the specified ones with X, which is assumed to not exist in the alignment target.

Constructor & Destructor Documentation

◆ ReadMasker()

vg::ReadMasker::ReadMasker ( const std::string &  valid_chars)
explicit

Creates a new ReadMasker that masks all characters except the specified ones.

Member Function Documentation

◆ operator()()

void vg::ReadMasker::operator() ( std::string &  sequence) const

Applies the mask to the given sequence.

Member Data Documentation

◆ mask

std::vector<char> vg::ReadMasker::mask
private

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