|
kaori
A C++ library for barcode extraction and matching
|
Handler for dual barcodes. More...
#include <DualBarcodesPairedEnd.hpp>
Classes | |
| struct | Options |
Optional parameters for DualBarcodesPairedEnd. More... | |
Public Member Functions | |
| DualBarcodesPairedEnd (const char *template_seq1, SeqLength template_length1, const BarcodePool &barcode_pool1, const char *template_seq2, SeqLength template_length2, const BarcodePool &barcode_pool2, const Options &options) | |
| const std::vector< Count > & | get_counts () const |
| Count | get_total () const |
Handler for dual barcodes.
In this design, each read contains a vector sequence created from a template with a single variable region. For one read, the barcode is drawn from one pool of options, while the other read contains a barcode from another pool. However, unlike CombinatorialBarcodesPairedEnd, the combinations are not random but are specifically assembled, typically corresponding to specific pairs of genes. This handler will capture the frequencies of each barcode combination.
| 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 array pointed to by template_seq1. 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 array pointed to by template_seq2. 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. Corresponding values across the two pools define a particular combination of dual barcodes. Duplication of sequences within each pool is allowed; only identical pairs are considered to be duplicates with respect to Options::duplicates.
|
inline |
barcode_pool1 and barcode_pool2 in the constructor). Each entry contains the count for the corresponding dual barcode combination.
|
inline |