kaori
A C++ library for barcode extraction and matching
|
Handler for dual barcodes with extra diagnostics. More...
#include <DualBarcodesSingleEndWithDiagnostics.hpp>
Public Member Functions | |
DualBarcodesSingleEndWithDiagnostics (const char *template_seq, size_t template_length, const std::vector< BarcodePool > &barcode_pools, const typename DualBarcodesSingleEnd< max_size >::Options &options) | |
void | sort () |
const std::vector< int > & | get_counts () const |
const std::vector< std::array< int, num_variable > > & | get_combinations () const |
int | get_total () const |
Handler for dual barcodes with extra diagnostics.
This provides the same information as DualBarcodesSingleEnd
but also captures the frequency of the invalid combinations. These frequences can be helpful for diagnosing problems with library construction.
max_size | Maximum length of the template sequences on both reads. |
num_variable | Number of the template sequences on both reads. |
|
inline |
[in] | template_seq | Pointer to a character array containing the template sequence. |
template_length | Length of the template. This should be less than or equal to max_size . | |
barcode_pools | Pools of known barcode sequences for each variable region in the template. Each pool should have the same length, and corresponding values across pools define a specific combination of barcodes. | |
options | Optional parameters. |
|
inline |
|
inline |
barcode_pool1
and barcode_pool2
in the constructor). Each entry contains the count for the corresponding dual barcode combination.
|
inline |
|
inline |
Sort the invalid combinations for easier frequency counting. Combinations are sorted by the first index, and then the second index.