Ymir
.9
Fast\C++toolforcomputationofassemblingprobabilities,statisticalinferenceofassemblingstatisticalmodelandgenerationofartificialsequencesofT-cellreceptorsdata.
|
Class for representing VJ / VD / DJ insertions models - either a mono-nucleotide or a di-nucleotide model. More...
#include <insertionmodel.h>
Public Types | |
typedef unique_ptr< prob_t[]> | prob_array_t |
Public Member Functions | |
AbstractInsertionModel (uint8_t size, prob_t err_prob=0) | |
AbstractInsertionModel (uint8_t size, std::vector< prob_t >::const_iterator start, prob_t err_prob=0) | |
AbstractInsertionModel (const AbstractInsertionModel &other) | |
AbstractInsertionModel & | operator= (const AbstractInsertionModel &other) |
virtual sequence_t | generate (seq_len_t len, std::default_random_engine &rg, char first_char=NULL_CHAR, bool reverse=false) const =0 |
prob_t | err_prob () const |
virtual prob_t | nucProbability (const std::string &sequence, char first_char=NULL_CHAR, bool with_errors=false) const =0 |
Probability of the given nucleotide sequence. | |
virtual prob_t | nucProbability (std::string::const_iterator start, seq_len_t sequence_len, char first_char=NULL_CHAR, bool with_errors=false) const =0 |
virtual prob_t | nucProbability (std::string::const_reverse_iterator start, seq_len_t sequence_len, char first_char=NULL_CHAR, bool with_errors=false) const =0 |
virtual prob_t | aaProbability (const std::string &sequence, seq_len_t first_nuc_pos, seq_len_t last_nuc_pos, char first_char=NULL_CHAR) const =0 |
virtual prob_t | aaProbability (std::string::const_iterator start, seq_len_t first_nuc_pos, seq_len_t last_nuc_pos, char first_char=NULL_CHAR) const =0 |
virtual prob_t | aaProbability (std::string::const_reverse_iterator start, seq_len_t first_nuc_pos, seq_len_t last_nuc_pos, char first_char=NULL_CHAR) const =0 |
Event probability access. | |
prob_t | operator[] (uint8_t index) const |
Protected Member Functions | |||||
Update chain probabilities. | |||||
Update internal std::vector of nucleotide joint probabilities.
| |||||
void | updateProbabilities (std::vector< prob_t >::const_iterator start) | ||||
void | updateProbabilities (prob_t *start) | ||||
void | updateProbabilities (std::vector< prob_t >::const_iterator start, prob_t err_prob) | ||||
void | updateProbabilities (prob_t *start, prob_t err_prob) | ||||
Protected Attributes | |
prob_array_t | _arr |
prob_t | _err_prob |
uint8_t | _size |
Class for representing VJ / VD / DJ insertions models - either a mono-nucleotide or a di-nucleotide model.
|
protected |
Representation for a std::vector (#elements = 4) or a matrix (#elements = 16) with transition probabilities; rows and cols are for A-C-G-T (sequentially).