Skip to content

Commit ff2d16c

Browse files
committed
fixed bug where excessive 5-prime low qualities caused incorrect trimming
1 parent b181af0 commit ff2d16c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/sliding.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,6 @@ cutsites* sliding_window (kseq_t *fqrec, int qualtype, int length_threshold, int
6666

6767
window_avg = (double)window_total / (double)window_size;
6868

69-
/* If it is the first window, and the qual average is already above
70-
the threshold, then we have already found the five prime cut at pos 0 */
71-
if (i==0 && window_avg >= qual_threshold) {found_five_prime = 1;}
72-
7369
/* Finding the 5' cutoff */
7470
/* Find when the average quality in the window goes above the threshold starting from the 5' end */
7571
if (no_fiveprime == 0 && found_five_prime == 0 && window_avg >= qual_threshold) {

0 commit comments

Comments
 (0)