47template <nucleot
ide_alphabet sequence_alphabet_t, rna_structure_alphabet structure_alphabet_t>
48 requires writable_alphabet<sequence_alphabet_t> && writable_alphabet<structure_alphabet_t>
50 public alphabet_tuple_base<structured_rna<sequence_alphabet_t, structure_alphabet_t>,
56 using base_type = alphabet_tuple_base<structured_rna<sequence_alphabet_t, structure_alphabet_t>,
58 structure_alphabet_t>;
88 using base_type::base_type;
90#if SEQAN3_DOXYGEN_ONLY(1) 0
130 using base_type::operator=;
195 return get<1>(*this).is_pair_open();
205 return get<1>(*this).is_pair_close();
215 return get<1>(*this).is_unpaired();
230 return get<1>(*this).pseudoknot_id();
237template <
typename sequence_alphabet_type,
typename structure_alphabet_type>
Provides seqan3::nucleotide_alphabet.
Provides seqan3::rna_structure_alphabet.
Provides seqan3::alphabet_tuple_base.
friend constexpr auto get(alphabet_tuple_base &l) noexcept
Definition alphabet_tuple_base.hpp:345
constexpr bool is_unpaired() const noexcept
Check whether the character represents an unpaired position in an RNA structure.
Definition structured_rna.hpp:213
constexpr bool is_pair_open() const noexcept
Check whether the character represents a rightward interaction in an RNA structure.
Definition structured_rna.hpp:193
constexpr structured_rna complement() const noexcept
Return a structured_rna where the sequence letter is converted to its complement.
Definition structured_rna.hpp:170
constexpr structured_rna & assign_char(char_type const c) noexcept
Assign from a nucleotide character. This modifies the internal sequence letter.
Definition structured_rna.hpp:139
constexpr structured_rna & operator=(indirect_component_type const alph) noexcept
Assignment via a value of a subtype that is assignable to one of the components.
Definition structured_rna.hpp:124
constexpr structured_rna(indirect_component_type const alph) noexcept
Construction via a value of a subtype that is assignable to one of the components.
Definition structured_rna.hpp:106
constexpr char_type to_char() const noexcept
Return a character. This reads the internal sequence letter.
Definition structured_rna.hpp:153
structured_rna(sequence_alphabet_type &&, structure_alphabet_type &&) -> structured_rna< std::decay_t< sequence_alphabet_type >, std::decay_t< structure_alphabet_type > >
Type deduction guide enables usage of structured_rna without specifying template args.
static constexpr bool char_is_valid(char_type const c) noexcept
Validate whether a character is valid in the sequence alphabet.
Definition structured_rna.hpp:180
constexpr structured_rna() noexcept=default
Defaulted.
constexpr structured_rna & operator=(component_type const alph) noexcept
Assignment via a value of one of the components.
Definition structured_rna.hpp:115
sequence_alphabet_t sequence_alphabet_type
First template parameter as member type.
Definition structured_rna.hpp:65
constexpr structured_rna(component_type const alph) noexcept
Construction via a value of one of the components.
Definition structured_rna.hpp:97
alphabet_char_t< sequence_alphabet_type > char_type
Equals the char_type of sequence_alphabet_type.
Definition structured_rna.hpp:76
constexpr std::optional< uint8_t > pseudoknot_id() const noexcept
Get an identifier for a pseudoknotted interaction.
Definition structured_rna.hpp:228
constexpr bool is_pair_close() const noexcept
Check whether the character represents a leftward interaction in an RNA structure.
Definition structured_rna.hpp:203
static constexpr uint8_t max_pseudoknot_depth
Definition structured_rna.hpp:219
structure_alphabet_t structure_alphabet_type
Second template parameter as member type.
Definition structured_rna.hpp:70
constexpr auto assign_char_to
Assign a character to an alphabet object.
Definition alphabet/concept.hpp:517
constexpr auto to_char
Return the char representation of an alphabet object.
Definition alphabet/concept.hpp:381
decltype(seqan3::to_char(std::declval< alphabet_type const >())) alphabet_char_t
The char_type of the alphabet; defined as the return type of seqan3::to_char.
Definition alphabet/concept.hpp:393
constexpr auto char_is_valid_for
Returns whether a character is in the valid set of a seqan3::alphabet (usually implies a bijective ma...
Definition alphabet/concept.hpp:661
The main SeqAn3 namespace.
Definition aligned_sequence_concept.hpp:26