34 template <std::ranges::forward_range rng1_type, std::ranges::forward_range rng2_type>
50 char const cigar_operation,
53 switch (cigar_operation)
96 char const *
const end = ptr +
cigar_str.size();
162template <seqan3::aligned_sequence ref_seq_type, seqan3::aligned_sequence query_seq_type>
177 template <
typename chr_t>
180 throw std::logic_error{
"Access is not allowed because there is no sequence information."};
Provides the seqan3::cigar alphabet.
The <charconv> header from C++17's standard library.
The actual implementation of seqan3::cigar::operation for documentation purposes only.
Definition cigar_operation.hpp:45
constexpr auto assign_char_strictly_to
Assign a character to an alphabet object, throw if the character is not valid.
Definition alphabet/concept.hpp:721
std::string get_cigar_string(std::vector< cigar > const &cigar_vector)
Transforms a vector of cigar elements into a string representation.
Definition io/sam_file/detail/cigar.hpp:118
void update_alignment_lengths(int32_t &ref_length, int32_t &seq_length, char const cigar_operation, uint32_t const cigar_count)
Updates the sequence lengths by cigar_count depending on the cigar operation op.
Definition io/sam_file/detail/cigar.hpp:48
constexpr std::vector< cigar > parse_cigar(std::string_view const cigar_str)
Parses a cigar string into a vector of operation-count pairs (e.g. (M, 3)).
Definition io/sam_file/detail/cigar.hpp:87
@ ref_seq
The (reference) "sequence" information, usually a range of nucleotides or amino acids.
The internal SeqAn3 namespace.
Definition aligned_sequence_concept.hpp:26
constexpr auto const & get(configuration< configs_t... > const &config) noexcept
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition configuration.hpp:412
Provides seqan3::detail::pairwise_alignment and seqan3::detail::writable_pairwise_alignment.
Provides character predicates for tokenisation.
A functor that always throws when calling operator() (needed for the alignment "dummy" sequence).
Definition io/sam_file/detail/cigar.hpp:175
chr_t operator()(chr_t) const
Always throws a std::logic_error when called.
Definition io/sam_file/detail/cigar.hpp:178
Comparator that is able two compare two views.
Definition io/sam_file/detail/cigar.hpp:32
constexpr bool operator()(rng1_type &&rng1, rng2_type &&rng2) const
Compares to ranges by delegating to std::ranges::equal.
Definition io/sam_file/detail/cigar.hpp:35
Provides seqan3::views::take_until and seqan3::views::take_until_or_throw.
Auxiliary for pretty printing of exception messages.
Provides seqan3::tuple_like.
Provides seqan3::views::zip.