gatb.core-API-0.0.0
|
Kmer type for the ModelMinimizer class. More...
#include <Model.hpp>
Inherits Kmer.
Public Member Functions | |
const Model::Kmer & | minimizer () const |
int | position () const |
bool | hasChanged () const |
Kmer type for the ModelMinimizer class.
This class associates a kmer and its minimizer. It inherits from the Model::Kmer type and adds methods specific to minimizers, such as minimizer itself (ie the Model::Kmer object holding the minimizer), position giving the position of the minimizer whithin the kmer and hasChanged telling whether a minimizer has changed during iteration of kmers from some data source (a sequence data for instance).
NOTE: this class is not intended to be used directly by end users. Instead, the typedef definition ModelMinimizer::Kmer should be preferred.
Example of use:
|
inline |
Tells whether the minimizer has changed; useful while iterating kmers
|
inline |
Returns the minimizer of the current kmer as a Model::Kmer object
|
inline |
Returns the position of the minimizer within the kmer. By convention, a negative value means that there is no minimizer inside the kmer.