In revCompFastq.pl , there is a bug when reversing the quality score line of the FASTQ file. "Else if" condition in line 39 is:
elsif($i % 3 == 3)
But something modulo 3 cannot be equal to 3 so this condition is simply skipped everytime, give no errors and quality scores cannot be reversed while read sequence is reverse complemented.
Hello,
In revCompFastq.pl , there is a bug when reversing the quality score line of the FASTQ file. "Else if" condition in line 39 is:
elsif($i % 3 == 3)
But something modulo 3 cannot be equal to 3 so this condition is simply skipped everytime, give no errors and quality scores cannot be reversed while read sequence is reverse complemented.
The problem is solved when we modify it as:
elsif($i % 4 == 3)
Best wishes. Cansu.