Function
countOccurrences
Returns the number of occurrences of a specified character from the start to a specified position.
countOccurrences(dictionary, character, pos)
Include Headers
seqan/index.h
Parameters
dictionary
The dictionary.
character
The character.
pos
The position (which is included in the counting).
Examples
String<Dna5> genome = "ACGTACGT";
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
 

Page built @2013/07/11 09:12:36