# Removing Primers: Cutadapt vs Denoising

**URL:** https://forum.qiime2.org/t/removing-primers-cutadapt-vs-denoising/20376
**Category:** General Discussion
**Tags:** dada2, primers, cutadapt
**Created:** [August 3, 2021, 4:48pm UTC](https://forum.qiime2.org/t/removing-primers-cutadapt-vs-denoising/20376 "2021-08-03T16:48:15Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![SoilRotifer](https://forum.qiime2.org/user_avatar/forum.qiime2.org/soilrotifer/32/21071_2.png) [@SoilRotifer](https://forum.qiime2.org/u/SoilRotifer)
#### Post date: [August 3, 2021, 6:38pm UTC](https://forum.qiime2.org/t/removing-primers-cutadapt-vs-denoising/20376/2 "2021-08-03T18:38:41Z")

</div>

Hi @elsamdea

> [@elsamdea](#):
>
> So, my question is: if you can use directly the `q2-dada2` to remove the primers base pairs, why in most of the papers suggest you use cutadapt before denoising?

These are good questions! You are correct... technically you can go either way... that is use cutadapt, or just trim the primers out directly within deblur or DADA2.

I prefer to use cutadapt to remove primers for the following reasons, which I think I've echoed elsewhere in the forum a few times:

- There may be spurious off-target sequences within your data. Just trimming will retain these reads.
- PCR / sequencing errors can add or remove bases from the beginning or end. Thus potentially inflating differences between sequences creating more sequence variants in the output.
- Quality at the beginning of the read is somewhat indicative of the quality later in the read. That is, if you cant find the primer... then what else is wrong with the sequence?

That is, using cutadapt to search through your reads, to find and remove the primers, is an additional form of quality control. That is, if you are unable to find the primers.. then chances are the reads are of low quality anyway and you might as well discard sequences from which you are unable to find the primers (_e.g._ `--discard-untrimmed`).

For example here are a couple forum threads you can read through:

> [@q2-cutadapt output](https://forum.qiime2.org/t/q2-cutadapt-output/17031):
>
> Hi, Firstly, thank you to the moderators for always responding so promptly and being so helpful with queries. My question is in relation to the q2-cutadapt output (attached). I find that about 50% of reads from all my samples are removed after this step. If I understand correctly, this is because the primers were not detected in these removed reads. I work on 2 x 300bp (Illumina MiSeq V3) 16S reads. Is this 'normal' for Illumina reads or am I losing too much? The parameters I use are: qiime …

> [@Cutadapt failing to remove all primers](https://forum.qiime2.org/t/cutadapt-failing-to-remove-all-primers/17264/2):
>
> Hi @Moon Add the flags --p-match-read-wildcards and --p-match-adapter-wildcards to your command. This will allow matching of IUPAC wild cards such as H, V, N, etc... This is why your primers are not currently being trimmed. So, adding these flags, at least the --p-match-adapter-wildcards flag should help. This also may explain why you end up with having so many sequences. The variety of alternative bases (due to the primer wild cards) create more variation in your sequence in the primer regio…

But there is no one "right way" to do things here. I just prefer to be as exacting, and retain the best quality data I can. 🙂

---

_[View the full topic](https://forum.qiime2.org/t/removing-primers-cutadapt-vs-denoising/20376)._
