Function
findRepeats
Search for repeats in a text.
Include Headers
seqan/index.h
Parameters
The text to search repeats in. | |
The minimum length each reported repeat must have. | |
Optionally, the maximal period that reported repeats can have. Default: 1 |
Remarks
Subsequences of undefined values/N s will always be reported.
Examples
The following demonstrates finding repeats of period 1.
Dna5String text = "CGATAAAACTNN";
// repeat 0 AAAA
// repeat 1 NN
findRepeats(repeats, text, 3);
// ==> length(repeats) == 2
// ==> repeats[0] == {beginPosition: 4, endPosition: 8, period: 1}
// ==> repeats[1] == {beginPosition: 11, endPosition: 13, period: 1}
See Also
SeqAn - Sequence Analysis Library - www.seqan.de