|
vg
tools for working with variation graphs
|
#include <banded_global_aligner.hpp>
Public Member Functions | |
| BAMatrix (Alignment &alignment, handle_t node, int64_t top_diag, int64_t bottom_diag, const vector< BAMatrix * > &seeds, int64_t cumulative_seq_len) | |
| ~BAMatrix () | |
| void | fill_matrix (const HandleGraph &graph, int8_t *score_mat, int8_t *nt_table, int8_t gap_open, int8_t gap_extend, bool qual_adjusted, IntType min_inf) |
| Use DP to fill the band with alignment scores. More... | |
| void | init_traceback_indexes (const HandleGraph &graph, int64_t &i, int64_t &j) |
| void | traceback (const HandleGraph &graph, BABuilder &builder, AltTracebackStack &traceback_stack, int64_t &i, int64_t &j, matrix_t &mat, bool &in_lead_gap, const int8_t *score_mat, const int8_t *nt_table, const int8_t gap_open, const int8_t gap_extend, const bool qual_adjusted, IntType const min_inf) |
| void | traceback_over_edge (const HandleGraph &graph, BABuilder &builder, AltTracebackStack &traceback_stack, int64_t &i, int64_t &j, matrix_t &mat, bool &in_lead_gap, int64_t &node_id, const int8_t *score_mat, const int8_t *nt_table, const int8_t gap_open, const int8_t gap_extend, const bool qual_adjusted, IntType const min_inf) |
| void | print_full_matrices (const HandleGraph &graph) |
| Debugging function. More... | |
| void | print_rectangularized_bands (const HandleGraph &graph) |
| Debugging function. More... | |
Private Member Functions | |
| void | print_matrix (const HandleGraph &graph, matrix_t which_mat) |
| Debugging function. More... | |
| void | print_band (const HandleGraph &graph, matrix_t which_mat) |
| Debugging function. More... | |
Private Attributes | |
| int64_t | top_diag |
| The diagonals in the DP matrix that the band passes through with the bottom index inclusive. More... | |
| int64_t | bottom_diag |
| handle_t | node |
| Alignment & | alignment |
| int64_t | cumulative_seq_len |
| Length of shortest sequence leading to matrix from a source node. More... | |
| vector< BAMatrix * > | seeds |
| Matrices for nodes with edges into this node. More... | |
| IntType * | match |
| DP matrix. More... | |
| IntType * | insert_col |
| DP matrix. More... | |
| IntType * | insert_row |
| DP matrix. More... | |
Friends | |
| class | BABuilder |
| class | AltTracebackStack |
| class | BandedGlobalAligner |
Represents the band from the DP matrix for one node in the graph
| vg::BandedGlobalAligner< IntType >::BAMatrix::BAMatrix | ( | Alignment & | alignment, |
| handle_t | node, | ||
| int64_t | top_diag, | ||
| int64_t | bottom_diag, | ||
| const vector< BAMatrix * > & | seeds, | ||
| int64_t | cumulative_seq_len | ||
| ) |
| vg::BandedGlobalAligner< IntType >::BAMatrix::~BAMatrix |
| void vg::BandedGlobalAligner< IntType >::BAMatrix::fill_matrix | ( | const HandleGraph & | graph, |
| int8_t * | score_mat, | ||
| int8_t * | nt_table, | ||
| int8_t | gap_open, | ||
| int8_t | gap_extend, | ||
| bool | qual_adjusted, | ||
| IntType | min_inf | ||
| ) |
Use DP to fill the band with alignment scores.
| void vg::BandedGlobalAligner< IntType >::BAMatrix::init_traceback_indexes | ( | const HandleGraph & | graph, |
| int64_t & | i, | ||
| int64_t & | j | ||
| ) |
|
private |
Debugging function.
| void vg::BandedGlobalAligner< IntType >::BAMatrix::print_full_matrices | ( | const HandleGraph & | graph | ) |
Debugging function.
|
private |
Debugging function.
| void vg::BandedGlobalAligner< IntType >::BAMatrix::print_rectangularized_bands | ( | const HandleGraph & | graph | ) |
Debugging function.
| void vg::BandedGlobalAligner< IntType >::BAMatrix::traceback | ( | const HandleGraph & | graph, |
| BABuilder & | builder, | ||
| AltTracebackStack & | traceback_stack, | ||
| int64_t & | i, | ||
| int64_t & | j, | ||
| matrix_t & | mat, | ||
| bool & | in_lead_gap, | ||
| const int8_t * | score_mat, | ||
| const int8_t * | nt_table, | ||
| const int8_t | gap_open, | ||
| const int8_t | gap_extend, | ||
| const bool | qual_adjusted, | ||
| IntType const | min_inf | ||
| ) |
| void vg::BandedGlobalAligner< IntType >::BAMatrix::traceback_over_edge | ( | const HandleGraph & | graph, |
| BABuilder & | builder, | ||
| AltTracebackStack & | traceback_stack, | ||
| int64_t & | i, | ||
| int64_t & | j, | ||
| matrix_t & | mat, | ||
| bool & | in_lead_gap, | ||
| int64_t & | node_id, | ||
| const int8_t * | score_mat, | ||
| const int8_t * | nt_table, | ||
| const int8_t | gap_open, | ||
| const int8_t | gap_extend, | ||
| const bool | qual_adjusted, | ||
| IntType const | min_inf | ||
| ) |
|
friend |
|
friend |
|
friend |
|
private |
|
private |
|
private |
Length of shortest sequence leading to matrix from a source node.
|
private |
DP matrix.
|
private |
DP matrix.
|
private |
DP matrix.
|
private |
|
private |
Matrices for nodes with edges into this node.
|
private |
The diagonals in the DP matrix that the band passes through with the bottom index inclusive.
1.8.17