NVBIO
|
A context class for the score_reduce_kernel to be used in best-approx pipeline.
Implements the basic extension bail-out mechanisms of Bowtie2, namely stopping when a given number of extensions of a read failed in a row. This is done keeping a vector of per-read extension 'trys' counters, which start from the maximum allowed number, and get decremented towards zero upon each failure, or reset upon successful extensions.
#include <reduce.h>
Public Methods | |
ReduceBestApproxContext (uint32 *trys, const uint32 n_ext) | |
NVBIO_FORCEINLINE NVBIO_DEVICE void | best_score (const uint32 read_id, const ParamsPOD ¶ms) const |
NVBIO_FORCEINLINE NVBIO_DEVICE void | second_score (const uint32 read_id, const ParamsPOD ¶ms) const |
NVBIO_FORCEINLINE NVBIO_DEVICE bool | failure (const uint32 idx, const uint32 read_id, const uint32 top_flag, const ParamsPOD ¶ms) const |
|
inline |
|
inline |
|
inline |