40 using namespace nvbio;
57 const uint32 read_id = diagonal.y;
68 template <u
int32 BAND_LEN>
74 m_genome_len( genome_len ),
83 const uint32 read_id = diagonal.y;
84 const uint32 text_pos = diagonal.x;
87 const uint2 read_range = reads.
get_range( read_id );
88 const uint32 read_len = read_range.y - read_range.x;
91 const uint32 genome_begin = text_pos > BAND_LEN/2 ? text_pos - BAND_LEN/2 : 0u;
92 const uint32 genome_end =
nvbio::min( genome_begin + read_len + BAND_LEN, m_genome_len );
94 return make_uint2( genome_begin, genome_end );