18 #ifndef __SAM_COORD_OUTPUT_H__ 19 #define __SAM_COORD_OUTPUT_H__ 22 #include "SamRecordPool.h" 59 bool flush(int32_t chromID, int32_t pos0Based);
71 std::multimap<uint64_t, SamRecord*> myReadBuffer;
void setOutputFile(SamFile *outFile, SamFileHeader *header)
Set the already opened output file to write to when flushed.
Allows the user to easily read/write a SAM/BAM file.
bool add(SamRecord *record)
Add the specified record to this read buffer.
bool flush(int32_t chromID, int32_t pos0Based)
Flush the buffer based on the specified chromosome id/position, writing any records that start at/bef...
bool flushAll()
Flush the entire buffer, writing all records.
Class providing an easy to use interface to get/set/operate on the fields in a SAM/BAM record...
Class for buffering up output reads to ensure that it is sorted.