From Genome Analysis Wiki
Jump to navigationJump to search
298 bytes added
, 13:34, 6 May 2010
Line 37: |
Line 37: |
| | <code>bool FastQFile::isEof()</code> | | | <code>bool FastQFile::isEof()</code> |
| | Returns true if it is the end of the file, false if not. | | | Returns true if it is the end of the file, false if not. |
| + | |- |
| + | | <code>bool FastQFile::keepReadingFile()</code> |
| + | | Returns true if the file should continue to be read. Returns false on EOF or on a read error (corrupt gzip files never indicate EOF). |
| + | This method should be used for loops that continually read sequences instead of FastQFile::isEof() |
| |- | | |- |
| | <code>FastQStatus FastQFile::validateFastQFile(const String &filename, bool printBaseComp, BaseAsciiMap::SPACE_TYPE spaceType)</code> | | | <code>FastQStatus FastQFile::validateFastQFile(const String &filename, bool printBaseComp, BaseAsciiMap::SPACE_TYPE spaceType)</code> |
Line 112: |
Line 116: |
| } | | } |
| // Keep reading the file until there are no more fastq sequences to process. | | // Keep reading the file until there are no more fastq sequences to process. |
− | while (!fastQFile.isEof()) | + | while (fastQFile.keepReadingFile()) |
| { | | { |
| // Read one sequence. This call will read all the lines for | | // Read one sequence. This call will read all the lines for |