Gk-arrays
Efficient read indexing
 All Classes Functions
Public Member Functions
gkarrays::singleReadIterator Class Reference

#include <readsReader.h>

Inheritance diagram for gkarrays::singleReadIterator:
gkarrays::readIterator

List of all members.

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 readIteratoroperator++ ()
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)

Detailed Description

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.


Constructor & Destructor Documentation

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.

Parameters:
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.

Parameters:
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


Member Function Documentation

Returns:
the length of the read

Implements gkarrays::readIterator.

Returns:
the name of the read

Implements gkarrays::readIterator.

Returns:
the quality of the read

Implements gkarrays::readIterator.

Returns:
the number of the read in the file

Implements gkarrays::readIterator.

Returns:
the sequence of the read

Implements gkarrays::readIterator.

Returns:
true if real tag length is inferior to k or to wanted length
Returns:
true iff we have read the whole file

Implements gkarrays::readIterator.

kseq_t & gkarrays::singleReadIterator::operator* ( ) [virtual]
Returns:
the kseq_t related to the current read

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

Parameters:
valueValue to set AutoDiscard mode

The documentation for this class was generated from the following files:
 All Classes Functions