BioC++ core-0.7.0
The Modern C++ libraries for Bioinformatics.
 
Loading...
Searching...
No Matches
translation.hpp File Reference

Provides functions for translating a triplet of nucleotides into an amino acid. More...

+ Include dependency graph for translation.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  bio
 The main BioC++ namespace.
 
namespace  bio::alphabet
 The alphabet module's namespace.
 

Enumerations

enum class  bio::alphabet::translation_frames : uint8_t {
  bio::alphabet::translation_frames::FWD_FRAME_0 = 1 , bio::alphabet::translation_frames::FWD_FRAME_1 = 1 << 1 , bio::alphabet::translation_frames::FWD_FRAME_2 = 1 << 2 , bio::alphabet::translation_frames::REV_FRAME_0 = 1 << 3 ,
  bio::alphabet::translation_frames::REV_FRAME_1 = 1 << 4 , bio::alphabet::translation_frames::REV_FRAME_2 = 1 << 5 , bio::alphabet::translation_frames::FWD_REV_0 = FWD_FRAME_0 | REV_FRAME_0 , bio::alphabet::translation_frames::FWD_REV_1 = FWD_FRAME_1 | REV_FRAME_1 ,
  bio::alphabet::translation_frames::FWD_REV_2 = FWD_FRAME_2 | REV_FRAME_2 , bio::alphabet::translation_frames::FWD = FWD_FRAME_0 | FWD_FRAME_1 | FWD_FRAME_2 , bio::alphabet::translation_frames::REV = REV_FRAME_0 | REV_FRAME_1 | REV_FRAME_2 , bio::alphabet::translation_frames::SIX_FRAME = FWD | REV
}
 Specialisation values for single and multiple translation frames. More...
 

Functions

template<genetic_code gc = genetic_code::CANONICAL, nucleotide nucl_type>
constexpr aa27 bio::alphabet::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).
 
Binary operators for bio::alphabet::translation_frames.

Perform binary operations like on ints or weak enums.

constexpr translation_frames bio::alphabet::operator& (translation_frames lhs, translation_frames rhs) noexcept
 Binary operators for bio::alphabet::translation_frames.
 
constexpr translation_frames & bio::alphabet::operator&= (translation_frames &lhs, translation_frames rhs) noexcept
 Binary operators for bio::alphabet::translation_frames.
 
constexpr translation_frames bio::alphabet::operator^ (translation_frames lhs, translation_frames rhs) noexcept
 Binary operators for bio::alphabet::translation_frames.
 
constexpr translation_frames & bio::alphabet::operator^= (translation_frames &lhs, translation_frames rhs) noexcept
 Binary operators for bio::alphabet::translation_frames.
 
constexpr translation_frames bio::alphabet::operator| (translation_frames lhs, translation_frames rhs) noexcept
 Binary operators for bio::alphabet::translation_frames.
 
constexpr translation_frames & bio::alphabet::operator|= (translation_frames &lhs, translation_frames rhs) noexcept
 Binary operators for bio::alphabet::translation_frames.
 
constexpr translation_frames bio::alphabet::operator~ (translation_frames lhs) noexcept
 Binary operators for bio::alphabet::translation_frames.
 

Detailed Description

Provides functions for translating a triplet of nucleotides into an amino acid.

Author
Sara Hetzel <sara.hetzel AT fu-berlin.de>