Function
consensusAligment
Compute consensus alignment.
Include Headers
seqan/consensus.h
Parameters
Types: Alignment Graph | |
Interval start and end position for the read's alignment. Types: | |
Optional settings for the consenus alignment Types: |
Examples
#include <seqan/graph_align.h>
#include <seqan/consensus.h>
int main()
{
using namespace seqan;
typedef StringSet<Dna5String> TStringSet;
typedef Graph<Alignment<TStringSet, void, WithoutEdgeId> > TAlignGraph;
TStringSet readSet;
String<Pair<TSize> > begEndPos;
appendValue(readSet, "CCCAGTGA");
appendValue(begEndPos, Pair<TSize>(0, 5));
appendValue(readSet, "AGGGACTGT");
appendValue(begEndPos, Pair<TSize>(3, 9));
TAlignGraph alignmentGraph(readSet);
consensusAlignment(alignmentGraph, begEndPos);
return 0;
}
SeqAn - Sequence Analysis Library - www.seqan.de