# How to turn a fastq file into artifact .qza qiime2

**URL:** <https://forum.qiime2.org/t/how-to-turn-a-fastq-file-into-artifact-qza-qiime2/21266>\
**Category:** User Support\
**Created:** [November 5, 2021, 10:02pm UTC](https://forum.qiime2.org/t/how-to-turn-a-fastq-file-into-artifact-qza-qiime2/21266 "2021-11-05T22:02:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bwind](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/b/58956e/32.png) [@bwind](https://forum.qiime2.org/u/bwind)\
**Post date:** [November 5, 2021, 10:02pm UTC](https://forum.qiime2.org/t/how-to-turn-a-fastq-file-into-artifact-qza-qiime2/21266/1 "2021-11-05T22:02:40Z")

</div>

Working on qiime2 with ubuntu app. I have removed all barcodes from sample and have a barcodes.fastq. NAMEreverse.fastq, and NAMEforward.fastq file. I need to create artifacts in (.qza) and rename each file barcodes.fastq.gz reverse.fastq.gz and forward.fastq.gz. renaming I can do. Lost on creating the qza artifact

---

<div class="post-metadata">

**Author:** ![Keegan-Evans](https://forum.qiime2.org/user_avatar/forum.qiime2.org/keegan-evans/32/10422_2.png) [@Keegan-Evans](https://forum.qiime2.org/u/Keegan-Evans)\
**Post date:** [November 5, 2021, 11:52pm UTC](https://forum.qiime2.org/t/how-to-turn-a-fastq-file-into-artifact-qza-qiime2/21266/2 "2021-11-05T23:52:33Z")

</div>



---

<div class="post-metadata">

**Author:** ![Keegan-Evans](https://forum.qiime2.org/user_avatar/forum.qiime2.org/keegan-evans/32/10422_2.png) [@Keegan-Evans](https://forum.qiime2.org/u/Keegan-Evans)\
**Post date:** [November 6, 2021, 12:24am UTC](https://forum.qiime2.org/t/how-to-turn-a-fastq-file-into-artifact-qza-qiime2/21266/3 "2021-11-06T00:24:53Z")

</div>

@bwind,

You will want to keep your barcodes in your sample for the importing step, you remove them later on in your analysis. Renaming simply allows you to run `import` which creates your `.qza` file. The renaming is necessary so that the `import` tools know which file is which.

If your reads are EMP formatted, you can use the commands [found here](https://docs.qiime2.org/2021.8/tutorials/importing/?highlight=import#id5) to import the data. If they are not, you will have use [these commands](https://docs.qiime2.org/2021.8/tutorials/importing/?highlight=import#id11) instead. If this is the case you will have to [create a metadata file](https://docs.qiime2.org/2021.8/tutorials/metadata/) that contains your barcodes.

In either case, the output is a multiplexed `.qza` file whose name and location are specified by the `--output-path` portion of your commnad. You will then demultiplex(see [this chart](https://docs.qiime2.org/2021.8/tutorials/overview/#demultiplexing) to choose the appropriate method) and continue your analysis 🙂

---

<div class="post-metadata">

**Author:** ![Keegan-Evans](https://forum.qiime2.org/user_avatar/forum.qiime2.org/keegan-evans/32/10422_2.png) [@Keegan-Evans](https://forum.qiime2.org/u/Keegan-Evans)\
**Post date:** [November 6, 2021, 12:25am UTC](https://forum.qiime2.org/t/how-to-turn-a-fastq-file-into-artifact-qza-qiime2/21266/4 "2021-11-06T00:25:04Z")

</div>



---

<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:** [November 12, 2021, 7:16pm UTC](https://forum.qiime2.org/t/how-to-turn-a-fastq-file-into-artifact-qza-qiime2/21266/5 "2021-11-12T19:16:39Z")

</div>

An off-topic reply has been split into a new topic: [When is the best time in analysis to remove barcodes?](https://forum.qiime2.org/t/when-is-the-best-time-in-analysis-to-remove-barcodes/21320)

Please keep replies on-topic in the future.

---

<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:** [December 14, 2021, 1:16am UTC](https://forum.qiime2.org/t/how-to-turn-a-fastq-file-into-artifact-qza-qiime2/21266/6 "2021-12-14T01:16:48Z")

</div>

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