kaori
A C++ library for barcode extraction and matching
|
Handler for dual barcodes with extra diagnostics. More...
#include <DualBarcodesPairedEndWithDiagnostics.hpp>
Public Member Functions | |
DualBarcodesPairedEndWithDiagnostics (const char *template_seq1, size_t template_length1, const BarcodePool &barcode_pool1, const char *template_seq2, size_t template_length2, const BarcodePool &barcode_pool2, const typename DualBarcodesPairedEnd< max_size >::Options &options) | |
void | sort () |
const std::vector< int > & | get_counts () const |
const std::vector< std::array< int, 2 > > & | get_combinations () const |
int | get_total () const |
int | get_barcode1_only () const |
int | get_barcode2_only () const |
Handler for dual barcodes with extra diagnostics.
This provides the same information as DualBarcodesPairedEnd
but also captures the frequency of the invalid combinations. These frequences can be helpful for diagnosing problems with library construction. The handler also counts the number of reads where only one barcode construct matches to a read.
max_size | Maximum length of the template sequences on both reads. |
|
inline |
[in] | template_seq1 | Pointer to a character array containing the first template sequence. This should contain exactly one variable region. |
template_length1 | Length of the first template. This should be less than or equal to max_size . | |
barcode_pool1 | Pool of known barcode sequences for the variable region in the first template. | |
[in] | template_seq2 | Pointer to a character array containing the second template sequence. This should contain exactly one variable region. |
template_length2 | Length of the second template. This should be less than or equal to max_size . | |
barcode_pool2 | Pool of known barcode sequences for the variable region in the second template. | |
options | Optional parameters. |
barcode_pool1
and barcode_pool2
are expected to have the same number of barcodes (possibly duplicated). Corresponding values across the two pools define a particular combination of dual barcodes.
|
inline |
|
inline |
|
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.