#include <readsReader.h>
Public Member Functions | |
pairedEndReadIterator (char *filename1, char *filename2, uint k=0, uint length=0, bool printWarnings=false) | |
pairedEndReadIterator (const pairedEndReadIterator &mit) | |
virtual | ~pairedEndReadIterator () |
virtual readIterator & | operator++ () |
virtual pairedEndReadIterator | operator++ (int) |
virtual kseq_t & | operator* () |
virtual size_t | getLength () |
virtual char * | getName () |
readIterator & | getPair () |
virtual char * | getQuality () |
virtual uint | getReadNumber () |
virtual char * | getSequence () |
virtual bool | isFinished () |
bool | isTheFirstMemberOfPair () |
pairedEndReadIterator allows to retrieve information on each read by traversing them in order, one after one in the case of paired-end reads. If the k-mer length or the read length are given, only reads that are long enough to fulfill those values are considered.
gkarrays::pairedEndReadIterator::pairedEndReadIterator | ( | char * | filename1, |
char * | filename2, | ||
uint | k = 0 , |
||
uint | length = 0 , |
||
bool | printWarnings = false |
||
) |
Constructor. Reads are retrieved from the given file.
filename1,: | file we must iterate on |
filename2,: | second file (for paired-end) we must iterate on |
k,: | k-mer length used (0 if unknown or not applicable) |
length,: | Read length (0 for variable) |
printWarnings,: | if true print warnings when skipping a read |
Copy constructor
gkarrays::pairedEndReadIterator::~pairedEndReadIterator | ( | ) | [virtual] |
Destructor
size_t gkarrays::pairedEndReadIterator::getLength | ( | ) | [virtual] |
Implements gkarrays::readIterator.
char * gkarrays::pairedEndReadIterator::getName | ( | ) | [virtual] |
Implements gkarrays::readIterator.
char * gkarrays::pairedEndReadIterator::getQuality | ( | ) | [virtual] |
Implements gkarrays::readIterator.
uint gkarrays::pairedEndReadIterator::getReadNumber | ( | ) | [virtual] |
Implements gkarrays::readIterator.
char * gkarrays::pairedEndReadIterator::getSequence | ( | ) | [virtual] |
Implements gkarrays::readIterator.
bool gkarrays::pairedEndReadIterator::isFinished | ( | ) | [virtual] |
Implements gkarrays::readIterator.
kseq_t & gkarrays::pairedEndReadIterator::operator* | ( | ) | [virtual] |
Implements gkarrays::readIterator.
readIterator & gkarrays::pairedEndReadIterator::operator++ | ( | ) | [virtual] |
Go to next sequence prefix
Implements gkarrays::readIterator.
pairedEndReadIterator gkarrays::pairedEndReadIterator::operator++ | ( | int | ) | [virtual] |
Go to next sequence postfix