kaori
A C++ library for barcode extraction and matching
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
kaori::SegmentedBarcodeSearch< num_segments >::Options Struct Reference

Optional parameters for a SegmentedBarcodeSearch. More...

#include <BarcodeSearch.hpp>

Public Member Functions

 Options (int max_mismatch_per_segment=0)
 

Public Attributes

std::array< int, num_segments > max_mismatches
 
bool reverse = false
 
DuplicateAction duplicates = DuplicateAction::ERROR
 

Detailed Description

template<size_t num_segments>
struct kaori::SegmentedBarcodeSearch< num_segments >::Options

Optional parameters for a SegmentedBarcodeSearch.

Constructor & Destructor Documentation

◆ Options()

template<size_t num_segments>
kaori::SegmentedBarcodeSearch< num_segments >::Options::Options ( int  max_mismatch_per_segment = 0)
inline
Parameters
max_mismatch_per_segmentMaximum number of mismatches per segment. This is used to fill max_mismatches.

Member Data Documentation

◆ duplicates

template<size_t num_segments>
DuplicateAction kaori::SegmentedBarcodeSearch< num_segments >::Options::duplicates = DuplicateAction::ERROR

How duplicated barcode sequences should be handled.

◆ max_mismatches

template<size_t num_segments>
std::array<int, num_segments> kaori::SegmentedBarcodeSearch< num_segments >::Options::max_mismatches

Maximum number of mismatches in each segment for SegmentedBarcodeSearch::search(). All values should be non-negative. Defaults to an all-zero array in the Options() constructor.

◆ reverse

template<size_t num_segments>
bool kaori::SegmentedBarcodeSearch< num_segments >::Options::reverse = false

Whether to reverse-complement the barcode sequences before indexing them. Note that, even if reverse = true, the segment lengths in the SegmentedBarcodeSearch() constructor and max_mismatches are still reported in their order on the forward strand.


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