# Denoise paired issues

**URL:** <https://forum.qiime2.org/t/denoise-paired-issues/29669>\
**Category:** User Support\
**Tags:** dada2\
**Created:** [March 22, 2024, 4:29pm UTC](https://forum.qiime2.org/t/denoise-paired-issues/29669 "2024-03-22T16:29:30Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![bingli2019](https://forum.qiime2.org/user_avatar/forum.qiime2.org/bingli2019/32/18089_2.png) [@bingli2019](https://forum.qiime2.org/u/bingli2019)\
**Post date:** [March 22, 2024, 4:29pm UTC](https://forum.qiime2.org/t/denoise-paired-issues/29669/1 "2024-03-22T16:29:30Z")

</div>

I found that four samples(four groups) is correctly to taxonmy, but five samples(five groups) is not correctly to taxonmy.

here is my code.

qiime dada2 denoise-paired   
--i-demultiplexed-seqs 03.import/demux.qza   
--p-n-threads 20   
--p-trim-left-f 15 --p-trim-left-r 15   
--p-trunc-len-f 0 --p-trunc-len-r 0   
--o-table 04.Denoise/dada2-table.qza   
--o-representative-sequences 04.Denoise/dada2-rep-seqs.qza   
--o-denoising-stats 04.Denoise/denoising-stats.qza

```
cp 04.Denoise/dada2-table.qza 04.Denoise/table.qza
cp 04.Denoise/dada2-rep-seqs.qza 04.Denoise/rep-seqs.qza

```

qiime feature-classifier classify-sklearn   
--i-classifier ${dbdir}/2022.10.backbone.full-length.nb.qza   
--i-reads 04.Denoise/rep-seqs.qza   
--o-classification 09.Taxonomy\_Classify/taxonomy.qza

I donot know why?

---

<div class="post-metadata">

**Author:** ![Mudit\_Bhatia](https://forum.qiime2.org/user_avatar/forum.qiime2.org/mudit_bhatia/32/17746_2.png) [@Mudit\_Bhatia](https://forum.qiime2.org/u/Mudit_Bhatia)\
**Post date:** [March 22, 2024, 5:41pm UTC](https://forum.qiime2.org/t/denoise-paired-issues/29669/2 "2024-03-22T17:41:16Z")

</div>

Hi @bingli2019,

Although not an expert here but the issue might be arising due to the --p-trunc-len-f and --p-trunc-len-r which have been set to 0. If you do not want to leave any bases unused towards the end, you can input the length of the read (eg 251 using 515F-806R primers). This should solve the problem.

Hope it helps.

---

<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:** [March 22, 2024, 6:11pm UTC](https://forum.qiime2.org/t/denoise-paired-issues/29669/3 "2024-03-22T18:11:31Z")

</div>

> [@Mudit\_Bhatia](#):
>
> Although not an expert here but the issue might be arising due to the --p-trunc-len-f and --p-trunc-len-r which have been set to 0. If you do not want to leave any bases unused towards the end, you can input the length of the read (eg 251 using 515F-806R primers). This should solve the problem.

@Mudit_Bhatia This is incorrect as noted in the help text:

> If 0 is provided, no truncation or length filtering will be performed

@bingli2019,  
Can you provide more details on what taxonomy you expect to observe and why?

---

<div class="post-metadata">

**Author:** ![Mudit\_Bhatia](https://forum.qiime2.org/user_avatar/forum.qiime2.org/mudit_bhatia/32/17746_2.png) [@Mudit\_Bhatia](https://forum.qiime2.org/u/Mudit_Bhatia)\
**Post date:** [March 22, 2024, 6:37pm UTC](https://forum.qiime2.org/t/denoise-paired-issues/29669/4 "2024-03-22T18:37:03Z")

</div>

Thank you Mike for this correction!!

---

<div class="post-metadata">

**Author:** ![bingli2019](https://forum.qiime2.org/user_avatar/forum.qiime2.org/bingli2019/32/18089_2.png) [@bingli2019](https://forum.qiime2.org/u/bingli2019)\
**Post date:** [March 25, 2024, 2:17am UTC](https://forum.qiime2.org/t/denoise-paired-issues/29669/5 "2024-03-25T02:17:20Z")

</div>

Yes, when I have 1,2,3,4 samples and It's OK. But if I have 5 or more samples and It's error.  
here is an example of five and one samples.

five samples in five groups taxonomy not good.

| index | k\_\_Eukaryota | Unassigned | Group |
| --- | --- | --- | --- |
| KC144 | 0 | 79450 | B1 |
| DC114 | 0 | 78200 | B2 |
| JH165 | 81814 | 420 | B3 |
| SB017 | 0 | 81494 | B4 |
| TL137 | 0 | 80076 | B5 |

only one or not over 5 samples and groups, it's perfect.  
here is one sample.

| index | d\_\_Bacteria;p\_\_Firmicutes\_D;c\_\_Bacilli;o\_\_Bacillales\_B\_306089;f\_\_Bacillaceae\_H\_294103;g\_\_Bacillus\_P\_294101 | Group |
| --- | --- | --- |
| KC144 | 81141 | B1 |

---

<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:** [March 25, 2024, 6:07pm UTC](https://forum.qiime2.org/t/denoise-paired-issues/29669/6 "2024-03-25T18:07:39Z")

</div>

Hi @bingli2019,

I am not sure what it is you are asking. Are you looking for Eukaryotes? Bacteria?

Based on the table... I assume you are asking why there are so many unassigned taxa?

Do you know if your sequences are in a mixed orientation? That is, how were your data sequenced? In order for the classifier to work, the sequences should be in the same orientation as the reference database / classifier. One quick sanity-check you can perform is to use `feature-classifier classify-consensus-vsearch...` as this approach does not care about sequence orientation. If you obtain reasonable classification, then this would imply that your sequences are not oriented correctly, which is why the sklearn classifier is not working.

---

<div class="post-metadata">

**Author:** ![bingli2019](https://forum.qiime2.org/user_avatar/forum.qiime2.org/bingli2019/32/18089_2.png) [@bingli2019](https://forum.qiime2.org/u/bingli2019)\
**Post date:** [March 26, 2024, 1:37am UTC](https://forum.qiime2.org/t/denoise-paired-issues/29669/7 "2024-03-26T01:37:27Z")

</div>

Yes, you're right. The sklearn classifier is not working when the sequences are the same orientation.

Thanks so much!

---

<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:** [March 26, 2024, 2:12pm UTC](https://forum.qiime2.org/t/denoise-paired-issues/29669/8 "2024-03-26T14:12:30Z")

</div>

> [@bingli2019](#):
>
> Yes, you're right. The sklearn classifier is not working when the sequences are the same orientation.

I assume you mean that it is not working when they are _not oriented the same way as the reference database_. 🙂

Keep this in mind when trying to generate ASVs / OTUs and constructing a phylogenies. You might get spurious results the reads are of mixed orientation. So, you'd need a way to orient all of the reads in the same direction.

Sadly there is no way to, currently, orient fastq files in QIIME 2. Though it should be possible via running vsearch manually outside of QIIME 2, then re-importing. See [here](https://forum.qiime2.org/t/preparing-mixed-orientation-reads-for-dada2/29048/5) for one possible approach.

You can use `qiime rescript orient-seqs ...` to orient FASTA sequences.

---

<div class="post-metadata">

**Author:** ![bingli2019](https://forum.qiime2.org/user_avatar/forum.qiime2.org/bingli2019/32/18089_2.png) [@bingli2019](https://forum.qiime2.org/u/bingli2019)\
**Post date:** [March 27, 2024, 1:13am UTC](https://forum.qiime2.org/t/denoise-paired-issues/29669/9 "2024-03-27T01:13:02Z")

</div>

Thanks very much. I will try `qiime rescript orient-seqs`. 🙏

---

<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:** [April 30, 2024, 2:12am UTC](https://forum.qiime2.org/t/denoise-paired-issues/29669/10 "2024-04-30T02:12:06Z")

</div>

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