25namespace seqan3::detail
35template <
typename char_t,
tuple_like alignment_t,
size_t... idx>
37 alignment_t
const & align,
41 size_t const alignment_size = get<0>(align).size();
44 for (
size_t begin_pos = 0; begin_pos < alignment_size; begin_pos += 50)
46 size_t const end_pos =
std::min(begin_pos + 50, alignment_size);
52 stream <<
std::setw(7) << begin_pos <<
' ';
53 for (
size_t pos = begin_pos + 1; pos <= end_pos; ++pos)
57 else if (pos % 5 == 0)
71 auto stream_f = [&](
auto const & previous_seq,
auto const & aligned_seq)
78 stream << (get<0>(ch) == get<1>(ch) ?
'|' :
' ');
89 (stream_f(get<idx>(align), get<idx + 1>(align)), ...);
107template <
typename char_t,
typename alignment_t>
108 requires (detail::debug_streamable_tuple<alignment_t>
109 && detail::all_model_aligned_seq<detail::tuple_type_list_t<std::remove_cvref_t<alignment_t>>>)
110inline debug_stream_type<char_t> &
operator<<(debug_stream_type<char_t> & stream, alignment_t &&
alignment)
112 constexpr size_t sequence_count = std::tuple_size_v<std::remove_cvref_t<alignment_t>>;
114 static_assert(sequence_count >= 2,
"An alignment requires at least two sequences.");
Includes the aligned_sequence and the related insert_gap and erase_gap functions to enable stl contai...
A "pretty printer" for most SeqAn data structures and related types.
Definition: debug_stream_type.hpp:78
auto const to_char
A view that calls seqan3::to_char() on each element in the input range.
Definition: to_char.hpp:63
@ alignment
The (pairwise) alignment stored in an object that models seqan3::detail::pairwise_alignment.
constexpr auto slice
A view adaptor that returns a half-open interval on the underlying range.
Definition: slice.hpp:178
seqan::std::views::zip zip
A view adaptor that takes several views and returns tuple-like values from every i-th element of each...
Definition: zip.hpp:27
Whether a type behaves like a tuple.
The main SeqAn3 namespace.
Definition: aligned_sequence_concept.hpp:29
Provides seqan3::views::slice.
Provides seqan3::views::to_char.
Provides seqan3::debug_stream and related types.
Provides seqan3::tuple_like.
Provides seqan3::views::zip.