yat
0.20.3pre
|
#include <yat/omic/BamPairBuffer.h>
Public Member Functions | |
BamPairBuffer (OutputIterator out) | |
Constructor. More... | |
void | push (const BamRead &first, const BamRead &second) |
Bam read pairs can be added to this class and it handles to sort reads (according to the genomic position, see BamLessPos) and copy to an output iterator. It is assumed that the inserted read pairs are sorted with respect to their first read. This can be accomplished with e.g. BapPairIterator2.
|
inline |
Constructor.
Creates a buffer that flush elements to out
.
|
inline |
Position of first
read is less (or equal) than position of second
.
It is assumed that read pairs are pushed in a sorted order such that first is not less than the previous first.