kaori
A C++ library for barcode extraction and matching
|
Handler for single-end combinatorial barcodes. More...
#include <CombinatorialBarcodesSingleEnd.hpp>
Classes | |
struct | Options |
Optional parameters for CombinatorialBarcodeSingleEnd . More... | |
Public Member Functions | |
template<class BarcodePoolContainer > | |
CombinatorialBarcodesSingleEnd (const char *template_seq, SeqLength template_length, const BarcodePoolContainer &barcode_pools, const Options &options) | |
CombinatorialBarcodesSingleEnd & | set_first (bool t=true) |
const std::unordered_map< std::array< BarcodeIndex, num_variable_ >, Count, CombinationHash< num_variable_ > > & | get_combinations () const |
Count | get_total () const |
Handler for single-end combinatorial barcodes.
In this design, the vector sequence is created from a template with multiple variable regions. Each region contains a barcode from a different pool of options, where combinations are assembled randomly by library construction. The idea is to use the large number of combinations to provide many unique identifiers, e.g., for cell-tracing applications. This handler will capture the frequencies of each barcode combination.
max_size_ | Maximum length of the template sequences on both reads. |
num_variable_ | Number of variable regions in the construct. |
|
inline |
[in] | template_seq | Pointer to a character array containing the template sequence. This should contain exactly num_variable_ variable regions. |
template_length | Length of the array pointed to by template_seq . This should be less than or equal to max_size_ . | |
barcode_pools | Array containing the barcode pools for each of the variable regions, in the order of their appearance in the template sequence. | |
options | Optional parameters. |
BarcodePoolContainer | Some iterable container of BarcodePool instances, usually either a std::vector or a std::array . |
|
inline |
|
inline |
|
inline |
t | Whether to search only for the first match. If false , the handler will search for the best match (i.e., fewest mismatches) instead. |
CombinatorialBarcodesSingleEnd
instance.