42 std::size_t current_column,
43 std::size_t previous_row,
44 std::size_t previous_column,
53 previous_row, previous_column, alignment_type};
71std::pair<std::vector<pappso::specpeptidoms::ScenarioCell>,
int>
74 std::pair<std::vector<ScenarioCell>,
int> best_alignment;
79 best_alignment.first.push_back(current_cell);
82 best_alignment.first.push_back(current_cell);
84 return best_alignment;
void saveOrigin(std::size_t current_row, std::size_t current_column, std::size_t previous_row, std::size_t previous_column, int score, AlignType alignment_type)
Stores the origin (cell location and alignment type) of the provided cell in the backtracking matrix.
std::pair< ScenarioCell, int > m_best_alignment
std::vector< std::vector< ScenarioCell > > m_origin_matrix
void reserve(std::size_t n_rows, std::size_t n_columns)
Allocate new storage to the backtracking matrix if needed.
std::pair< std::vector< ScenarioCell >, int > getBestAlignment() const
Returns the scenario cells corresponding to the best alignment and the best alignment's score.
std::size_t previous_column