SeqAn3 3.4.0-rc.4
The Modern C++ library for sequence analysis.
Loading...
Searching...
No Matches
seqan3::detail::translation_table< nucl_type, gc, void_type > Struct Template Reference

Generic translation table for canonical genetic code. More...

#include <seqan3/alphabet/aminoacid/translation_details.hpp>

Static Public Attributes

static constexpr std::array< std::array< std::array< aa27, alphabet_size< nucl_type > >, alphabet_size< nucl_type > >, alphabet_size< nucl_type > > value
 Holds the generic translation table.
 

Detailed Description

template<typename nucl_type, seqan3::genetic_code gc = seqan3::genetic_code::canonical, typename void_type = void>
struct seqan3::detail::translation_table< nucl_type, gc, void_type >

Generic translation table for canonical genetic code.

Template Parameters
nucl_typeThe type of input nucleotides.

All nucleotides are casted to dna15 and the dna15 translation table is used for translation.

Member Data Documentation

◆ value

Initial value:
{
[] () constexpr
{
using size_t = std::remove_const_t<decltype(alphabet_size<nucl_type>)>;
for (size_t i = 0; i < alphabet_size<nucl_type>; ++i)
{
for (size_t j = 0; j < alphabet_size<nucl_type>; ++j)
{
for (size_t k = 0; k < alphabet_size<nucl_type>; ++k)
{
}
}
}
return table;
} ()
}
The 15 letter DNA alphabet, containing all IUPAC smybols minus the gap.
Definition dna15.hpp:48
constexpr auto assign_rank_to
Assign a rank to an alphabet object.
Definition alphabet/concept.hpp:288
constexpr auto to_rank
Return the rank representation of a (semi-)alphabet object.
Definition alphabet/concept.hpp:152
constexpr auto const & get(configuration< configs_t... > const &config) noexcept
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition configuration.hpp:412
static constexpr std::array< std::array< std::array< aa27, alphabet_size< nucl_type > >, alphabet_size< nucl_type > >, alphabet_size< nucl_type > > value
Holds the generic translation table.
Definition translation_details.hpp:31

Holds the generic translation table.


The documentation for this struct was generated from the following file:
Hide me