I want to remove reads from FASTQ file that contain homopolymers > 10bp and remove reads with <35 average quality score across the entire read.
To remove homopolymers > 10bp, I tried this on a Linux machine, but it only removes the sequence line:
zcat file.fastq.gz |
awk '!/A{10,}/&&!/C{10,}/&&!/G{10,}/&&!/T{10,}/ {print}' cleaned_file.fastq