comparing softwares for trimming adaptors
1
0
Entering edit mode
3.5 years ago
gubrins ▴ 290

Heys,

I'm working with WGS data and after running the fastqc I detected that my samples still have adapters. I succesfully removed them with AdapterRemoval and Cutadapt, but I was wondering how I could compare the different softwares. I know that adapter removal's software is a sensitive topic but as I just have two samples, I would like to compare the results I obtain with the three softwares (including Trimmomatic). How could I do that? I'm just thinking in comparing total reads, but a part of that what else could I do?

Thanks in advance, Gabriel

trimming adaptors cutadapt trimmomatic • 4.8k views
ADD COMMENT
4
Entering edit mode

I recommend bbduk.sh. It is one of the few packages that eliminates residual contaminants by overlapping R1/R2 read ends so it can remove that last base or two that may remain.

That said, most aligners should take care of adapter contamination during alignment by soft-clipping the part of read that does not align so strictly speaking you can get away with not doing trimming. Adapter stretches generally get poor Q-scores and these should get eliminated as a part of this.

If you are planning to do any de novo work the trimming should be the norm to remove all extraneous sequences. Quality based trimming should only be needed for this analysis.

ADD REPLY
1
Entering edit mode

I know that adapter removal's software is a sensitive topic

Is that so? I would (in fact I do) simply use cutadapt, well-tested and used by hundreds of labs for almost a decade now. Don't overthink simple things like adapter trimming. Check with fastqc before and after trimming and if the tool managed to remove adapters then go on with analysis. For comparison better see whether there are papers doing that since proper comparison can be tedious. Both trimmo and cutadapt are fine.

ADD REPLY
0
Entering edit mode

Thanks for the quick reply. I said that sentence because when checking in the internet I found several users recommending several softwares (cutadapt, adapterremoval, trimmomatic, bbduk, ...). ATpoint, do you also do quality trimming? Thanks!

ADD REPLY
1
Entering edit mode

No, I do not explicitely trim qualities but I also am not into assembly, so if you vall variants or assemble genome it might be necessary even though most tools should probably be able to simply ignore bases below a certain quality. Most variant callers do, no clue about assemblers.

ADD REPLY
0
Entering edit mode

Heys again,

last question, what's the difference between trimming and marking the adapters? I trimmed them with cutadapt but I wanted to implement GATK's pipeline and I've seen they have a function to mark the Illumina adapters and assign them a low quality score, removing their contribution to read alignment and alignment scoring metrics. Both are ways to deal with adapters I imagine, which one is the best or it depends on you?

Thanks for your help!

ADD REPLY
1
Entering edit mode

Do not add new questions as answers to existing questions. Ask in a new post instead.

I'm moving this post from an answer to a comment.

ADD REPLY
1
Entering edit mode

Trimming is removing the affected bases from your original data before any alignments are done. Marking adapters is done with pre-aligned (one assumes non-trimmed) data files. I like to trim my data so I know all extraneous sequences are gone (or not present). Only adds a small amount of time (bbduk.sh is very fast) and I don't need to think about it again.

ADD REPLY
0
Entering edit mode

Thank you very much for your comment, really nice to have inputs from other people :)

ADD REPLY
4
Entering edit mode
3.5 years ago

Don't overthink the adaptor removal.

The reason people prefer certain software often has to do with additional features that the software has beyond just the adapter removal.

For example if you wanted to remove all reads that have the adaptor on them and keep reads with no adaptor, then only cutadapt can do it, trimmomatic cannot.

If you wanted to process interleaved FASTQ file only AdapterRemoval can do it, and so on.

Each software offers features beyond the original use case. If you "only" need to remove adapters each of these should work similarly well.

ADD COMMENT
1
Entering edit mode

bbduk.sh will work for all the exceptions noted above. No need to use a different/specific program.

ADD REPLY

Login before adding your answer.

Traffic: 2503 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6