Function
countOccurrences
Returns the number of occurrences of a specified character from the start
to a specified position.
Include Headers
seqan/index.h
Parameters
The dictionary. Types: RankDictionary | |
The character. | |
The position (which is included in the counting). |
Member of
Examples
RankDictionary<String<Dna5> > dictionary(genome);
std::cout << countOccurrences(dictionary, 'a', 3) << std::endl; // 1
std::cout << countOccurrences(dictionary, 'a', 4) << std::endl; // 2
SeqAn - Sequence Analysis Library - www.seqan.de