Class
Align
An alignment of sequences.
Align<TSource, TSpec>
Include Headers
seqan/align.h
Parameters
TSource
Type of the ungapped sequences.
Metafunctions: Source
TSpec
The specializing type.
Metafunctions: Spec
Default: ArrayGaps
Remarks
The default implementation of Align stores the alignment in a set of Gaps<TSource,TSpec> objects. Hence, the default implementation is row-based, so it will be faster to access the alignment row-wise than column-wise.
Metafunctions
ColType of a column in an alignment.
ColsType of column container of an alignment.
GetValueType for reading values.
ReferenceReference type.
RowType of a row in an alignment.
RowsType of row container of an alignment.
SourceReturn underlying sequence of Gaps/Alignments.
StringSetTypeReturn type of stringSet function.
ValueType of the items in the container or behind an iterator.
Functions
bamRecordToAlignmentConvert BamAlignmentRecord to an Align object.
bandedChainAlignmentComputes the best global pairwise alignment between two sequences given a non-empty seed chain.
colA column in an alignment.
colsThe container of columns in an alignment.
detachMakes an object independent from other objects.
globalAlignmentComputes the best global pairwise alignment.
integrateAlignIntegrates an alignment into another by copying the gaps.
localAlignmentComputes the best pairwise local alignment using the Smith-Waterman algorithm.
matchRefinementRefines (i.e. cuts into smaller parts) a set of pairwise segment matches in such a way that none of the segments partly overlap. They are either identical (fully overlapping) or non-overlapping.
nextLocalAlignmentCompute next suboptimal local alignment.
rowA row in an alignment.
rowsThe container of rows in an alignment.
setStringsLoads the sequences of a stringset into an alignment.
splitAlignmentCompute split alignments.
stringSetGets the string set of an alignment graph.
Examples
File "align.cpp"
1#include <seqan/basic.h>
2#include <seqan/sequence.h>
3#include <seqan/file.h>  // for I/O
4#include <seqan/align.h>
5#include <seqan/score.h>
6
7using namespace seqan;
8
9int main()
10{
11    StringSet<DnaString> stringSet;
12    appendValue(stringSet, "AGTTTAATCA");
13    appendValue(stringSet, "AGTATACGA");
14
15    Align<DnaString> align(stringSet);                        // Initialize the Align object using a StringSet.
16
17    int score = globalAlignment(align, EditDistanceScore());  // Compute a global alingment using the Align object.
18
19    std::cout << "score = " << score << std::endl;
20    std::cout << "align\n" << align << std::endl;
21
22    return 0;
23}
The output is as follows:
score = -4
align
  0     .    :
    AGTTTAATCA
    ||| | |  |
    AGTAT-ACGA
See Also
SeqAn - Sequence Analysis Library - www.seqan.de
 

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