A data structure for managing and computing the score of two amino acids.
More...
#include <seqan3/alignment/scoring/aminoacid_scoring_scheme.hpp>
|
(Note that these are not member symbols.)
|
|
| aminoacid_scoring_scheme () -> aminoacid_scoring_scheme< int8_t > |
| | Default constructed objects deduce to int8_t.
|
|
template<arithmetic score_arg_type> |
| | aminoacid_scoring_scheme (match_score< score_arg_type >, mismatch_score< score_arg_type >) -> aminoacid_scoring_scheme< int8_t > |
| | Attention: This guide does not actually deduce from the underlying type, but always defaults to int8_t. To use a larger type, specify the template argument manually.
|
|
template<arithmetic score_arg_type> |
| | aminoacid_scoring_scheme (std::array< std::array< score_arg_type, 27 >, 27 >) -> aminoacid_scoring_scheme< score_arg_type > |
| | Deduce the score type from the provided matrix.
|
|
| aminoacid_scoring_scheme (aminoacid_similarity_matrix) -> aminoacid_scoring_scheme< int8_t > |
| | Attention: This guide does not actually deduce from the underlying type, but always defaults to int8_t. To use a larger type, specify the template argument manually.
|
|
|
using | score_type |
| | Type of the score values.
|
|
using | alphabet_type |
| | Type of the underlying alphabet.
|
|
using | matrix_size_type |
| | Size type that can hold the dimension of the matrix (i.e. size of the alphabet).
|
|
using | matrix_type |
| | Type of the internal matrix (a two-dimensional array).
|
|
static constexpr matrix_size_type | matrix_size |
| | Size of the matrix dimensions (i.e. size of the alphabet).
|
template<
arithmetic score_type = int8_t>
class seqan3::aminoacid_scoring_scheme< score_type >
A data structure for managing and computing the score of two amino acids.
You can use an instance of this class to score two amino acids. The amino acids need not be of the same type. Different scoring behaviour can be set via the member functions.
Example
int main()
{
<< "\n";
<< "\n";
<< "\n";
<< "\n";
auto & cell = scheme2.
score(
'T'_aa27,
'S'_aa27);
cell = 3;
int score = 0;
score += scheme3.
score(std::get<0>(pair), std::get<1>(pair));
}
Provides seqan3::aa27, container aliases and string literals.
Meta-header for the Alphabet / Aminoacid submodule .
Provides seqan3::aminoacid_scoring_scheme.
A data structure for managing and computing the score of two amino acids.
Definition aminoacid_scoring_scheme.hpp:72
constexpr void set_similarity_matrix(aminoacid_similarity_matrix const matrix_id)
Set the similarity matrix scheme (e.g. blosum62).
Definition aminoacid_scoring_scheme.hpp:118
constexpr void set_hamming_distance() noexcept
Set the hamming scheme, a variant of the simple scheme where match is scored 0 and mismatch -1.
Definition scoring_scheme_base.hpp:163
constexpr score_t & score(alph1_t const alph1, alph2_t const alph2) noexcept
Score two letters (either two nucleotids or two amino acids).
Definition scoring_scheme_base.hpp:214
Provides seqan3::debug_stream and related types.
@ blosum80
The blosum80 matrix for closely related proteins.
Definition aminoacid_scoring_scheme.hpp:54
@ blosum62
The blosum62 matrix recommended for most use-cases.
Definition aminoacid_scoring_scheme.hpp:49
debug_stream_type debug_stream
A global instance of seqan3::debug_stream_type.
Definition debug_stream.hpp:38
seqan::stl::views::zip zip
A view adaptor that takes several views and returns tuple-like values from every i-th element of each...
Definition zip.hpp:24
The SeqAn namespace for literals.
Provides seqan3::views::zip.
◆ aminoacid_scoring_scheme() [1/4]
◆ aminoacid_scoring_scheme() [2/4]
Constructor for the simple scheme (delegates to set_simple_scheme()).
- Template Parameters
-
| score_arg_t | The underlying type of the arguments. |
- Parameters
-
- Exceptions
-
◆ aminoacid_scoring_scheme() [3/4]
Constructor for a custom scheme (delegates to set_custom_matrix()).
- Parameters
-
| [in] | matrix | A full matrix that is copied into the scheme. |
◆ aminoacid_scoring_scheme() [4/4]
◆ set_similarity_matrix()
Set the similarity matrix scheme (e.g. blosum62).
- Parameters
-
- Exceptions
-
The documentation for this class was generated from the following file: