# DADA2 and Deblur outputs are extremely different

**URL:** https://forum.qiime2.org/t/dada2-and-deblur-outputs-are-extremely-different/23574
**Category:** User Support
**Tags:** dada2, deblur
**Created:** [July 6, 2022, 6:14pm UTC](https://forum.qiime2.org/t/dada2-and-deblur-outputs-are-extremely-different/23574 "2022-07-06T18:14:33Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Stephan\_Bitterwolf](https://forum.qiime2.org/user_avatar/forum.qiime2.org/stephan_bitterwolf/32/8804_2.png) [@Stephan\_Bitterwolf](https://forum.qiime2.org/u/Stephan_Bitterwolf)
#### Post date: [July 6, 2022, 6:14pm UTC](https://forum.qiime2.org/t/dada2-and-deblur-outputs-are-extremely-different/23574/1 "2022-07-06T18:14:33Z")

</div>

Hello,

I am working with paired sequence data targeting the V4 region of 16s. I am having an issue in that my feature tables are vastly different when using deblur or dada2 methods. The deblur output seems more like what I am expecting, while the dada2 has a very important feature that I cannot see in deblur...

Using DADA2 my feature table has one major feature containing ~800k reads. This feature represents mitochondrial DNA (a common contaminant clearly visible in my agarose gel). However, the other features are low in frequency and are not found across the majority of my samples. Even my bacterial standards are not showing up correctly.

 ![image](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/9/932daa19ab41072745c5573d1abb6d9657a495c9.jpeg)

Using Deblur my feature table has many features with good representation across my samples. My bacterial standards are there and I am able to classify bacteria from the silva database. However, my mitochondrial contamination, clearly visible in DADA2, is now absent. This doesn't make sense to me because I did not remove it from my reads.

 ![image](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/6/623c2c7237972e0fef364f43711fc212e79c0255.jpeg)

Could someone help me understand what is going on?

Here are my methods for each method:  
**DADA2**

1. Create manifest file of forward and reverse reads
2. Import reads into qiime 2 using the manifest file
3. Use cutadapt to remove primers from forward and reverse reads
4. Use DADA2 to create ASV's trimming sequences 0 for the start and 130 for the end

**Deblur**

1. Use PEAR to join forward and reverse reads
2. Use cutadapt to remove forward and reverse primers
3. Create manifest file using the single end format
4. Import reads into qiime2 using the manifest file
5. Quality filter reads
6. Create ASVs using deblur and trimming all reads to 190 bp \*\* I chose 190 bp to include the mitochondrial reads whose lengths are ~204 bp

---

<div class="post-metadata">

### Author: ![colinbrislawn](https://forum.qiime2.org/user_avatar/forum.qiime2.org/colinbrislawn/32/6221_2.png) [@colinbrislawn](https://forum.qiime2.org/u/colinbrislawn)
#### Post date: [July 7, 2022, 2:45pm UTC](https://forum.qiime2.org/t/dada2-and-deblur-outputs-are-extremely-different/23574/2 "2022-07-07T14:45:17Z")

</div>

Hello Stephan,

There are many differences between these denoising pipelines, so I'll highlight just one that could explain the difference is results.

Deblur is reference based, dada2 is _de novo_ ('from nothing' == no reference).

> [@Stephan\_Bitterwolf](#):
>
> Using Deblur my feature table has many features with good representation across my samples. My bacterial standards are there and I am able to classify bacteria from the silva database. However, my mitochondrial contamination, clearly visible in DADA2, is now absent.

Deblur throws away that mitochondrial data because it's not in the reference (Greengenes 13\_8 88% OTUs). You could argue this is a good thing.  
DADA2 keeps everything, because while you consider the mitochondria to be 'contamination,' it really **is** in your samples. You could argue this is a good thing.

Joining and quality filtering is pretty different between these pipelines, but the use of a reference is a key difference.

---

<div class="post-metadata">

### Author: ![Stephan\_Bitterwolf](https://forum.qiime2.org/user_avatar/forum.qiime2.org/stephan_bitterwolf/32/8804_2.png) [@Stephan\_Bitterwolf](https://forum.qiime2.org/u/Stephan_Bitterwolf)
#### Post date: [July 8, 2022, 3:27pm UTC](https://forum.qiime2.org/t/dada2-and-deblur-outputs-are-extremely-different/23574/3 "2022-07-08T15:27:36Z")

</div>

Thank you Colin!

That was exactly it. I ended up getting a good output by repeating the analysis in DADA2 and got it all to work this time. For whatever reason, joining reads was troublesome using DADA2 and qiime. By joining them first in PEAR, removing adapters using cutadapt, and then importing the joined reads into DADA2 I got it all to work.

Thanks again!

---

<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: [July 8, 2022, 4:31pm UTC](https://forum.qiime2.org/t/dada2-and-deblur-outputs-are-extremely-different/23574/4 "2022-07-08T16:31:40Z")

</div>

Hi @Stephan_Bitterwolf,

You could use the SILVA database as a reference like so. It'll be more broad, and would not typically remove plastid or other sequences. Just in case you wanted to try making more direct comparisons to DADA2 etc.... 📓

```auto
qiime deblur denoise-other \
  --i-demultiplexed-seqs seqs.qza \
  --i-reference-seqs silva_repseqs.qza \
  --p-jobs-to-start 8 \
  --p-trim-length 250 \
  --p-sample-stats \
  --o-representative-sequences deblur-repseqs.qza \
  --o-table deblur-table.qza \
  --o-stats deblur-stats.qza \
  --verbose

```

Where `silva_repseqs.qza` can be the full length sequence file located on the [Data resources page](https://docs.qiime2.org/2022.2/data-resources/#silva-16s-18s-rrna).

This is how I use deblur. 🙂

---

<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: [July 8, 2022, 4:35pm UTC](https://forum.qiime2.org/t/dada2-and-deblur-outputs-are-extremely-different/23574/5 "2022-07-08T16:35:29Z")

</div>

Hi @Stephan_Bitterwolf,

I just noticed your reply:

> [@Stephan\_Bitterwolf](#):
>
> By joining them first in PEAR, removing adapters using cutadapt, and then importing the joined reads into DADA2 I got it all to work.

⚠ I'd avoid doing this as you are violating the model assumptions of DADA2! Particularly with altered quality scores in the region of overlap of the merged reads. I'd use deblur with the SILVA db as the reference as I noted in the preceding post. ⚠

---

<div class="post-metadata">

### Author: ![Stephan\_Bitterwolf](https://forum.qiime2.org/user_avatar/forum.qiime2.org/stephan_bitterwolf/32/8804_2.png) [@Stephan\_Bitterwolf](https://forum.qiime2.org/u/Stephan_Bitterwolf)
#### Post date: [July 8, 2022, 4:45pm UTC](https://forum.qiime2.org/t/dada2-and-deblur-outputs-are-extremely-different/23574/6 "2022-07-08T16:45:36Z")

</div>

Hi @SoilRotifer,

Thanks for your reply. I see about the assumption due to the quality scores being modified. I will try the deblur method you specified.

I searched for the mitochondrial sequence on SILVA and it mapped to Mitochondria with an identity score of 55. Do you know if this will be enough for Deblur to include it?

---

<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: [July 8, 2022, 4:58pm UTC](https://forum.qiime2.org/t/dada2-and-deblur-outputs-are-extremely-different/23574/7 "2022-07-08T16:58:30Z")

</div>

I am sure it will, as I always filter mitochondria and chloroplasts from my data, even when using deblur as described. 🙂

---

<div class="post-metadata">

### Author: ![Stephan\_Bitterwolf](https://forum.qiime2.org/user_avatar/forum.qiime2.org/stephan_bitterwolf/32/8804_2.png) [@Stephan\_Bitterwolf](https://forum.qiime2.org/u/Stephan_Bitterwolf)
#### Post date: [July 8, 2022, 6:12pm UTC](https://forum.qiime2.org/t/dada2-and-deblur-outputs-are-extremely-different/23574/8 "2022-07-08T18:12:11Z")

</div>

Hi @SoilRotifer,

Unfortunately, this did not end up working for me. The [full-length reference sequences from SILVA](https://data.qiime2.org/2022.2/common/silva-138-99-seqs.qza) must not have contained the mitochondrial sequence that is found in my dataset: up to 98% of the reads in my data "missed the reference." I'm dealing with host mitochondria from _Montipora capitata_ coral. Perhaps there is a way for me to add the missing sequence to SILVA? The sequence can be found on GenBank [here](https://www.ncbi.nlm.nih.gov/nucleotide/NC_040137.1?report=genbank&log$=nuclalign&blast_rank=1&RID=CGVKR4VF013).

Thanks for your guidance.

---

<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: [July 8, 2022, 8:22pm UTC](https://forum.qiime2.org/t/dada2-and-deblur-outputs-are-extremely-different/23574/9 "2022-07-08T20:22:26Z")

</div>

> [@Stephan\_Bitterwolf](#):
>
> Perhaps there is a way for me to add the missing sequence to SILVA? The sequence can be found on GenBank

Yes there is. You should be able to follow one of these tutorials:

> [@Using RESCRIPt to compile sequence databases and taxonomy classifiers from NCBI Genbank](https://forum.qiime2.org/t/using-rescript-to-compile-sequence-databases-and-taxonomy-classifiers-from-ncbi-genbank/15947):
>
> This tutorial will describe how to create custom reference databases from NCBI Genbank using [RESCRIPt](https://github.com/bokulich-lab/RESCRIPt). Read more about RESCRIPt here: [Processing, filtering, and evaluating the SILVA database (and other reference sequence data) with RESCRIPt - #7](https://forum.qiime2.org/t/processing-filtering-and-evaluating-reference-sequence-data-with-rescript/15494/7) If using NCBI Genbank data, please be aware of the [NCBI disclaimer and copyright notice](https://www.ncbi.nlm.nih.gov/home/about/policies/). Citation: If you use RESCRIPt or any RESCRIPt-processed data in your research, please cite the following pre-print: Michael S Robeson II, Devon R O'Rourke, Benj…

From here you should be able to run `qiime feature-table merge-taxa...` and `qiime feature-table merge-seqs ...` to combine the GenBank and SILVA data.

Note that, prior to merging, there is a chance you'd have to run `qiime rescript edit-taxonomy ...` on the fetched NCBI taxonomy data to change the `k __` prefixes to `d__ `, so that it matches SILVA. Assuming you are downloading the standard 7 ranks (kpcofgs). Otherwise you'll have to do more editing.

---

<div class="post-metadata">

### Author: ![Stephan\_Bitterwolf](https://forum.qiime2.org/user_avatar/forum.qiime2.org/stephan_bitterwolf/32/8804_2.png) [@Stephan\_Bitterwolf](https://forum.qiime2.org/u/Stephan_Bitterwolf)
#### Post date: [July 9, 2022, 5:29pm UTC](https://forum.qiime2.org/t/dada2-and-deblur-outputs-are-extremely-different/23574/10 "2022-07-09T17:29:44Z")

</div>

I was able to add the sequence and it fixed my issue! Deblur no longer gets rid of 98% of the sequences. Thank you @SoilRotifer and @colinbrislawn.

---

<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: [July 9, 2022, 6:08pm UTC](https://forum.qiime2.org/t/dada2-and-deblur-outputs-are-extremely-different/23574/11 "2022-07-09T18:08:55Z")

</div>

Awesome @Stephan_Bitterwolf! 🎉

---

<div class="post-metadata">

### Author: ![system](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/2/1/21af5fe23cb6f4579467c66a9ed94e55274ca7bd.svg) [@system](https://forum.qiime2.org/u/system)
#### Post date: [August 10, 2022, 12:09am UTC](https://forum.qiime2.org/t/dada2-and-deblur-outputs-are-extremely-different/23574/12 "2022-08-10T00:09:30Z")

</div>

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
