cgatools::mapping::Cigar Class Reference

Provides support for manipulations on SAM/BAM and CGI Evidence CIGAR. More...

#include <SamRecord.hpp>

List of all members.

Classes

class  CigarElement

Public Types

typedef std::vector< CigarElementParsedCigar

Public Member Functions

 Cigar (bool mergeNeighbours=false, bool removeZeros=false)
 Cigar (const std::string &cigar, bool mergeNeighbours=false, bool removeZeros=false)
void parse (const std::string &cigar)
size_t getSequenceLength () const
 computes length of the sequence the cigar describes
size_t getReferenceLength () const
 computes length of the reference segment the cigar describes
const ParsedCigar & getParsedCigar () const
void add (const CigarElement &e)
CigarElementoperator[] (size_t i)
CigarElementback ()
size_t size () const
void trancatePaddings ()
Cigar pack () const
 Removes zero size section merges neighbor sections of the same type and returns a copy.
bool operator== (const Cigar &c) const

Protected Member Functions

void push_back (const CigarElement &e)
void add_back (const CigarElement &e)
 merges the last and new elements if they have equal types

Protected Attributes

bool mergeNeighbours_
bool removeZeros_
ParsedCigar parsedCigar_

Friends

std::ostream & operator<< (std::ostream &out, const Cigar &cigar)

Detailed Description

Provides support for manipulations on SAM/BAM and CGI Evidence CIGAR.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated by  doxygen 1.6.2