NVBIO
|
A helper scoring context class, which can be used to adapt the basic hamming_alignment_score_dispatch algorithm to various situations, such as: scoring scoring within a window (i.e. saving only the last band within the window) computing checkpoints computing a flow submatrix
Definition at line 56 of file hamming_inl.h.
#include <hamming_inl.h>
Public Methods | |
template<typename column_type , typename scoring_type , typename score_type > | |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE void | init (const uint32 j, const uint32 N, column_type &column, const scoring_type &scoring, const score_type zero) |
template<typename column_type > | |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE void | previous_column (const uint32 j, const uint32 N, const column_type column) |
template<typename column_type > | |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE void | last_column (const uint32 j, const uint32 M, const uint32 N, const column_type column) |
template<typename score_type > | |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE void | new_cell (const uint32 i, const uint32 N, const uint32 j, const uint32 M, const score_type score, const DirectionVector dir) |
|
inline |
initialize the j-th column of the DP matrix
j | column index |
N | column size |
column | column values |
scoring | scoring scheme |
zero | zero value |
Definition at line 68 of file hamming_inl.h.
|
inline |
do something with the last column
j | column index |
N | column size |
column | column values |
Definition at line 101 of file hamming_inl.h.
|
inline |
do something with the newly computed cell
i | row index |
N | number of rows (column size) |
j | column index |
M | number of columns (row size) |
score | computed score |
dir | direction flow |
Definition at line 117 of file hamming_inl.h.
|
inline |
do something with the previous column
j | column index |
N | column size |
column | column values |
Definition at line 89 of file hamming_inl.h.