cgatools::mapping::SamRecordGenerator Class Reference

Generates a SAM file record based on a given mapping record The final logic defining what goes into the output file is defined here. More...

#include <SamRecord.hpp>

List of all members.

Public Member Functions

 SamRecordGenerator (std::ostream &outSamFile, const reference::CrrFile &reference, bool mateSvCandidates, bool addMateSequenceAndScore, bool addMateSequenceAndScoreIfMateUnmapped, bool printAlleleInfo)
void mappingRecordToSam (const SamRecord &record)
void setHeader (const SamFileHeaderBlock &header)

Static Public Attributes

static const char SAM_SEPARATOR = '\t'

Protected Member Functions

void printMateSequence (const std::string &mateSeq, const std::string &mateScore)
 Generate additional tags: mate sequence.
void printReadGroup ()
void printNegativeGapTag (const mapping::SamSequenceSplitter &splitter)
void flagAsSVCandidate ()
 Generate inconsistent mapping tag.
void printAlleleInfoTag (const mapping::EvidenceSamRecord &evidenceRecord)
 print allele info for EvidenceRecords
uint32_t adjustedPosition (const SamRecord &record) const

Protected Attributes

std::ostream & outSamFile_
const reference::CrrFilereference_
bool mateSvCandidates_
bool addMateSequenceAndScore_
bool addMateSequenceAndScoreIfMateUnmapped_
bool printAlleleInfo_
SamFileHeaderBlock header_
std::string readGroup_

Detailed Description

Generates a SAM file record based on a given mapping record The final logic defining what goes into the output file is defined here.


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