Open feldroop opened 4 days ago
Hey Felix,
you'll need to additionally include
#include <seqan3/alignment/aligned_sequence/debug_stream_alignment.hpp>
We redesigned the debug_stream (https://github.com/seqan/seqan3/pull/3259). It also ahs the side effect that <iostream>
and seqan3's debug_stream
are not auto-included, unless you actually want them.
With the include, the output is
{score: 0, begin: (15,0),
alignment:
0 .
|||||
}
0 .
|||||
[5=]
Which I guess is OK, because uint8_t 0
isn't a printable character.
Without the include, it would use the next best fitting available printer, which would be the tuple printer, which does not convert the input sequences to char
.
I'm changing this issue from bug to documentation.
https://docs.seqan.de/seqan3/main_user/group__core__debug__stream.html
Could at least use a list of printers and the corresponding types it prints. Some printers are missing in the auto generated list of printers, because they are documented in another group (for example, the alignment printer)
Does this problem persist on the current main?
Is there an existing issue for this?
Current Behavior
Printing the alignment of the alignment result from the
align_pairwise
function using thedebug_stream
seems to be broken. Maybe the issue is using theuint8_t
alphabet. Here is the code:It prints:
The CIGAR string is as expected, but just printing the alignment shows as
(,)
, which seem to be not intended.Expected Behavior
I would expect it to either not compile, because the uint8_t alphabet wrapper does not support this kind of pretty printing or to print a useful debug representation of the alignment (5 matches) and not just the symbols
(,)
.Steps To Reproduce
See above
Environment
Anything else?
No response