NVBIO
|
fm_index_type | the type of the fm-index |
#include <filter.h>
Public Types | |
typedef host_tag | system_tag |
the backend system More... | |
typedef fm_index_type | index_type |
the index type More... | |
typedef index_type::index_type | coord_type |
the coordinate type of the fm-index, uint32|uint64|uint32_2|uint64_2 More... | |
typedef vector_type < coord_type, 2 >::type | range_type |
ranges are either uint32_2 or uint64_2; More... | |
typedef vector_type < coord_type, hit_dim >::type | hit_type |
hits are either uint2 or uint4 More... | |
Public Methods | |
template<typename string_set_type > | |
uint64 | rank (const fm_index_type &index, const string_set_type &string_set) |
template<typename hits_iterator > | |
void | locate (const uint64 begin, const uint64 end, hits_iterator hits) |
uint64 | n_hits () const |
const range_type * | ranges () const |
const uint64 * | ranks () const |
Public Members | |
uint32 | m_n_queries |
index_type | m_index |
uint64 | m_n_occurrences |
thrust::host_vector< range_type > | m_ranges |
thrust::host_vector< uint64 > | m_slots |
Static Public Members | |
static const uint32 | coord_dim = vector_traits<coord_type>::DIM |
static const uint32 | hit_dim = coord_dim*2 |
hits are either uint2 or uint4 More... | |
typedef index_type::index_type nvbio::FMIndexFilter< host_tag, fm_index_type >::coord_type |
typedef vector_type<coord_type,hit_dim>::type nvbio::FMIndexFilter< host_tag, fm_index_type >::hit_type |
typedef fm_index_type nvbio::FMIndexFilter< host_tag, fm_index_type >::index_type |
typedef vector_type<coord_type,2>::type nvbio::FMIndexFilter< host_tag, fm_index_type >::range_type |
typedef host_tag nvbio::FMIndexFilter< host_tag, fm_index_type >::system_tag |
void nvbio::FMIndexFilter< host_tag, fm_index_type >::locate | ( | const uint64 | begin, |
const uint64 | end, | ||
hits_iterator | hits | ||
) |
enumerate all hits in a given range
hits_iterator | a hit_type iterator |
begin | the beginning of the hits sequence to locate, in [0,n_hits) |
end | the end of the hits sequence to locate, in [0,n_hits] |
Definition at line 238 of file filter_inl.h.
|
inline |
|
inline |
uint64 nvbio::FMIndexFilter< host_tag, fm_index_type >::rank | ( | const fm_index_type & | index, |
const string_set_type & | string_set | ||
) |
enact the filter on an FM-index and a string-set
index | the FM-index |
string-set | the query string-set |
Definition at line 202 of file filter_inl.h.
|
inline |
|
static |
|
static |
index_type nvbio::FMIndexFilter< host_tag, fm_index_type >::m_index |
uint64 nvbio::FMIndexFilter< host_tag, fm_index_type >::m_n_occurrences |
uint32 nvbio::FMIndexFilter< host_tag, fm_index_type >::m_n_queries |
thrust::host_vector<range_type> nvbio::FMIndexFilter< host_tag, fm_index_type >::m_ranges |
thrust::host_vector<uint64> nvbio::FMIndexFilter< host_tag, fm_index_type >::m_slots |