Class Specialization
Unbanded LocalAlignmentEnumerator
Unbanded enumeration of local alignments using the Waterman-Eggert algorithm.
LocalAlignmentEnumerator
Unbanded LocalAlignmentEnumerator
LocalAlignmentEnumerator<TScore, Unbanded>
Include Headers
seqan/align.h
Specialization of
Member Functions
LocalAlignmentEnumeratorConstructor
Functions
getScoreCompute next suboptimal local alignment. (LocalAlignmentEnumerator)
nextLocalAlignmentCompute next suboptimal local alignment. (LocalAlignmentEnumerator)
Examples
Enumerate all alignments into an Align object.
SimpleScore scoringScheme(2, -1, -1, -2);
LocalAlignmentEnumerator<SimpleScore, Unbanded> enumerator(scoringScheme, 5);
 
Dna5String seqH = "CGAGAGAGACCGAGA";
Dna5String seqV = "TTCTGAGATCCGTTTTT";
 
Align<Dna5String> align;
resize(rows(align), 2);
assignSource(row(align), 0, seqH);
assignSource(row(align), 1, seqV);
 
int i = 0;
while (nextLocalAlignment(align, enumerator))
{
    std::cout << i << "-th alignment:\n";
    std::cout << align << "\n\n";
    std::cout << "score == " << getScore(enumerator) << "\n";
}
SeqAn - Sequence Analysis Library - www.seqan.de
 

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