112 position_buffer = stream.tellg();
120 if constexpr (!detail::decays_to_ignore_v<seq_type>)
131#if SEQAN3_WORKAROUND_VIEW_PERFORMANCE
133 if constexpr (!detail::decays_to_ignore_v<id_type>)
135 if (options.truncate_ids)
171 if constexpr (!detail::decays_to_ignore_v<seq_type>)
220 if constexpr (!detail::decays_to_ignore_v<qual_type>)
263 throw parse_error{
"Qualitites longer than sequence."};
270 if constexpr (!detail::decays_to_ignore_v<id_type>)
272 if (options.truncate_ids)
277 detail::consume(
stream_view | detail::take_line_or_throw);
288 detail::consume(
stream_view | detail::take_line_or_throw);
294 if constexpr (!detail::decays_to_ignore_v<seq_type>)
299 | std::views::transform(
305 +
"char_is_valid_for<"
306 + detail::type_name_as_string<seq_legal_alph_type>
307 +
"> evaluated to false on " + detail::make_printable(c)};
326 detail::consume(
stream_view | detail::take_line_or_throw);
331 if constexpr (!detail::decays_to_ignore_v<qual_type>)
338 detail::consume(
qview);
354 seqan3::detail::fast_ostreambuf_iterator
stream_it{*stream.rdbuf()};
357 if constexpr (detail::decays_to_ignore_v<id_type>)
359 throw std::logic_error{
"The ID field may not be set to ignore when writing FASTQ files."};
363 if (std::ranges::empty(
id))
372 if constexpr (detail::decays_to_ignore_v<seq_type>)
375 "The SEQ and SEQ_QUAL fields may not both be set to ignore when writing FASTQ files."};
387 if constexpr (!detail::decays_to_ignore_v<id_type>)
398 if constexpr (detail::decays_to_ignore_v<qual_type>)
401 "The QUAL and SEQ_QUAL fields may not both be set to ignore when writing FASTQ files."};
408 if constexpr (std::ranges::sized_range<seq_type> && std::ranges::sized_range<qual_type>)
Provides aliases for qualified.
Core alphabet concept and free function/type trait wrappers.
T back_inserter(T... args)
Provides alphabet adaptations for standard char types.
Provides seqan3::views::char_to.
A "pretty printer" for most SeqAn data structures and related types.
Definition debug_stream_type.hpp:79
Provides various utility functions.
Provides various transformation traits used by the range module.
Provides seqan3::dna5, container aliases and string literals.
Provides seqan3::detail::fast_ostreambuf_iterator.
auto const to_char
A view that calls seqan3::to_char() on each element in the input range.
Definition to_char.hpp:60
auto const char_to
A view over an alphabet, given a range of characters.
Definition char_to.hpp:64
constexpr auto assign_char_to
Assign a character to an alphabet object.
Definition alphabet/concept.hpp:517
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
constexpr auto is_blank
Checks whether c is a blank character.
Definition predicate.hpp:139
constexpr auto is_char
Checks whether a given letter is the same as the template non-type argument.
Definition predicate.hpp:60
constexpr auto is_space
Checks whether c is a space character.
Definition predicate.hpp:122
constexpr auto is_cntrl
Checks whether c is a control character.
Definition predicate.hpp:87
Provides seqan3::detail::ignore_output_iterator for writing to null stream.
The generic concept for a (biological) sequence.
Provides various utility functions.
Provides seqan3::detail::istreambuf.
The main SeqAn3 namespace.
Definition aligned_sequence_concept.hpp:26
SeqAn specific customisations in the standard namespace.
Provides character predicates for tokenisation.
Provides seqan3::sequence_file_output_options.
Thrown if there is a parse error, such as reading an unexpected character from an input stream.
Definition io/exception.hpp:45
The options type defines various option members that influence the behaviour of all or some formats.
Definition sequence_file/output_options.hpp:23
bool add_carriage_return
The default plain text line-ending is "\n", but on Windows an additional carriage return is recommend...
Definition sequence_file/output_options.hpp:39
bool fastq_double_id
Whether to write the ID only '@' or also after '+' line.
Definition sequence_file/output_options.hpp:34
Provides seqan3::views::take_exactly and seqan3::views::take_exactly_or_throw.
Provides seqan3::detail::take_line and seqan3::detail::take_line_or_throw.
Provides seqan3::views::take_until and seqan3::views::take_until_or_throw.
Provides seqan3::views::to_char.
Provides traits to inspect some information of a type, for example its name.
Provides concepts that do not have equivalents in C++20.