Class Specialization
ProfileSeq Score
Score for profile-to-sequence alignments.
Using this Score specialization, you can use profiles for the horizontal and sequences for the vertical
sequence in the pairwise DP alignment functions.
Scoring works as follows.
The integer SEQAN_CONSENSUS_UNITY and fractions thereof are used to express scores.
Gap opens in the profile are scored proportional to the number of gaps in the profile with two times unity, gap extends
with one times unity at the position.
Gap opens in the sequence are scored with two times unity, gap extends in the sequence with unity.
Alignments of profile characters to sequence characters are scored with the fraction of profile characters that
match the sequence characters times unity.
![]() | ![]() | ||||||
ProfileSeq Score |
Include Headers
seqan/align_profile.h
Parameters
The integer type to use for representing scores. |
Specialization of
Metafunctions
Type of the default findBegin pattern specialization, given a score. (Score) | |
Returns representation type for a character of a position in a sequence. (Score) | |
Type of the items in the container or behind an iterator. (Score) |
Functions
Given a multiple alignment, this function calculates all kinds of alignment statistics. (Score) | |
Assign profile to ProfileSeg Score. | |
Computes the best global pairwise alignment between two sequences given a non-empty seed chain. (Score) | |
Builds an Alignment Graph from a set of input alignments. (Score) | |
Computes the best global pairwise alignment. (Score) | |
Computes the best global pairwise alignment score. (Score) | |
Computes a global multiple alignment. (Score) | |
Computes the best pairwise local alignment using the Smith-Waterman algorithm. (Score) | |
Refines (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. (Score) | |
Returns the score for aligning the entries | |
Score for gaps. (Score) | |
Score for extending gaps. (Score) | |
Returns the score for extending a gap in horizontal direction. (Score) | |
Returns the score for extending a gap in vertical direction. (Score) | |
Returns the score for a gap in horizontal direction. (Score) | |
Score for opening a gap. (Score) | |
Returns the score for opening a gap in horizontal direction. (Score) | |
Returns the score for opening a gap in vertical direction. (Score) | |
Returns the score for a gap in vertical direction. (Score) | |
Match score. (Score) | |
Mismatch score. (Score) | |
Helper function for element access, depending on score type. (Score) | |
Set gap opening and extension score. (Score) | |
Set gap extension score. (Score) | |
Set gap opening score. (Score) | |
Set match score. (Score) | |
Set mismatch score. (Score) | |
Compute split alignments. (Score) | |
Given a multiple alignment, this function calculates the sum-of-pairs score. (Score) |
Examples
The following example uses the ProfileSeq Score to align a sequence against a profile.
Note that we print the gap state for each position since profiles cannot be printed to one stdout character.
File "profile_seq_score.cpp"
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 | |
10 | |
11 | |
12 | |
13 | |
14 | |
15 | |
16 | |
17 | |
18 | |
19 | |
20 | |
21 | |
22 | |
23 | |
24 | |
25 | |
26 |
gaps in profile/sequence
pos G S
0 0 0
1 1 0
2 0 0
3 1 0
4 0 0
5 0 0
Example Programs
SeqAn - Sequence Analysis Library - www.seqan.de