Hi!
I need help with solving the following question with Python3:
Write a Python program that reads a fastq file and calculate how many bases have Phred base read quality of zero, between 1 and 10 (inclusive), 11 and 20, 21 and 30, 31 and 40, and above 40.
The final results should be like:
Base quality zero: XXX bases
Base quality 1-10: YYY bases
Base quality 11-20: ZZZ bases
Base quality 21-30: QQQ bases
Base quality 31-40: RRR bases
Base quality above 40: SSS bases
I don't know where to start. Any help will be greatly appreciated!
And I know the post Python 3: Only Look at Quality Line. Still having difficulties.
No one wants to write your program for you. If you really want help, post your code, and people will probably be be to see why it's not working.