kaori
A C++ library for barcode extraction and matching
Loading...
Searching...
No Matches
kaori::AnyMismatches::Result Struct Reference

Results of search(). More...

#include <MismatchTrie.hpp>

Public Attributes

BarcodeIndex index = 0
 
int mismatches = 0
 

Detailed Description

Results of search().

Member Data Documentation

◆ index

BarcodeIndex kaori::AnyMismatches::Result::index = 0

Index of the known barcode that matches best to the input sequence in search() (i.e., fewest mismatches). If multiple sequences have the same lowest number of mismatches, the match is ambiguous and STATUS_AMBIGUOUS is returned. If all sequences have more mismatches than max_mismatches, STATUS_UNMATCHED is returned.

◆ mismatches

int kaori::AnyMismatches::Result::mismatches = 0

Number of mismatches with the matching known barcode sequence. This should be ignored if index == STATUS_UNMATCHED, as the search will terminate early without computing the exact number of mismatches if max_mismatches is exceeded.


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