SeqAn3 3.2.0
The Modern C++ library for sequence analysis.
output.hpp
Go to the documentation of this file.
1// -----------------------------------------------------------------------------------------------------
2// Copyright (c) 2006-2022, Knut Reinert & Freie Universität Berlin
3// Copyright (c) 2016-2022, Knut Reinert & MPI für molekulare Genetik
4// This file may be used, modified and/or redistributed under the terms of the 3-clause BSD-License
5// shipped with this file and also available at: https://github.com/seqan/seqan3/blob/master/LICENSE.md
6// -----------------------------------------------------------------------------------------------------
7
13#pragma once
14
15#include <cassert>
16#include <filesystem>
17#include <fstream>
18#include <ranges>
19#include <string>
20#include <string_view>
21#include <variant>
22#include <vector>
23
26#include <seqan3/io/detail/record.hpp>
29#include <seqan3/io/record.hpp>
39
40namespace seqan3
41{
42
43// ----------------------------------------------------------------------------
44// sam_file_output
45// ----------------------------------------------------------------------------
46
60template <detail::fields_specialisation selected_field_ids_ = fields<field::seq,
73 detail::type_list_of_sam_file_output_formats valid_formats_ = type_list<format_sam, format_bam>,
74 typename ref_ids_type = ref_info_not_given>
76{
77public:
83 using selected_field_ids = selected_field_ids_;
85 using valid_formats = valid_formats_;
87 using stream_char_type = char;
89
104
105 static_assert(
106 []() constexpr {
107 for (field f : selected_field_ids::as_array)
108 if (!field_ids::contains(f))
109 return false;
110 return true;
111 }(),
112 "You selected a field that is not valid for alignment files, "
113 "please refer to the documentation of "
114 "seqan3::sam_file_output::field_ids for the accepted values.");
115
122 using value_type = void;
124 using reference = void;
126 using const_reference = void;
128 using size_type = void;
132 using iterator = detail::out_file_iterator<sam_file_output>;
134 using const_iterator = void;
136 using sentinel = std::default_sentinel_t;
138
143 sam_file_output() = delete;
153 ~sam_file_output() = default;
154
181 selected_field_ids const & SEQAN3_DOXYGEN_ONLY(fields_tag) = selected_field_ids{}) :
182 primary_stream{new std::ofstream{}, stream_deleter_default}
183 {
184 primary_stream->rdbuf()->pubsetbuf(stream_buffer.data(), stream_buffer.size());
185 static_cast<std::basic_ofstream<char> *>(primary_stream.get())
186 ->open(filename, std::ios_base::out | std::ios::binary);
187
188 // open stream
189 if (!primary_stream->good())
190 throw file_open_error{"Could not open file " + filename.string() + " for writing."};
191
192 // possibly add intermediate compression stream
193 secondary_stream = detail::make_secondary_ostream(*primary_stream, filename);
194
195 // initialise format handler or throw if format is not found
196 detail::set_format(format, filename);
197 }
198
215 template <output_stream stream_type, sam_file_output_format file_format>
216 requires std::same_as<typename std::remove_reference_t<stream_type>::char_type, stream_char_type>
217 sam_file_output(stream_type & stream,
218 file_format const & SEQAN3_DOXYGEN_ONLY(format_tag),
219 selected_field_ids const & SEQAN3_DOXYGEN_ONLY(fields_tag) = selected_field_ids{}) :
220 primary_stream{&stream, stream_deleter_noop},
221 secondary_stream{&stream, stream_deleter_noop},
222 format{detail::sam_file_output_format_exposer<file_format>{}}
223 {
224 static_assert(list_traits::contains<file_format, valid_formats>,
225 "You selected a format that is not in the valid_formats of this file.");
226 }
227
229 template <output_stream stream_type, sam_file_output_format file_format>
230 requires std::same_as<typename std::remove_reference_t<stream_type>::char_type, stream_char_type>
231 sam_file_output(stream_type && stream,
232 file_format const & SEQAN3_DOXYGEN_ONLY(format_tag),
233 selected_field_ids const & SEQAN3_DOXYGEN_ONLY(fields_tag) = selected_field_ids{}) :
234 primary_stream{new stream_type{std::move(stream)}, stream_deleter_default},
235 secondary_stream{&*primary_stream, stream_deleter_noop},
236 format{detail::sam_file_output_format_exposer<file_format>{}}
237 {
238 static_assert(list_traits::contains<file_format, valid_formats>,
239 "You selected a format that is not in the valid_formats of this file.");
240 }
241
272 template <typename ref_ids_type_, std::ranges::forward_range ref_lengths_type>
273 requires std::same_as<std::remove_reference_t<ref_ids_type_>, ref_ids_type>
275 ref_ids_type_ && ref_ids,
276 ref_lengths_type && ref_lengths,
277 selected_field_ids const & SEQAN3_DOXYGEN_ONLY(fields_tag) = selected_field_ids{}) :
279
280 {
281 initialise_header_information(ref_ids, ref_lengths);
282 }
283
305 template <output_stream stream_type,
306 sam_file_output_format file_format,
307 typename ref_ids_type_, // generic type to capture lvalue references
308 std::ranges::forward_range ref_lengths_type>
309 requires std::same_as<std::remove_reference_t<ref_ids_type_>, ref_ids_type>
310 sam_file_output(stream_type && stream,
311 ref_ids_type_ && ref_ids,
312 ref_lengths_type && ref_lengths,
313 file_format const & SEQAN3_DOXYGEN_ONLY(format_tag),
314 selected_field_ids const & SEQAN3_DOXYGEN_ONLY(fields_tag) = selected_field_ids{}) :
315 sam_file_output{std::forward<stream_type>(stream), file_format{}, selected_field_ids{}}
316 {
317 initialise_header_information(ref_ids, ref_lengths);
318 }
320
342 iterator begin() noexcept
343 {
344 return {*this};
345 }
346
361 sentinel end() noexcept
362 {
363 return {};
364 }
365
384 template <typename record_t>
385 void push_back(record_t && r)
386 requires detail::record_like<record_t>
387 {
389 using default_mate_t = std::tuple<std::string_view, std::optional<int32_t>, int32_t>;
390
391 write_record(detail::get_or<field::header_ptr>(r, nullptr),
392 detail::get_or<field::seq>(r, std::string_view{}),
393 detail::get_or<field::qual>(r, std::string_view{}),
394 detail::get_or<field::id>(r, std::string_view{}),
395 detail::get_or<field::offset>(r, 0u),
396 detail::get_or<field::ref_seq>(r, std::string_view{}),
397 detail::get_or<field::ref_id>(r, std::ignore),
398 detail::get_or<field::ref_offset>(r, std::optional<int32_t>{}),
399 detail::get_or<field::alignment>(r, default_align_t{}),
400 detail::get_or<field::cigar>(r, std::vector<cigar>{}),
401 detail::get_or<field::flag>(r, sam_flag::none),
402 detail::get_or<field::mapq>(r, 0u),
403 detail::get_or<field::mate>(r, default_mate_t{}),
404 detail::get_or<field::tags>(r, sam_tag_dictionary{}),
405 detail::get_or<field::evalue>(r, 0u),
406 detail::get_or<field::bit_score>(r, 0u));
407 }
408
430 template <typename tuple_t>
431 void push_back(tuple_t && t)
432 requires tuple_like<tuple_t> && (!detail::record_like<tuple_t>)
433 {
435 using default_mate_t = std::tuple<std::string_view, std::optional<int32_t>, int32_t>;
436
437 // index_of might return npos, but this will be handled well by get_or_ignore (and just return ignore)
438 write_record(detail::get_or<selected_field_ids::index_of(field::header_ptr)>(t, nullptr),
439 detail::get_or<selected_field_ids::index_of(field::seq)>(t, std::string_view{}),
440 detail::get_or<selected_field_ids::index_of(field::qual)>(t, std::string_view{}),
441 detail::get_or<selected_field_ids::index_of(field::id)>(t, std::string_view{}),
442 detail::get_or<selected_field_ids::index_of(field::offset)>(t, 0u),
443 detail::get_or<selected_field_ids::index_of(field::ref_seq)>(t, std::string_view{}),
444 detail::get_or<selected_field_ids::index_of(field::ref_id)>(t, std::ignore),
445 detail::get_or<selected_field_ids::index_of(field::ref_offset)>(t, std::optional<int32_t>{}),
446 detail::get_or<selected_field_ids::index_of(field::alignment)>(t, default_align_t{}),
447 detail::get_or<selected_field_ids::index_of(field::cigar)>(t, std::vector<cigar>{}),
448 detail::get_or<selected_field_ids::index_of(field::flag)>(t, sam_flag::none),
449 detail::get_or<selected_field_ids::index_of(field::mapq)>(t, 0u),
450 detail::get_or<selected_field_ids::index_of(field::mate)>(t, default_mate_t{}),
451 detail::get_or<selected_field_ids::index_of(field::tags)>(t, sam_tag_dictionary{}),
452 detail::get_or<selected_field_ids::index_of(field::evalue)>(t, 0u),
453 detail::get_or<selected_field_ids::index_of(field::bit_score)>(t, 0u));
454 }
455
479 template <typename arg_t, typename... arg_types>
480 requires (sizeof...(arg_types) + 1 <= selected_field_ids::size)
481 void emplace_back(arg_t && arg, arg_types &&... args)
482 {
483 push_back(std::tie(arg, args...));
484 }
485
507 template <typename rng_t>
508 sam_file_output & operator=(rng_t && range)
509 requires std::ranges::input_range<rng_t> && tuple_like<std::ranges::range_reference_t<rng_t>>
510 {
511 for (auto && record : range)
512 push_back(std::forward<decltype(record)>(record));
513 return *this;
514 }
515
544 template <typename rng_t>
545 friend sam_file_output & operator|(rng_t && range, sam_file_output & f)
546 requires std::ranges::input_range<rng_t> && tuple_like<std::ranges::range_reference_t<rng_t>>
547 {
548 f = range;
549 return f;
550 }
551
553 template <typename rng_t>
554 friend sam_file_output operator|(rng_t && range, sam_file_output && f)
555 requires std::ranges::input_range<rng_t> && tuple_like<std::ranges::range_reference_t<rng_t>>
556 {
557 f = range;
558 return std::move(f);
559 }
561
564
569 {
570 return *secondary_stream;
571 }
573
584 auto & header()
585 {
586 if constexpr (std::same_as<ref_ids_type, ref_info_not_given>)
587 throw std::logic_error{"Please construct your file with reference id and length information in order "
588 "to properly initialise the header before accessing it."};
589
590 return *header_ptr;
591 }
592
593protected:
596 std::vector<char> stream_buffer{std::vector<char>(1'000'000)};
597
605 static void stream_deleter_noop(std::basic_ostream<stream_char_type> *)
606 {}
608 static void stream_deleter_default(std::basic_ostream<stream_char_type> * ptr)
609 {
610 delete ptr;
611 }
612
614 stream_ptr_t primary_stream{nullptr, stream_deleter_noop};
616 stream_ptr_t secondary_stream{nullptr, stream_deleter_noop};
617
619 using format_type = typename detail::variant_from_tags<valid_formats, detail::sam_file_output_format_exposer>::type;
620
622 format_type format;
624
626 using header_type = sam_file_header<
628
631
633 template <typename ref_ids_type_, typename ref_lengths_type>
634 void initialise_header_information(ref_ids_type_ && ref_ids, ref_lengths_type && ref_lengths)
635 {
636 assert(std::ranges::size(ref_ids) == std::ranges::size(ref_lengths));
637
638 header_ptr = std::make_unique<sam_file_header<ref_ids_type>>(std::forward<ref_ids_type_>(ref_ids));
639
640 for (int32_t idx = 0; idx < std::ranges::distance(ref_ids); ++idx)
641 {
642 header_ptr->ref_id_info.emplace_back(ref_lengths[idx], "");
643
644 if constexpr (std::ranges::contiguous_range<std::ranges::range_reference_t<ref_ids_type_>>
645 && std::ranges::sized_range<std::ranges::range_reference_t<ref_ids_type_>>
646 && std::ranges::borrowed_range<std::ranges::range_reference_t<ref_ids_type_>>)
647 {
648 auto && id = header_ptr->ref_ids()[idx];
649 header_ptr->ref_dict[std::span{std::ranges::data(id), std::ranges::size(id)}] = idx;
650 }
651 else
652 {
653 header_ptr->ref_dict[header_ptr->ref_ids()[idx]] = idx;
654 }
655 }
656 }
657
659 template <typename record_header_ptr_t, typename... pack_type>
660 void write_record(record_header_ptr_t && record_header_ptr, pack_type &&... remainder)
661 {
662 static_assert((sizeof...(pack_type) == 15), "Wrong parameter list passed to write_record.");
663
664 assert(!format.valueless_by_exception());
665
667 [&](auto & f)
668 {
669 // use header from record if explicitly given, e.g. file_output = file_input
670 if constexpr (!std::same_as<record_header_ptr_t, std::nullptr_t>)
671 {
672 f.write_alignment_record(*secondary_stream,
673 options,
674 *record_header_ptr,
675 std::forward<pack_type>(remainder)...);
676 }
677 else if constexpr (std::same_as<ref_ids_type, ref_info_not_given>)
678 {
679 f.write_alignment_record(*secondary_stream,
680 options,
681 std::ignore,
682 std::forward<pack_type>(remainder)...);
683 }
684 else
685 {
686 f.write_alignment_record(*secondary_stream,
687 options,
688 *header_ptr,
689 std::forward<pack_type>(remainder)...);
690 }
691 },
692 format);
693 }
694
696 friend iterator;
697};
698
707template <detail::fields_specialisation selected_field_ids>
710
714template <output_stream stream_type,
715 sam_file_output_format file_format,
716 detail::fields_specialisation selected_field_ids>
717sam_file_output(stream_type &&, file_format const &, selected_field_ids const &)
719
723template <output_stream stream_type,
724 sam_file_output_format file_format,
725 detail::fields_specialisation selected_field_ids>
726sam_file_output(stream_type &, file_format const &, selected_field_ids const &)
728
732template <output_stream stream_type, sam_file_output_format file_format>
733sam_file_output(stream_type &&, file_format const &)
735
739template <output_stream stream_type, sam_file_output_format file_format>
740sam_file_output(stream_type &, file_format const &)
742
744template <detail::fields_specialisation selected_field_ids,
745 std::ranges::forward_range ref_ids_type,
746 std::ranges::forward_range ref_lengths_type>
747sam_file_output(std::filesystem::path const &, ref_ids_type &&, ref_lengths_type &&, selected_field_ids const &)
751
753template <std::ranges::forward_range ref_ids_type, std::ranges::forward_range ref_lengths_type>
754sam_file_output(std::filesystem::path const &, ref_ids_type &&, ref_lengths_type &&)
758
760template <output_stream stream_type,
761 std::ranges::forward_range ref_ids_type,
762 std::ranges::forward_range ref_lengths_type,
763 sam_file_output_format file_format,
764 detail::fields_specialisation selected_field_ids>
765sam_file_output(stream_type &&, ref_ids_type &&, ref_lengths_type &&, file_format const &, selected_field_ids const &)
767
769template <output_stream stream_type,
770 std::ranges::forward_range ref_ids_type,
771 std::ranges::forward_range ref_lengths_type,
772 sam_file_output_format file_format,
773 detail::fields_specialisation selected_field_ids>
774sam_file_output(stream_type &, ref_ids_type &&, ref_lengths_type &&, file_format const &, selected_field_ids const &)
776
778template <output_stream stream_type,
779 std::ranges::forward_range ref_ids_type,
780 std::ranges::forward_range ref_lengths_type,
781 sam_file_output_format file_format>
782sam_file_output(stream_type &&, ref_ids_type &&, ref_lengths_type &&, file_format const &)
786
788template <output_stream stream_type,
789 std::ranges::forward_range ref_ids_type,
790 std::ranges::forward_range ref_lengths_type,
791 sam_file_output_format file_format>
792sam_file_output(stream_type &, ref_ids_type &&, ref_lengths_type &&, file_format const &)
797
798} // namespace seqan3
A class for writing alignment files, e.g. SAM, BAL, BLAST, ...
Definition: output.hpp:76
sam_file_output(stream_type &, ref_ids_type &&, ref_lengths_type &&, file_format const &) -> sam_file_output< typename sam_file_output<>::selected_field_ids, type_list< file_format >, std::remove_reference_t< ref_ids_type > >
Deduces the valid format, and the ref_ids_type from input. selected_field_ids set to the default.
void const_reference
The const reference type (void).
Definition: output.hpp:126
friend sam_file_output operator|(rng_t &&range, sam_file_output &&f)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: output.hpp:554
sam_file_output(stream_type &, ref_ids_type &&, ref_lengths_type &&, file_format const &, selected_field_ids const &) -> sam_file_output< selected_field_ids, type_list< file_format >, std::remove_reference_t< ref_ids_type > >
Deduces selected_field_ids, the valid format, and the ref_ids_type from input.
sam_file_output(std::filesystem::path const &, ref_ids_type &&, ref_lengths_type &&) -> sam_file_output< typename sam_file_output<>::selected_field_ids, typename sam_file_output<>::valid_formats, std::remove_reference_t< ref_ids_type > >
Deduces ref_ids_type from input. Valid formats, and selected_field_ids are set to the default.
void size_type
The size type (void).
Definition: output.hpp:128
sam_file_output & operator=(rng_t &&range)
Write a range of records (or tuples) to the file.
Definition: output.hpp:508
sam_file_output(sam_file_output const &)=delete
Copy construction is explicitly deleted, because you can't have multiple access to the same file.
sam_file_output()=delete
Default constructor is explicitly deleted, you need to give a stream or file name.
detail::out_file_iterator< sam_file_output > iterator
The iterator type of this view (an output iterator).
Definition: output.hpp:132
friend sam_file_output & operator|(rng_t &&range, sam_file_output &f)
Write a range of records (or tuples) to the file.
Definition: output.hpp:545
void emplace_back(arg_t &&arg, arg_types &&... args)
Write a record to the file by passing individual fields.
Definition: output.hpp:481
std::default_sentinel_t sentinel
The type returned by end().
Definition: output.hpp:136
char stream_char_type
Character type of the stream(s).
Definition: output.hpp:87
iterator begin() noexcept
Returns an iterator to current position in the file.
Definition: output.hpp:342
sentinel end() noexcept
Returns a sentinel for comparison with iterator.
Definition: output.hpp:361
sam_file_output(std::filesystem::path const &filename, ref_ids_type_ &&ref_ids, ref_lengths_type &&ref_lengths, selected_field_ids const &fields_tag=selected_field_ids{})
Construct from filename.
Definition: output.hpp:274
sam_file_output(std::filesystem::path, selected_field_ids const &) -> sam_file_output< selected_field_ids, typename sam_file_output<>::valid_formats, ref_info_not_given >
Deduces selected_field_ids from input and sets sam_file_output::ref_ids_type to seqan3::detail::ref_i...
sam_file_output(stream_type &&, ref_ids_type &&, ref_lengths_type &&, file_format const &) -> sam_file_output< typename sam_file_output<>::selected_field_ids, type_list< file_format >, std::remove_reference_t< ref_ids_type > >
Deduces the valid format, and the ref_ids_type from input. selected_field_ids set to the default.
sam_file_output & operator=(sam_file_output &&)=default
Move assignment is defaulted.
selected_field_ids_ selected_field_ids
A seqan3::fields list with the fields selected for the record.
Definition: output.hpp:83
valid_formats_ valid_formats
A seqan3::type_list with the possible formats.
Definition: output.hpp:85
sam_file_output & operator=(sam_file_output const &)=delete
Copy assignment is explicitly deleted, because you can't have multiple access to the same file.
sam_file_output(stream_type &&, ref_ids_type &&, ref_lengths_type &&, file_format const &, selected_field_ids const &) -> sam_file_output< selected_field_ids, type_list< file_format >, std::remove_reference_t< ref_ids_type > >
Deduces selected_field_ids, the valid format, and the ref_ids_type from input.
void reference
The reference type (void).
Definition: output.hpp:124
sam_file_output(stream_type &stream, file_format const &format_tag, selected_field_ids const &fields_tag=selected_field_ids{})
Construct from an existing stream and with specified format.
Definition: output.hpp:217
void push_back(record_t &&r)
Write a seqan3::record to the file.
Definition: output.hpp:385
sam_file_output(stream_type &&, file_format const &) -> sam_file_output< typename sam_file_output<>::selected_field_ids, type_list< file_format >, ref_info_not_given >
Deduces the valid format from input and sets sam_file_output::ref_ids_type to seqan3::detail::ref_inf...
sam_file_output(std::filesystem::path filename, selected_field_ids const &fields_tag=selected_field_ids{})
Construct from filename.
Definition: output.hpp:180
sam_file_output(stream_type &&stream, ref_ids_type_ &&ref_ids, ref_lengths_type &&ref_lengths, file_format const &format_tag, selected_field_ids const &fields_tag=selected_field_ids{})
Construct from an existing stream and with specified format.
Definition: output.hpp:310
void value_type
The value type (void).
Definition: output.hpp:122
~sam_file_output()=default
Destructor is defaulted.
sam_file_output_options options
The options are public and its members can be set directly.
Definition: output.hpp:563
sam_file_output(sam_file_output &&)=default
Move construction is defaulted.
sam_file_output(stream_type &&stream, file_format const &format_tag, selected_field_ids const &fields_tag=selected_field_ids{})
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: output.hpp:231
sam_file_output(stream_type &, file_format const &, selected_field_ids const &) -> sam_file_output< selected_field_ids, type_list< file_format >, ref_info_not_given >
Deduces selected_field_ids, and the valid format from input and sets sam_file_output::ref_ids_type to...
sam_file_output(stream_type &&, file_format const &, selected_field_ids const &) -> sam_file_output< selected_field_ids, type_list< file_format >, ref_info_not_given >
Deduces selected_field_ids, and the valid format from input and sets sam_file_output::ref_ids_type to...
void push_back(tuple_t &&t)
Write a record in form of a std::tuple to the file.
Definition: output.hpp:431
auto & header()
Access the file's header.
Definition: output.hpp:584
sam_file_output(std::filesystem::path const &, ref_ids_type &&, ref_lengths_type &&, selected_field_ids const &) -> sam_file_output< selected_field_ids, typename sam_file_output<>::valid_formats, std::remove_reference_t< ref_ids_type > >
Deduces selected_field_ids and ref_ids_type from input. valid_formats is set to the default.
void const_iterator
The const iterator type is void, because files are not const-iterable.
Definition: output.hpp:134
sam_file_output(stream_type &, file_format const &) -> sam_file_output< typename sam_file_output<>::selected_field_ids, type_list< file_format >, ref_info_not_given >
Deduces the valid format from input and sets sam_file_output::ref_ids_type to seqan3::detail::ref_inf...
The SAM tag dictionary class that stores all optional SAM fields.
Definition: sam_tag_dictionary.hpp:343
T data(T... args)
Provides the seqan3::format_bam.
Provides the seqan3::format_sam.
T format(T... args)
T forward(T... args)
T get(T... args)
@ none
None of the flags below are set.
field
An enumerator for the fields used in file formats.
Definition: record.hpp:63
@ flag
The alignment flag (bit information), uint16_t value.
@ ref_offset
Sequence (seqan3::field::ref_seq) relative start position (0-based), unsigned value.
@ ref_seq
The (reference) "sequence" information, usually a range of nucleotides or amino acids.
@ alignment
The (pairwise) alignment stored in an object that models seqan3::detail::pairwise_alignment.
@ cigar
The cigar vector (std::vector<seqan3::cigar>) representing the alignment in SAM/BAM format.
@ mapq
The mapping quality of the seqan3::field::seq alignment, usually a Phred-scaled score.
@ bit_score
The bit score (statistical significance indicator), unsigned value.
@ offset
Sequence (seqan3::field::seq) relative start position (0-based), unsigned value.
@ mate
The mate pair information given as a std::tuple of reference name, offset and template length.
@ header_ptr
A pointer to the seqan3::sam_file_header object storing header information.
@ ref_id
The identifier of the (reference) sequence that seqan3::field::seq was aligned to.
@ evalue
The e-value (length normalized bit score), double value.
@ id
The identifier, usually a string.
@ tags
The optional tags in the SAM format, stored in a dictionary.
@ seq
The "sequence", usually a range of nucleotides or amino acids.
@ qual
The qualities, usually in Phred score notation.
constexpr size_t size
The size of a type pack.
Definition: traits.hpp:146
Provides the seqan3::sam_file_header class.
The generic concept for alignment file out formats.
Whether a type behaves like a tuple.
Provides exceptions used in the I/O module.
Stream concepts.
Provides various utility functions required only for output.
The main SeqAn3 namespace.
Definition: aligned_sequence_concept.hpp:29
Provides the seqan3::detail::out_file_iterator class template.
Provides the seqan3::record template and the seqan3::field enum.
Provides seqan3::detail::record_like.
Provides seqan3::sam_file_output_format and auxiliary classes.
Provides seqan3::sam_file_output_options.
Provides helper data structures for the seqan3::sam_file_output.
T size(T... args)
A class template that holds a choice of seqan3::field.
Definition: record.hpp:128
The class template that file records are based on; behaves like a std::tuple.
Definition: record.hpp:192
Type tag which indicates that no reference information has been passed to the alignment file on const...
Definition: sam_flag.hpp:24
The options type defines various option members that influence the behavior of all or some formats.
Definition: output_options.hpp:26
Type that contains multiple types.
Definition: type_list.hpp:29
T tie(T... args)
Provides traits for seqan3::type_list.
Provides seqan3::tuple_like.
T visit(T... args)