Skip to content

Commit

Permalink
improve cut_right
Browse files Browse the repository at this point in the history
  • Loading branch information
sfchen committed Jan 2, 2019
1 parent d552031 commit 7117eba
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,12 @@ Read* Filter::trimAndCut(Read* r, int front, int tail) {
}
}

// the trimming in front is forwarded and rlen is recalculated
if(foundLowQualWindow )
if(foundLowQualWindow ) {
// keep the good bases in the window
while(s<l-1 && qualstr[s]>=33 + mOptions->qualityCut.qualityRight)
s++;
rlen = s - front;
}
}

// quality cutting backward
Expand Down

0 comments on commit 7117eba

Please sign in to comment.