cgatools::mapping::Map2SamConverter Class Reference

Inheritance diagram for cgatools::mapping::Map2SamConverter:
cgatools::mapping::MergedMap2SamConverter

List of all members.

Public Types

typedef boost::shared_ptr
< std::istream > 
InStream
typedef boost::ptr_vector
< SamRecord
SamRecordArray

Public Member Functions

 Map2SamConverter (const Map2SamConfig &config, std::ostream &outSamFile)
virtual void init ()
void run ()

Static Public Attributes

static const char SAM_SEPARATOR = '\t'

Protected Member Functions

SamFileHeaderBlock createHeader ()
virtual void filterMappingRecords (SamRecordArray &records)
virtual void writeMappingRecord (const SamRecord &m)
void processDnbRecord (const ReadsRecord &readsRecord, const mapping::MappingsRecords &mappingsRecords)
virtual bool alternativeMappingProcessing (const mapping::ReadsRecord &readsRecord, SamRecordArray &records)
 a template function allowing functionality extension by a derived class, such as merge additional mappings returns true if the processing has replaced the standard processing
reference::Range getMappingRange (const SamRecord &mapping)
size_t detectPrimaryMapping (MappingsRecords &mappingsRecords, bool oneArmOnly)
size_t getChunkNumber (const std::string &fileName, size_t formatVersion)
 detect the chunk number for the older versions

Protected Attributes

size_t batchNumber_
size_t formatVersion_
std::string slide_
std::string lane_
std::string laneId_
InStream readsFileStream_
InStream mappingsFileStream_
boost::shared_ptr
< util::DelimitedFile
readsFile_
boost::shared_ptr
< util::DelimitedFile
mappingsFile_
boost::shared_ptr< LibraryDatalibrary_
reference::CrrFile reference_
std::ostream & outSamFile_
SamStatistics statistics_
const Map2SamConfigconfig_
boost::scoped_ptr
< util::FastRangeSet
exportRegions_
boost::scoped_ptr
< mapping::SamRecordGenerator
mappingSamRecordGenerator_

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