This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Filter reads by calculating the distribution of phred score in each individual read

Dear All, I would like to know if there is any tool or script to calculate the distribution of PHRED score for each individual read and filter, if it has the high distribution low quality bases by providing cut-off value. Thanks in advance.

next-gen rna-seq sequencing

Is bbduk what you are looking for?

bbduk.sh in=reads.fq out=clean.fq maq=10

This will discard reads with average quality below 10. If quality-trimming is enabled, the average quality will be calculated on the trimmed read.

By calculating the average quality, we may miss reads which are having moderate distribution of low quality bases. For example I want to retain reads which are having less than 2% bases with 20 PHRED score.

Fastp has an option for that. BTW, in practice base qualities tend to be fairly bimodal.

1 answer

As mentioned in the comments, bbduk and fastp can both do this.

Log in to answer this question.