SeqAn3 3.4.0-rc.1
The Modern C++ library for sequence analysis.
|
A configuration element for the affine gap cost scheme. More...
#include <seqan3/alignment/configuration/align_config_gap_cost_affine.hpp>
Public Member Functions | |
Constructors, destructor and assignment | |
constexpr | gap_cost_affine ()=default |
Defaulted. | |
constexpr | gap_cost_affine (gap_cost_affine const &)=default |
Defaulted. | |
constexpr | gap_cost_affine (gap_cost_affine &&)=default |
Defaulted. | |
constexpr gap_cost_affine & | operator= (gap_cost_affine const &)=default |
Defaulted. | |
constexpr gap_cost_affine & | operator= (gap_cost_affine &&)=default |
Defaulted. | |
~gap_cost_affine ()=default | |
Defaulted. | |
constexpr | gap_cost_affine (seqan3::align_cfg::open_score open_score, seqan3::align_cfg::extension_score extension_score) |
Construction from strongly typed open score and extension score. | |
Public Attributes | |
int32_t | extension_score {-1} |
The cost per gap character. Defaults to -1. | |
int32_t | open_score {0} |
The score per consecutive sequence of gaps. Defaults to 0. | |
A configuration element for the affine gap cost scheme.
Configures the gap scheme for the alignment algorithm. The gap scheme determines how gaps are penalised inside of the alignment algorithm. If the gap scheme is not configured, it will default to a linear gap scheme initialised with edit distance. Note that the gap open score is used as an additional score. This means that the score for opening a gap during the affine alignment execution is the sum of the gap score and the gap open score.
|
inlineconstexpr |
Construction from strongly typed open score and extension score.
open_score | The cost per consecutive sequence of gaps (of type seqan3::open_score). |
extension_score | The cost of each gap character (of type seqan3::extension_score). |
The score for a sequence of n
gap characters is computed as open_score + n * extension_score
.
(n-1) * extension_score + open_score
.