Struct bio::data_structures::qgram_index::QGramIndex [] [src]

pub struct QGramIndex { /* fields omitted */ }

A classical, flexible, q-gram index implementation.

Methods

impl QGramIndex
[src]

Create a new q-gram index. The q has to be smaller than b / log2(|A|) with |A| being the alphabet size and b the number bits with the usize data type.

Create a new q-gram index, only considering q-grams that occur at most max_count times. The q has to be smaller than b / log2(|A|) with |A| being the alphabet size and b the number bits with the usize data type.

The used q.

Return text positions with matching q-gram. Complexity O(1).

Return matches of the given pattern. Complexity O(m + k) for pattern of length m and k being the number of matching q-grams.

Return exact matches (substrings) of the given pattern. Complexity O(m + k) for pattern of length m and k being the number of matching q-grams.