SeqAn3  3.0.3
The Modern C++ library for sequence analysis.
seqan3::align_cfg::min_score Class Reference

Sets the minimal score (maximal errors) allowed during an distance computation e.g. edit distance. More...

#include <seqan3/alignment/configuration/align_config_min_score.hpp>

+ Inheritance diagram for seqan3::align_cfg::min_score:

Public Member Functions

Constructors, destructor and assignment
constexpr min_score () noexcept=default
 Defaulted.
 
constexpr min_score (min_score const &) noexcept=default
 Defaulted.
 
constexpr min_score (min_score &&) noexcept=default
 Defaulted.
 
constexpr min_scoreoperator= (min_score const &) noexcept=default
 Defaulted.
 
constexpr min_scoreoperator= (min_score &&) noexcept=default
 Defaulted.
 
 ~min_score () noexcept=default
 Defaulted.
 
constexpr min_score (const int32_t score)
 Initialises the minimal score. More...
 

Public Attributes

int32_t score {std::numeric_limits<int32_t>::lowest()}
 Minimal score for the distance computation [default: -infinity].
 

Static Public Attributes

static constexpr seqan3::detail::align_config_id id {seqan3::detail::align_config_id::min_score}
 Internal id to check for consistent configuration settings.
 

Detailed Description

Sets the minimal score (maximal errors) allowed during an distance computation e.g. edit distance.

This configuration can only be used for computing the edit distance. It restricts the number of substitutions, insertions, and deletions within the alignment to the given value and can thereby speed up the edit distance computation. A typical use case is to verify a candidate region during read mapping where the number of maximal errors is given beforehand. If this configuration is used for an alignment algorithm that does not compute the edit distance, a seqan3::invalid_alignment_configuration exception will be thrown.

Example

int main()
{
// Allow a minimal score of -5, i.e. at most 5 edit operations.
auto min_score = std::get<seqan3::align_cfg::min_score>(config);
min_score.score = -5;
}

Constructor & Destructor Documentation

◆ min_score()

constexpr seqan3::align_cfg::min_score::min_score ( const int32_t  score)
inlineconstexpr

Initialises the minimal score.

Parameters
scoreMinimal score for the distance computation [default: -infinity].

The documentation for this class was generated from the following file:
configuration.hpp
Provides seqan3::detail::configuration and utility functions.
seqan3::configuration
Collection of elements to configure an algorithm.
Definition: configuration.hpp:82
seqan3::align_cfg::min_score::min_score
constexpr min_score() noexcept=default
Defaulted.
seqan3::align_cfg::min_score
Sets the minimal score (maximal errors) allowed during an distance computation e.g....
Definition: align_config_min_score.hpp:37
align_config_min_score.hpp
Provides seqan3::align_cfg::min_score configuration.