SeqAn3 3.4.0-rc.1
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

template<typename nucl_type , seqan3::genetic_code gc = seqan3::genetic_code::canonical, typename void_type = void>
constexpr std::array<std::array<std::array<aa27, alphabet_size<nucl_type> >, alphabet_size<nucl_type> >, alphabet_size<nucl_type> > seqan3::detail::translation_table< nucl_type, gc, void_type >::value
staticconstexpr
Initial value:
{
[] () constexpr
{
alphabet_size<nucl_type>>, alphabet_size<nucl_type>> table{};
using size_t = std::remove_const_t<decltype(alphabet_size<nucl_type>)>;
for (size_t i = 0; i < alphabet_size<nucl_type>; ++i)
{
dna15 n1(assign_rank_to(i, nucl_type{}));
for (size_t j = 0; j < alphabet_size<nucl_type>; ++j)
{
dna15 n2(assign_rank_to(j, nucl_type{}));
for (size_t k = 0; k < alphabet_size<nucl_type>; ++k)
{
dna15 n3(assign_rank_to(k, nucl_type{}));
}
}
}
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:290
constexpr auto to_rank
Return the rank representation of a (semi-)alphabet object.
Definition alphabet/concept.hpp:152
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