SeqAn3 3.4.0-rc.1
The Modern C++ library for sequence analysis.
No Matches
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
constexpr min_score (min_score const &) noexcept=default
constexpr min_score (min_score &&) noexcept=default
constexpr min_scoreoperator= (min_score const &) noexcept=default
constexpr min_scoreoperator= (min_score &&) noexcept=default
 ~min_score () noexcept=default
constexpr min_score (int32_t const score)
 Initialises the minimal score.

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.


// SPDX-FileCopyrightText: 2006-2024 Knut Reinert & Freie Universität Berlin
// SPDX-FileCopyrightText: 2016-2024 Knut Reinert & MPI für molekulare Genetik
// SPDX-License-Identifier: CC0-1.0
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);
Provides seqan3::align_cfg::min_score configuration.
Sets the minimal score (maximal errors) allowed during an distance computation e.g....
Definition align_config_min_score.hpp:36
int32_t score
Minimal score for the distance computation [default: -infinity].
Definition align_config_min_score.hpp:39
Collection of elements to configure an algorithm.
Definition configuration.hpp:42
Provides seqan3::configuration and utility functions.

Constructor & Destructor Documentation

◆ min_score()

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

Initialises the minimal score.

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

The documentation for this class was generated from the following file:
Hide me