SeqAn3  3.0.1
The Modern C++ library for sequence analysis.
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

 seqan3
 The main SeqAn3 namespace.
 

Functions

template<genetic_code gc = genetic_code::CANONICAL, nucleotide_alphabet nucl_type>
constexpr aa27 seqan3::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). More...
 
template<genetic_code gc = genetic_code::CANONICAL, std::ranges::input_range range_type>
constexpr aa27 seqan3::translate_triplet (range_type &&input_range)
 Translate one nucleotide triplet into single amino acid (range interface). More...
 
template<genetic_code gc = genetic_code::CANONICAL, std::ranges::random_access_range rng_t>
constexpr aa27 seqan3::translate_triplet (rng_t &&input_range)
 Translate one nucleotide triplet into single amino acid (range interface, input range allows random access). More...
 
template<genetic_code gc = genetic_code::CANONICAL, typename tuple_type >
constexpr aa27 seqan3::translate_triplet (tuple_type const &input_tuple) noexcept
 Translate one nucleotide triplet into single amino acid (tuple interface). More...
 

Detailed Description

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

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