# Error when trimming with DADA2

**URL:** <https://forum.qiime2.org/t/error-when-trimming-with-dada2/2235>\
**Category:** User Support\
**Tags:** dada2, import\
**Created:** [December 15, 2017, 5:03pm UTC](https://forum.qiime2.org/t/error-when-trimming-with-dada2/2235 "2017-12-15T17:03:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexximalaya](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/a/53a042/32.png) [@alexximalaya](https://forum.qiime2.org/u/alexximalaya)\
**Post date:** [December 15, 2017, 5:03pm UTC](https://forum.qiime2.org/t/error-when-trimming-with-dada2/2235/1 "2017-12-15T17:03:50Z")

</div>

Hi there,

I am a learner. I have tried two approaches to import my data (.fq), but both encountered problem when I tried to trim sequence using DADA2. The bugs are the same.

 ![P1](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/1X/d86bdc7f760f332b5440267e0616bedf4df6a7aa.png)

 ![P2](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/1X/4f9eab3be279328053b315545a775907b0100791.png)

I have double checked the format of my files, and it seems just the same as the model files.  
Here is how it looks like.

 ![P3](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/1X/20add32e21fded9b41b5c0f974b36a622d1cb8b9.png)

Thanks for your help. I really appreciate it!

---

<div class="post-metadata">

**Author:** ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)\
**Post date:** [December 18, 2017, 8:23pm UTC](https://forum.qiime2.org/t/error-when-trimming-with-dada2/2235/5 "2017-12-18T20:23:53Z")

</div>

Hi @alexximalaya!

Combing through your screenshot, this error jumps out at me:

```plaintext
Input must be a valid sequence table.

```

We have seen this error before, when there is insufficient overlap for joining the sequences after denoising. One way to fix this is to experiment with changing your `trim` and/or `trunc` parameters (although this depends a lot on _why_ you chose the parameters you did).

The second thing that jumps out at me is your forward and reverse read counts are identical:

```plaintext
Forward reads:
30516 reads in 50890 unique sequences

Reverse reads:
30516 reads in 50890 unique sequences

```

Is it possible you imported your forward (or reverse) reads for both directions, instead of including both directions?

Keep us posted! 🦖

---

<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:** [January 19, 2018, 2:24am UTC](https://forum.qiime2.org/t/error-when-trimming-with-dada2/2235/7 "2018-01-19T02:24:00Z")

</div>

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