SeqAn3 3.4.0-rc.1
The Modern C++ library for sequence analysis.
Loading...
Searching...
No Matches
cigar.hpp File Reference

Auxiliary functions for the SAM IO. More...

+ Include dependency graph for io/sam_file/detail/cigar.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  seqan3::detail::access_restrictor_fn
 A functor that always throws when calling operator() (needed for the alignment "dummy" sequence). More...
 
struct  seqan3::detail::view_equality_fn
 Comparator that is able two compare two views. More...
 

Namespaces

namespace  seqan3
 The main SeqAn3 namespace.
 
namespace  seqan3::detail
 The internal SeqAn3 namespace.
 

Functions

template<seqan3::aligned_sequence ref_seq_type, seqan3::aligned_sequence query_seq_type>
std::string seqan3::detail::get_cigar_string (ref_seq_type &&ref_seq, query_seq_type &&query_seq, uint32_t const query_start_pos=0, uint32_t const query_end_pos=0, bool const extended_cigar=false)
 Transforms an alignment represented by two seqan3::aligned_sequence's into the corresponding cigar string.
 
std::string seqan3::detail::get_cigar_string (std::vector< cigar > const &cigar_vector)
 Transforms a vector of cigar elements into a string representation.
 
constexpr std::vector< cigarseqan3::detail::parse_cigar (std::string_view const cigar_str)
 Parses a cigar string into a vector of operation-count pairs (e.g. (M, 3)).
 
void seqan3::detail::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.
 

Detailed Description

Auxiliary functions for the SAM IO.

Author
Svenja Mehringer <svenja.mehringer AT fu-berlin.de>
Hide me