# Qiime 2 database and data import

**URL:** <https://forum.qiime2.org/t/qiime-2-database-and-data-import/3448>\
**Category:** User Support\
**Tags:** quality-filter\
**Created:** [March 16, 2018, 1:13pm UTC](https://forum.qiime2.org/t/qiime-2-database-and-data-import/3448 "2018-03-16T13:13:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jules](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/j/41988e/32.png) [@Jules](https://forum.qiime2.org/u/Jules)\
**Post date:** [March 16, 2018, 1:13pm UTC](https://forum.qiime2.org/t/qiime-2-database-and-data-import/3448/1 "2018-03-16T13:13:08Z")

</div>

Hey everyone,

I felt totally comfortable using Qiime1 with the 16S SILVA database but now I'm totally confused using Qiime 2. 😕  
First of all I want to know if I have to use a trained classifier? In Qiime1 it was easy to change the database by using the .qiime\_config file. Is it possible to do the same in Qiime2?

The second question is about the data import. I implemented a quality trimming pipeline for my data which I used before the split-libraries.sh script in Qiime1. After the quality trimming pipeline my paired-end fastq files are merged, trimmed, quality filtered and the primers are removed.  
I still want to use that pipeline in combination with Qiime2. But how should I import my data now?

Thanks for any help and tips!

---

<div class="post-metadata">

**Author:** ![Nicholas\_Bokulich](https://forum.qiime2.org/user_avatar/forum.qiime2.org/nicholas_bokulich/32/19937_2.png) [@Nicholas\_Bokulich](https://forum.qiime2.org/u/Nicholas_Bokulich)\
**Post date:** [March 16, 2018, 1:18pm UTC](https://forum.qiime2.org/t/qiime-2-database-and-data-import/3448/2 "2018-03-16T13:18:39Z")

</div>



---

<div class="post-metadata">

**Author:** ![Nicholas\_Bokulich](https://forum.qiime2.org/user_avatar/forum.qiime2.org/nicholas_bokulich/32/19937_2.png) [@Nicholas\_Bokulich](https://forum.qiime2.org/u/Nicholas_Bokulich)\
**Post date:** [March 16, 2018, 2:20pm UTC](https://forum.qiime2.org/t/qiime-2-database-and-data-import/3448/3 "2018-03-16T14:20:32Z")

</div>

> [@Jules](#):
>
> First of all I want to know if I have to use a trained classifier?

Short answer: no. We have two other classifiers in qiime2, `classify-consensus-blast` and `classify-consensus-vsearch` that operate directly on reference sequences/taxonomy (imported as QIIME2 artifacts), rather than using a trained classifier.

But the other way to think about this is that you pre-train your classifiers ahead of time and they **become** your reference databases, which you can switch at will when doing different analyses.

In QIIME2 there is no congif file. You would just need to point to different file paths (or you can define variable names that point to these file paths in your shell, so that you just switch the variable names to use different classifiers with your data without typing out a full file path)

> [@Jules](#):
>
> The second question is about the data import. I implemented a quality trimming pipeline for my data which I used before the split-libraries.sh script in Qiime1. After the quality trimming pipeline my paired-end fastq files are merged, trimmed, quality filtered and the primers are removed.
> 
> I still want to use that pipeline in combination with Qiime2. But how should I import my data now?

The best thing to do would be re-implement that pipeline in QIIME2. You can do qiime1-style quality filtering with the [`quality-filter` plugin](https://docs.qiime2.org/2018.2/plugins/available/quality-filter/q-score/). You can merge with the [`q2-vsearch` plugin](https://docs.qiime2.org/2018.2/plugins/available/vsearch/join-pairs/). You can trim primers with the [`q2-cutadapt` plugin](https://docs.qiime2.org/2018.2/plugins/available/cutadapt/trim-single/). See [this tutorial](https://docs.qiime2.org/2018.2/tutorials/read-joining/).

Those data can then be used with otu picking in the q2-vsearch plugin, or denoising with deblur.

By re-assembling your processing pipeline in QIIME2, you will preserve all of that information in provenance to make it easier to trace precisely how a data file was generated (see a description of provenance [here](https://docs.qiime2.org/2018.2/concepts/#data-files-qiime-2-artifacts)).

You can also use dada2, which will perform denoising and joining all together in one command, eliminating the need for the processing pipeline that you have been using. See [this tutorial](https://docs.qiime2.org/2018.2/tutorials/atacama-soils/) for an example of running dada2 on paired-end data.

I hope that helps!

---

<div class="post-metadata">

**Author:** ![Nicholas\_Bokulich](https://forum.qiime2.org/user_avatar/forum.qiime2.org/nicholas_bokulich/32/19937_2.png) [@Nicholas\_Bokulich](https://forum.qiime2.org/u/Nicholas_Bokulich)\
**Post date:** [March 16, 2018, 2:20pm UTC](https://forum.qiime2.org/t/qiime-2-database-and-data-import/3448/4 "2018-03-16T14:20:34Z")

</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:** [April 16, 2018, 8:20pm UTC](https://forum.qiime2.org/t/qiime-2-database-and-data-import/3448/5 "2018-04-16T20:20:46Z")

</div>

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