Hi,
I use Trimmomatic v0.35 and I notice the option -validatePairs
:
Usage:
PE [-threads <threads>] [-phred33|-phred64] [-trimlog <trimLogFile>] [-quiet] [-validatePairs] [-basein <inputBase> | <inputFile1> <inputFile2>] [-baseout <outputBase> | <outputFile1P> <outputFile1U> <outputFile2P> <outputFile2U>] <trimmer1>...
or:
SE [-threads <threads>] [-phred33|-phred64] [-trimlog <trimLogFile>] [-quiet] <inputFile> <outputFile> <trimmer1>...
But I can't find a description of this option in the manual. I want to filter away singletons from two paired fastq-files and I tried to run trimmomatic with this option and the two paired files as input, but it didn't work.
Thanks, Jon
Hi, Please change the post to a question. It is not a job.
Yes, it's certainly not a job! Thanks! :-)
Describe how "it didn't work. Were there errors? The output is not what you expected?
Do your files contain singletons from the start? This only occurs when they are processed incorrectly. Otherwise, Trimmomatic will output properly paired reads.
My questions is really how to use trimmomatic with this option? I can't find any mention of it in the manual. I tried to launch trimmomatic with
-validatePairs input1.fq input2.fq paired1out.fq single1out.fq paired2out.fq single2out.fq
but nothing happened. Only the usage menu showed.And if you use the same command without
-validatePairs
, does it work as expected?Yes, I can do the trimming and everything and it spits out the two correct paired files and the two single files. But in this case I wondered whether I could use trimmomatic just for filtering out singletons, without doing any trimming or filtering.
Probably not. You can use
repair.sh
from the BBTools package for this.Ok, I'll check it out. Thanks for the advice :)