138 ret[
static_cast<rank_type>(rank_to_char_table[rnk])] = rnk;
142 ret[
'D'] = ret[
'B']; ret[
'd'] = ret[
'B'];
143 ret[
'E'] = ret[
'B']; ret[
'e'] = ret[
'B'];
144 ret[
'J'] = ret[
'I']; ret[
'j'] = ret[
'I'];
145 ret[
'L'] = ret[
'I']; ret[
'l'] = ret[
'I'];
146 ret[
'M'] = ret[
'I']; ret[
'm'] = ret[
'I'];
147 ret[
'N'] = ret[
'B']; ret[
'n'] = ret[
'B'];
148 ret[
'O'] = ret[
'K']; ret[
'o'] = ret[
'K'];
149 ret[
'Q'] = ret[
'B']; ret[
'q'] = ret[
'B'];
150 ret[
'R'] = ret[
'K']; ret[
'r'] = ret[
'K'];
151 ret[
'T'] = ret[
'S']; ret[
't'] = ret[
'S'];
152 ret[
'U'] = ret[
'C']; ret[
'u'] = ret[
'C'];
153 ret[
'V'] = ret[
'I']; ret[
'v'] = ret[
'I'];
154 ret[
'W'] = ret[
'F']; ret[
'w'] = ret[
'F'];
155 ret[
'X'] = ret[
'S']; ret[
'x'] = ret[
'S'];
156 ret[
'Y'] = ret[
'F']; ret[
'y'] = ret[
'F'];
157 ret[
'Z'] = ret[
'B']; ret[
'z'] = ret[
'B'];
166 return rank_to_char_table[rank];
173 return char_to_rank_table[
static_cast<index_t
>(chr)];
191 inline namespace literals
207 constexpr
aa10murphy operator""_aa10murphy(
char const c) noexcept
228 for (
size_t i = 0; i < n; ++i)
229 r[i].assign_char(s[i]);
Provides seqan3::aminoacid_alphabet.
Provides seqan3::aminoacid_base.
The reduced Murphy amino acid alphabet.
Definition: aa10murphy.hpp:82
constexpr aa10murphy() noexcept=default
Defaulted.
A CRTP-base that makes defining a custom alphabet easier.
Definition: alphabet_base.hpp:81
detail::min_viable_uint_t< size - 1 > rank_type
The type of the alphabet when represented as a number (e.g. via to_rank()).
Definition: alphabet_base.hpp:104
constexpr derived_type & assign_char(char_type const chr) noexcept
Assign from a character, implicitly converts invalid characters.
Definition: alphabet_base.hpp:211
static constexpr detail::min_viable_uint_t< size > alphabet_size
The size of the alphabet, i.e. the number of different values it can take.
Definition: alphabet_base.hpp:276
std::conditional_t< std::same_as< char_t, void >, char, char_t > char_type
The char representation; conditional needed to make semi alphabet definitions legal.
Definition: alphabet_base.hpp:96
A CRTP-base that refines seqan3::alphabet_base and is used by the amino acids.
Definition: aminoacid_base.hpp:32
The main SeqAn3 namespace.
Definition: aligned_sequence_concept.hpp:29
constexpr char_type to_lower(char_type const c) noexcept
Converts 'A'-'Z' to 'a'-'z' respectively; other characters are returned as is.
Definition: transform.hpp:81