# Losing a whole sample after denoising.

**URL:** https://forum.qiime2.org/t/losing-a-whole-sample-after-denoising/23654
**Category:** User Support
**Tags:** dada2, quality-filter
**Created:** [July 18, 2022, 6:30pm UTC](https://forum.qiime2.org/t/losing-a-whole-sample-after-denoising/23654 "2022-07-18T18:30:07Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![DoctorC](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/d/ee7513/32.png) [@DoctorC](https://forum.qiime2.org/u/DoctorC)
#### Post date: [July 18, 2022, 6:30pm UTC](https://forum.qiime2.org/t/losing-a-whole-sample-after-denoising/23654/1 "2022-07-18T18:30:07Z")

</div>

Hi fellas.

I'm losing more than half sequences after denoising and a complete sample.  
I have paired-end sequences. And here is the quality plot.

 ![qualityplot](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/a/a9168092af68235ce9cedb3144b5c14c5896326c.jpeg)  
After watching this, I chose the following parameters for dada2

--p-trim-left-f 5  
--p-trim-left-r 8  
--p-trunc-len-f 148  
--p-trunc-len-r 138

And got this results:

 ![denoisestats](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/3/3dc550caf12925e2d5d9b1fc1d0b0639e2e2a7ce.jpeg)

I completely lost a sample and a high percent of sequences.

What can I do? I think choosing different parameters would help but I don't know where to cut.

I hope you can help me out.

Thanks

Carlos

---

<div class="post-metadata">

### Author: ![DoctorC](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/d/ee7513/32.png) [@DoctorC](https://forum.qiime2.org/u/DoctorC)
#### Post date: [July 19, 2022, 1:41am UTC](https://forum.qiime2.org/t/losing-a-whole-sample-after-denoising/23654/2 "2022-07-19T01:41:14Z")

</div>

\*An update.

I rerunned dada2 changing parameters and I could recover a lot of sequences but still couldn't recover sample 12.

 ![rerun](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/1/12e30fc4bc5acce626b12ae6b3f2100677294807.jpeg)  
Here the parameters i used:  
--p-trim-left-f 30   
--p-trim-left-r 30   
--p-trunc-len-f 140   
--p-trunc-len-r 130 \

Thank you in advance.

Carlos

---

<div class="post-metadata">

### Author: ![lizgehret](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lizgehret/32/17128_2.png) [@lizgehret](https://forum.qiime2.org/u/lizgehret)
#### Post date: [July 19, 2022, 8:55pm UTC](https://forum.qiime2.org/t/losing-a-whole-sample-after-denoising/23654/3 "2022-07-19T20:55:30Z")

</div>



---

<div class="post-metadata">

### Author: ![lizgehret](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lizgehret/32/17128_2.png) [@lizgehret](https://forum.qiime2.org/u/lizgehret)
#### Post date: [July 20, 2022, 5:07pm UTC](https://forum.qiime2.org/t/losing-a-whole-sample-after-denoising/23654/4 "2022-07-20T17:07:55Z")

</div>

Hi @DoctorC,

Welcome back to the :qiime2: forum!

It looks like the issue here is coming from the fact that most your reads aren't able to be merged - because a very high number of them are being retained post-filtering. Is there a reason that you're trimming your sequences? If they are EMP protocol, there is no need to trim your sequences - and with 150 bp reads, merging can be tricky since there isn't as much room for overlap as with 250 bp reads.

I'd recommend increasing your `trunc-len` parameters as well to increase the number of retained reads on the 3' end. You could remove the `trunc-len` param on your forward reads, as the median value remains pretty high throughout. I'd personally increase the `trunc-len` on your reverse reads to somewhere around 140 (which is about what you have in your most recent run) since the median quality score does seem to drop quite a bit after that, and the range in quality score is pretty large there as well.

If these adjustments don't produce a reasonable number of merged reads (I'd generally aim for at least greater than 50%) then you may just not be able to work with paired end reads in your data, and may just need to work with single end reads for your analysis (even though I realize that's not ideal).

I hope this helps! Cheers 🦎

---

<div class="post-metadata">

### Author: ![lizgehret](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lizgehret/32/17128_2.png) [@lizgehret](https://forum.qiime2.org/u/lizgehret)
#### Post date: [July 20, 2022, 5:08pm UTC](https://forum.qiime2.org/t/losing-a-whole-sample-after-denoising/23654/5 "2022-07-20T17:08:03Z")

</div>



---

<div class="post-metadata">

### Author: ![DoctorC](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/d/ee7513/32.png) [@DoctorC](https://forum.qiime2.org/u/DoctorC)
#### Post date: [July 20, 2022, 5:46pm UTC](https://forum.qiime2.org/t/losing-a-whole-sample-after-denoising/23654/6 "2022-07-20T17:46:40Z")

</div>

Hi @lizgehret !

I am trimming because I'm not using 'cut adapt' and because I found noisy the range of quality, nowO see I'm just wrong. I will repeat it changing parameters. Do I loss much using the single end approach?

Thank you,I appreciate a lot your help!

Carlos

---

<div class="post-metadata">

### Author: ![lizgehret](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lizgehret/32/17128_2.png) [@lizgehret](https://forum.qiime2.org/u/lizgehret)
#### Post date: [July 20, 2022, 5:47pm UTC](https://forum.qiime2.org/t/losing-a-whole-sample-after-denoising/23654/7 "2022-07-20T17:47:37Z")

</div>



---

<div class="post-metadata">

### Author: ![lizgehret](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lizgehret/32/17128_2.png) [@lizgehret](https://forum.qiime2.org/u/lizgehret)
#### Post date: [July 21, 2022, 4:10pm UTC](https://forum.qiime2.org/t/losing-a-whole-sample-after-denoising/23654/8 "2022-07-21T16:10:44Z")

</div>

Hi @DoctorC,

> [@DoctorC](#):
>
> Do I loss much using the single end approach?

Your total read length will be shorter (150 bp for your reads) since you aren't merging your forward and reverse reads - but if you're unable to merge them, that will be your best way forward.

Cheers 🦎

---

<div class="post-metadata">

### Author: ![lizgehret](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lizgehret/32/17128_2.png) [@lizgehret](https://forum.qiime2.org/u/lizgehret)
#### Post date: [July 21, 2022, 4:10pm UTC](https://forum.qiime2.org/t/losing-a-whole-sample-after-denoising/23654/9 "2022-07-21T16:10:48Z")

</div>



---

<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 21, 2022, 10:11pm UTC](https://forum.qiime2.org/t/losing-a-whole-sample-after-denoising/23654/10 "2022-08-21T22:11:29Z")

</div>

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