SEQanswers

Go Back   SEQanswers > Bioinformatics > Bioinformatics



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adapter trimming and trimming by quality question alisrpp Bioinformatics 5 04-08-2013 04:55 PM
Trimming or filtering the data from Solid anusha Bioinformatics 4 12-19-2012 08:00 AM
Filtering and trimming data salmonella Bioinformatics 10 11-17-2011 05:39 AM
Please Help: What is the differences between standard trimming and adaptive trimming byou678 Bioinformatics 8 08-22-2011 12:05 PM
Trimming or filtering the data from Solid anusha SOLiD 1 01-21-2010 09:19 AM

Reply
 
Thread Tools
Old 10-29-2013, 12:46 AM   #1
Seraphya
Junior Member
 
Location: Melbourne Australia

Join Date: Oct 2013
Posts: 4
Default trimming or filtering first?

Does the order of trimming reads first and then filterings or first filtering reads and then trimming make a diffrence?
Seraphya is offline   Reply With Quote
Old 10-29-2013, 01:12 AM   #2
dpryan
Devon Ryan
 
Location: Freiburg, Germany

Join Date: Jul 2011
Posts: 3,480
Default

To copy and paste my comment on Biostars:
Quote:
Do you mean, "Does the order of adaptor and base quality trimming matter?" Otherwise, which sort of trimming and filtering do you have in mind?
dpryan is offline   Reply With Quote
Old 10-29-2013, 01:15 AM   #3
gege_55
Member
 
Location: Göttingen

Join Date: May 2012
Posts: 10
Default

I did trimming of bad quality bases first. I think you can retain more of your reads like this, because after that step more of your reads will pass the filtering step.
Maybe you could try both ways with a subset of reads and see which one yields more reads after filtering.
gege_55 is offline   Reply With Quote
Old 10-29-2013, 05:33 AM   #4
Seraphya
Junior Member
 
Location: Melbourne Australia

Join Date: Oct 2013
Posts: 4
Default

The subset test is a good idea.
I am actually wondering what the purpose of filtering is if you are trimming reads down and discard them when there are not enough bases left.
Seraphya is offline   Reply With Quote
Old 10-29-2013, 05:38 AM   #5
ctseto
Member
 
Location: SE MN

Join Date: Oct 2013
Posts: 44
Default

Not sure myself. Generally, I've done

Filtering of contaminant genomes (YMMV), then Trimmomatic with the appropriate adaptors. For Trimmomatic, I'm not quite sure if they trim adaptors first then do quality trim, or vice versa.

That said...what did you mean by filtering?

Last edited by ctseto; 10-29-2013 at 05:41 AM.
ctseto is offline   Reply With Quote
Old 10-29-2013, 05:42 AM   #6
dpryan
Devon Ryan
 
Location: Freiburg, Germany

Join Date: Jul 2011
Posts: 3,480
Default

Quote:
Originally Posted by Seraphya View Post
The subset test is a good idea.
I am actually wondering what the purpose of filtering is if you are trimming reads down and discard them when there are not enough bases left.
I don't bother with filtering after trimming. The quality dip is almost always just near the ends of the reads, so there's likely no benefit unless you're doing a homopolymer filter or something like that. Even then, unless you have a lot of reads that would otherwise be filtered out, the change in alignment time is likely about as long as the amount of time needed for the filtering.
dpryan is offline   Reply With Quote
Old 10-29-2013, 06:54 AM   #7
gege_55
Member
 
Location: Göttingen

Join Date: May 2012
Posts: 10
Default

It depends on what you want to do with your reads. For mappings I wouldn't filter too strictly. For assemblies you want the best quality reads possible.
In the case of an assembly I remove reads with ambiguous bases first. Assemblers don't handle them well. Then you trimm and then you filter. I try to estimate how many reads I need in the end for a decent assembly. There are some numbers here in the forum for a few species. Then I iterate the filter criteria with a subset in a way to approximately reach that number.
The more reads you have to begin with the more you can filter out resulting in higher quality of the remaining.
gege_55 is offline   Reply With Quote
Reply

Tags
filtering reads, quality filtering, quality trimming, trimming

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 10:17 AM.


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