#include <readsReader.h>
Public Member Functions | |
singleReadIterator (char *filename, uint k=0, uint length=0, bool printWarnings=false, bool autoDiscard=true, bool autoFirstIteration=true) | |
singleReadIterator (kseq_t *seq, uint k=0, uint length=0) | |
singleReadIterator (const singleReadIterator &mit) | |
~singleReadIterator () | |
virtual readIterator & | operator++ () |
virtual singleReadIterator | operator++ (int) |
virtual kseq_t & | operator* () |
virtual char * | getName () |
virtual char * | getQuality () |
virtual char * | getSequence () |
virtual uint | getReadNumber () |
virtual size_t | getLength () |
virtual bool | isFinished () |
bool | isDiscarded () |
void | setAutoDiscard (bool value) |
singleReadIterator allows to retrieve information on each read by traversing them in order, one after one. If the k-mer length or the read length are given, only reads that are long enough to fulfill those values are considered.
gkarrays::singleReadIterator::singleReadIterator | ( | char * | filename, |
uint | k = 0 , |
||
uint | length = 0 , |
||
bool | printWarnings = false , |
||
bool | autoDiscard = true , |
||
bool | autoFirstIteration = true |
||
) |
Constructor. Reads are retrieved from the given file.
filename,: | file 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 |
autoDiscard,: | if true skip automatically bad reads |
autoFirstIteration,: | automatically perform the first iteration (meaning that it initializes the data structure) |
gkarrays::singleReadIterator::singleReadIterator | ( | kseq_t * | seq, |
uint | k = 0 , |
||
uint | length = 0 |
||
) |
Constructor. singleReadIterator starts at the given sequence.
seq,: | the sequence to start at. |
k,: | k-mer length used (0 if unknown or not applicable) |
length,: | Read length (0 for variable) |
Copy constructor
Destructor
size_t gkarrays::singleReadIterator::getLength | ( | ) | [virtual] |
Implements gkarrays::readIterator.
char * gkarrays::singleReadIterator::getName | ( | ) | [virtual] |
Implements gkarrays::readIterator.
char * gkarrays::singleReadIterator::getQuality | ( | ) | [virtual] |
Implements gkarrays::readIterator.
uint gkarrays::singleReadIterator::getReadNumber | ( | ) | [virtual] |
Implements gkarrays::readIterator.
char * gkarrays::singleReadIterator::getSequence | ( | ) | [virtual] |
Implements gkarrays::readIterator.
bool gkarrays::singleReadIterator::isFinished | ( | ) | [virtual] |
Implements gkarrays::readIterator.
kseq_t & gkarrays::singleReadIterator::operator* | ( | ) | [virtual] |
Implements gkarrays::readIterator.
readIterator & gkarrays::singleReadIterator::operator++ | ( | ) | [virtual] |
Go to next sequence prefix
Implements gkarrays::readIterator.
singleReadIterator gkarrays::singleReadIterator::operator++ | ( | int | ) | [virtual] |
Go to next sequence postfix
void gkarrays::singleReadIterator::setAutoDiscard | ( | bool | value | ) |
value | Value to set AutoDiscard mode |