SEQanswers

Go Back   SEQanswers > Bioinformatics > Bioinformatics



Similar Threads
Thread Thread Starter Forum Replies Last Post
BWA MEM - which reads were mapped by mate-pair rescue? Flo1000 Bioinformatics 4 09-09-2014 08:01 AM
How to rescue multi-reads when using htseq to generate edgeR/DESeq counts? Hilary April Smith Bioinformatics 3 05-06-2013 11:07 AM
Trimmomatic Help Single Reads Error Hilary April Smith Bioinformatics 3 10-17-2012 06:05 AM
BWA rescue of multi-mapping or unmapped reads kjlee Bioinformatics 6 07-13-2012 10:29 PM
does tophat rescue PE reads that do not map by aligning a single end of the PE? zorph Bioinformatics 0 09-09-2011 02:14 PM

Reply
 
Thread Tools
Old 12-18-2014, 04:53 AM   #1
g.galazzo
Junior Member
 
Location: Groningen

Join Date: Dec 2014
Posts: 2
Default Is possible to rescue the reads trimmet out with Trimmomatic?

Hello to everyone, i'm new of this forum so i will apologize if could be a thread for this argument (i searched but i can't find it ).
Here is my question,
using Trimmomatic v0.10.1 is possible to rescue all that reads that have been trimmed out by the filteres( for example AVGQUAL)?
if yes, could you tell me how?
or if it's not possible could you give me some advice about other programs that can perform that kind of task?
thank you all for the help

ciao a tutti!
g.galazzo is offline   Reply With Quote
Old 12-18-2014, 01:50 PM   #2
Brian Bushnell
Super Moderator
 
Location: Walnut Creek, CA

Join Date: Jan 2014
Posts: 2,707
Default

BBDuk will do that. For example, if you want to remove phiX reads, and reads with average quality below 10:

bbduk.sh ref=phix.fasta k=31 maq=10 in=reads.fq out=good.fq outm=bad.fq

Passing reads go to out, and failing reads go to outm. I'm not sure whether you can do this with Trimmomatic; the manual seems to indicate that you can save pairs where one fails and the other doesn't, but does not seem to mention a way to catch all filtered reads.
Brian Bushnell is offline   Reply With Quote
Old 12-22-2014, 09:02 AM   #3
westerman
Rick Westerman
 
Location: Purdue University, Indiana, USA

Join Date: Jun 2008
Posts: 1,104
Default

As Brian implied, Trimmomatic will separate the reads into R1_paired, R2_paired, R1_unpaired (e.g., R1 reads that no longer have an R2 mate) and R2_unpaired. Failed reads are thrown away.

I don't use BBDuk -- too lazy to switch from Trimmomatic -- but I think that Brian's example will only produce two files -- one when *both* pairs pass the given parameters (in this case no-phiX, avg quality >= 10) and another file that contains pairs when *either* of the pairs fails. It is also possible to set up BBDuk to output 4 files ala Trimmomatic.

However while the Trimmomatic and BBDuk "pass" files should be effectively the same (given algorithmic differences) the "fail" files will be different with Trimmomatic only having single reads and BBDuk having paired reads.

This is a long winded post that says, yes, use BBDuk if you really want all of the failed reads with all of their warts.
westerman is offline   Reply With Quote
Old 12-22-2014, 09:45 AM   #4
Brian Bushnell
Super Moderator
 
Location: Walnut Creek, CA

Join Date: Jan 2014
Posts: 2,707
Default

Quote:
Originally Posted by westerman View Post
...I think that Brian's example will only produce two files -- one when *both* pairs pass the given parameters (in this case no-phiX, avg quality >= 10) and another file that contains pairs when *either* of the pairs fails.
That's true, though note that there is also a "reib" ("removeifeitherbad") flag which will switch the behavior between removing pairs if either fails, and removing only if both fail.

And it's also true that there's not much point in storing reads that fail quality metrics (unless you want to do some kind of QC analysis on them); it makes more sense when used for kmer filter.
Brian Bushnell is offline   Reply With Quote
Reply

Tags
bioinformatics, rescue, rna seq, trimmomatic

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT -8. The time now is 09:19 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Single Sign On provided by vBSSO