53template <genetic_code gc = genetic_code::CANONICAL, nucleot
ide nucl_type>
77 return detail::translation_table<dna15, gc>::VALUE[
to_rank(
static_cast<dna15>(n1))][
to_rank(
108 return static_cast<translation_frames>(
static_cast<u_t
>(lhs) &
static_cast<u_t
>(rhs));
114 return static_cast<translation_frames>(
static_cast<u_t
>(lhs) |
static_cast<u_t
>(rhs));
120 return static_cast<translation_frames>(
static_cast<u_t
>(lhs) ^
static_cast<u_t
>(rhs));
Provides bio::alphabet::aa27, container aliases and string literals.
The twenty-seven letter amino acid alphabet..
Definition: aa27.hpp:45
The 15 letter DNA alphabet, containing all IUPAC smybols minus the gap..
Definition: dna15.hpp:50
The four letter DNA alphabet of A,C,G,T..
Definition: dna4.hpp:49
The five letter DNA alphabet of A,C,G,T and the unknown character N..
Definition: dna5.hpp:50
constexpr auto to_rank
Return the rank representation of a (semi-)alphabet object.
Definition: concept.hpp:70
constexpr aa27 translate_triplet(nucl_type const &n1, nucl_type const &n2, nucl_type const &n3) noexcept
Translate one nucleotide triplet into single amino acid (single nucleotide interface).
Definition: translation.hpp:54
translation_frames
Specialisation values for single and multiple translation frames.
Definition: translation.hpp:85
@ FWD_REV_0
The first forward and first reverse frame.
@ REV_FRAME_0
The first reverse frame starting at position 0.
@ REV_FRAME_1
The second reverse frame starting at position 1.
@ FWD_REV_2
The first third and third reverse frame.
@ FWD_FRAME_2
The third forward frame starting at position 2.
@ FWD_FRAME_1
The second forward frame starting at position 1.
@ REV_FRAME_2
The third reverse frame starting at position 2.
@ FWD_FRAME_0
The first forward frame starting at position 0.
@ FWD_REV_1
The second forward and second reverse frame.
The alphabet module's namespace.
Definition: aa10li.hpp:23
constexpr translation_frames operator&(translation_frames lhs, translation_frames rhs) noexcept
Binary operators for bio::alphabet::translation_frames.
Definition: translation.hpp:105
constexpr translation_frames & operator^=(translation_frames &lhs, translation_frames rhs) noexcept
Binary operators for bio::alphabet::translation_frames.
Definition: translation.hpp:141
constexpr translation_frames operator^(translation_frames lhs, translation_frames rhs) noexcept
Binary operators for bio::alphabet::translation_frames.
Definition: translation.hpp:117
constexpr translation_frames & operator&=(translation_frames &lhs, translation_frames rhs) noexcept
Binary operators for bio::alphabet::translation_frames.
Definition: translation.hpp:129
constexpr translation_frames operator~(translation_frames lhs) noexcept
Binary operators for bio::alphabet::translation_frames.
Definition: translation.hpp:123
constexpr translation_frames & operator|=(translation_frames &lhs, translation_frames rhs) noexcept
Binary operators for bio::alphabet::translation_frames.
Definition: translation.hpp:135
constexpr translation_frames operator|(translation_frames lhs, translation_frames rhs) noexcept
Binary operators for bio::alphabet::translation_frames.
Definition: translation.hpp:111
Provides translation details for nucleotide to aminoacid translation.
Genetic codes used for translating a triplet of nucleotides into an amino acid.
Provides various transformation traits used by the range module.