Skip to content

Commit

Permalink
small revision for the quit_after_contig option
Browse files Browse the repository at this point in the history
  • Loading branch information
sfchen committed May 24, 2018
1 parent 11ce7f9 commit 399c098
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/gencore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ void Gencore::consensus(){
exit(-1);
}
}
// for testing, we only process chr1
if(mOptions->maxContig>0 && b->core.tid>=mOptions->maxContig){
b = bam_init1();
break;
}
// if debug flag is enabled, show which contig we are start to process
if(mOptions->debug && b->core.tid > lastTid) {
cerr << "Starting contig " << b->core.tid << endl;
}
Expand All @@ -137,11 +143,6 @@ void Gencore::consensus(){
}

addToCluster(b);
// for testing, we only process chr1
if(mOptions->maxContig>0 && b->core.tid>=mOptions->maxContig){
b = bam_init1();
break;
}
b = bam_init1();
}

Expand Down

0 comments on commit 399c098

Please sign in to comment.