| 1 | //(c) 2016 by Authorscxx . . $ `<file>/src/polishing/homo_polisher.h`/ |
| 2 | //This file is a part of ABruijn program. |
| 3 | //Released under the BSD license (see LICENSE file) |
| 4 | |
| 5 | #pragma once |
| 6 | |
| 7 | #include "subs_matrix.h"cxx . . $ `<file>/src/polishing/subs_matrix.h`/ |
| 8 | #include "bubble.h"cxx . . $ `<file>/src/polishing/bubble.h`/ |
| 9 | |
| 10 | class HomoPolishercxx . . $ HomoPolisher# |
| 11 | { |
| 12 | public: |
| 13 | HomoPolishercxx . . $ HomoPolisher#HomoPolisher(be0db796cb6d92c8).(const SubstitutionMatrixcxx . . $ SubstitutionMatrix#& subsMatrix, |
| 14 | const HopoMatrixcxx . . $ HopoMatrix#& hopoMatrix): |
| 15 | _subsMatrixcxx . . $ HomoPolisher#_subsMatrix.(subsMatrix), _hopoMatrixcxx . . $ HomoPolisher#_hopoMatrix.(hopoMatrix) |
| 16 | {} |
| 17 | void polishBubblecxx . . $ HomoPolisher#polishBubble(791a27ebbed0ac18).(Bubblecxx . . $ Bubble#& bubble) const; |
| 18 | |
| 19 | private: |
| 20 | size_t mostLikelyLencxx . . $ HomoPolisher#mostLikelyLen(fe41d9c8d729e247).(char nucleotide, |
| 21 | const HopoMatrixcxx . . $ HopoMatrix#::ObsVectorcxx . . $ HopoMatrix#ObsVector#& obs) const; |
| 22 | size_t compareTopTwocxx . . $ HomoPolisher#compareTopTwo(e9c8fa692971a149).(char nucleotide, size_t firstChoice, |
| 23 | size_t secondChoice, |
| 24 | const HopoMatrixcxx . . $ HopoMatrix#::ObsVectorcxx . . $ HopoMatrix#ObsVector#& observations) const; |
| 25 | AlnScoreTypecxx . . $ AlnScoreType# likelihoodcxx . . $ HomoPolisher#likelihood(55872d5ea58d7370).(HopoMatrixcxx . . $ HopoMatrix#::Statecxx . . $ HopoMatrix#State# state, |
| 26 | const HopoMatrixcxx . . $ HopoMatrix#::ObsVectorcxx . . $ HopoMatrix#ObsVector#& observations) const; |
| 27 | |
| 28 | const SubstitutionMatrixcxx . . $ SubstitutionMatrix#& _subsMatrixcxx . . $ HomoPolisher#_subsMatrix.; |
| 29 | const HopoMatrixcxx . . $ HopoMatrix#& _hopoMatrixcxx . . $ HomoPolisher#_hopoMatrix.; |
| 30 | }; |