Ymir  .9
Fast\C++toolforcomputationofassemblingprobabilities,statisticalinferenceofassemblingstatisticalmodelandgenerationofartificialsequencesofT-cellreceptorsdata.
aligner_parameters.h
1 //
2 // Created by Vadim N. on 11/03/2016.
3 //
4 
5 #ifndef YMIR_ALIGNER_PARAMETERS_H
6 #define YMIR_ALIGNER_PARAMETERS_H
7 
8 
9 #include "types.h"
10 
11 
12 namespace ymir {
13 
14 
15  struct AlignmentEventScore;
16  struct VDJAlignmentEventScore;
17  struct VDJAlignmentScoreThreshold;
18  struct VDJAlignerParameters;
19 
20 
25 
29  AlignmentEventScore(alignment_score_t match_,
30  alignment_score_t mism_,
31  alignment_score_t indel_)
32  : match(match_),
33  mism(mism_),
34  indel(indel_),
35  acc_match(2),
36  acc_mism(1.7)
37  {
38  }
39 
40 
41  alignment_score_t match, mism, indel, acc_match, acc_mism;
42 
43  };
44 
45 
47 
48  constexpr static const alignment_score_t default_v_match = 3;
49  constexpr static const alignment_score_t default_v_mism = -2.5;
50  constexpr static const alignment_score_t default_v_indel = -3;
51 
52  constexpr static const alignment_score_t default_d_match = 2;
53  constexpr static const alignment_score_t default_d_mism = -3;
54  constexpr static const alignment_score_t default_d_indel = -3;
55 
56  constexpr static const alignment_score_t default_j_match = 3;
57  constexpr static const alignment_score_t default_j_mism = -2.5;
58  constexpr static const alignment_score_t default_j_indel = -3;
59 
60 
62  : v_score(default_v_match, default_v_mism, default_v_indel),
63  d_score(default_d_match, default_d_mism, default_d_indel),
64  j_score(default_j_match, default_j_mism, default_j_indel)
65  {
66  }
67 
68 
70  const AlignmentEventScore &j)
71  : v_score(v),
72  d_score(0, 0, 0),
73  j_score(j)
74  {
75  }
76 
78  const AlignmentEventScore &d,
79  const AlignmentEventScore &j)
80  : v_score(v),
81  d_score(d),
82  j_score(j)
83  {
84  }
85 
86  AlignmentEventScore v_score, d_score, j_score;
87 
88  };
89 
90 
92 
93  constexpr static const alignment_score_t default_v_threshold = 25;
94  constexpr static const alignment_score_t default_d_threshold = 20;
95  constexpr static const alignment_score_t default_j_threshold = 25;
96 
98  : v_threshold(default_v_threshold),
99  d_threshold(default_d_threshold),
100  j_threshold(default_j_threshold)
101  {
102  }
103 
104 
105  VDJAlignmentScoreThreshold(alignment_score_t v, alignment_score_t j)
106  : v_threshold(v),
107  d_threshold(0),
108  j_threshold(j)
109  {
110  }
111 
112 
113  VDJAlignmentScoreThreshold(alignment_score_t v, alignment_score_t d, alignment_score_t j)
114  : v_threshold(v),
115  d_threshold(d),
116  j_threshold(j)
117  {
118  }
119 
120 
121  alignment_score_t v_threshold, d_threshold, j_threshold;
122 
123  };
124 
125 
130 
131  static const seq_len_t default_minlen = 3;
132 
133 
135  : min_D_len(default_minlen) {
136  }
137 
138 
139  VDJAlignerParameters(seq_len_t minlen)
140  : min_D_len(minlen) {
141  }
142 
143 
144  VDJAlignerParameters(seq_len_t minlen,
145  VDJAlignmentEventScore score_)
146  : min_D_len(minlen),
147  score(score_)
148  {
149  }
150 
151 
152 
153  VDJAlignerParameters(seq_len_t minlen,
154  VDJAlignmentEventScore score_,
156  : min_D_len(minlen),
157  threshold(thr_),
158  score(score_)
159  {
160  }
161 
162 
163  seq_len_t min_D_len;
165  VDJAlignmentScoreThreshold threshold;
166 
167  };
168 
169 }
170 
171 #endif //YMIR_ALIGNER_PARAMETERS_H
Definition: aligner.h:37
Definition: aligner_parameters.h:129
Definition: aligner_parameters.h:46
Definition: aligner_parameters.h:91
Definition: aligner_parameters.h:24