Filter fastq files
After removing over-represented sequences using trimmomatic my fasq file has a large number of small sequences. How can I remove these using trimmomatic if possible or other tools except awk.
• 1,508 views
•
link
1 answer
Consult the Trimmomatic manual
http://www.usadellab.org/cms/?page=trimmomatic
you will need to use the MINLEN action
or as seen in the manual
java -jar trimmomatic-0.39.jar PE input_forward.fq.gz input_reverse.fq.gz output_forward_paired.fq.gz output_forward_unpaired.fq.gz output_reverse_paired.fq.gz output_reverse_unpaired.fq.gz MINLEN:36
yikes for user interface. So I'd recommend using another tool.
• 0 views
•
link
Log in to answer this question.
One typically does not trim overrepresented sequences. In how many percent of reads are the overrepresented sequences? Like 1 or 2%? Just leave it and proceed with alignment.
I specifically removed this sequence: AGATCGGAAGAGCACACGTCAGAACTCCAGTCACGGAGAAATCTCGTATG 79528 0.2893519866061553 TruSeq Adapter, Index 11 (97% over 35bp)
Filtering Fastq Sequences Based On Lengths
This will work cutadapt --minimum-length 20 -o output.fastq input.fastq
Try
bbduk.shin future. A guide is available here. Easy to understand options, fast.