Skip to content

Commit

Permalink
fix a regression bug of FASTQ reader
Browse files Browse the repository at this point in the history
  • Loading branch information
sfchen committed May 30, 2023
1 parent ca559a7 commit 0ee1b3b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/fastqreader.cpp
Expand Up @@ -307,10 +307,11 @@ Read* FastqReader::read(){

getLine(name);
// name should start with @
if (name->empty() || (*name)[0]!='@') {
cerr << *name << endl;
error_exit("Read name line should start with '@'");
while((name->empty() && !(mBufUsedLen >= mBufDataLen && bufferFinished())) || (!name->empty() && (*name)[0]!='@')){
getLine(name);
}
if(name->empty())
return NULL;

getLine(sequence);
getLine(strand);
Expand Down

0 comments on commit 0ee1b3b

Please sign in to comment.