# Facing problem importing FASTQ file

**URL:** <https://forum.qiime2.org/t/facing-problem-importing-fastq-file/28671>\
**Category:** User Support\
**Tags:** import\
**Created:** [December 19, 2023, 8:22pm UTC](https://forum.qiime2.org/t/facing-problem-importing-fastq-file/28671 "2023-12-19T20:22:28Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shahariar](https://forum.qiime2.org/user_avatar/forum.qiime2.org/shahariar/32/15982_2.png) [@Shahariar](https://forum.qiime2.org/u/Shahariar)\
**Post date:** [December 19, 2023, 8:22pm UTC](https://forum.qiime2.org/t/facing-problem-importing-fastq-file/28671/1 "2023-12-19T20:22:28Z")

</div>

I am not being able to import my FASTQ data. Can anyone help me by providing the correct command and tutorials? I am a beginner in the field of metagenomics.

 ![Meta 2](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/e/7/e7fef8a861b5f6a4eecb90fdabd2090891ccac9a.png)  
 ![Meta 3](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/5/0/50d860425d7a5cb344fb75da8f86910005ef1e76.png)  
 ![Meta](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/3/f/3fe47b188f9adc0b3f7cb6412ff2330c05668070.png)

---

<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:** [December 19, 2023, 8:28pm UTC](https://forum.qiime2.org/t/facing-problem-importing-fastq-file/28671/2 "2023-12-19T20:28:45Z")

</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:** [December 19, 2023, 8:30pm UTC](https://forum.qiime2.org/t/facing-problem-importing-fastq-file/28671/3 "2023-12-19T20:30:49Z")

</div>

Hi @Shahariar,

Welcome to the :qiime2: forum!

You'll want to check out the tutorial on [Importing Data into QIIME 2](https://docs.qiime2.org/2023.9/tutorials/importing/) - this will provide you with the requirements for each different input format.

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:** [December 19, 2023, 8:30pm UTC](https://forum.qiime2.org/t/facing-problem-importing-fastq-file/28671/4 "2023-12-19T20:30:52Z")

</div>



---

<div class="post-metadata">

**Author:** ![Shahariar](https://forum.qiime2.org/user_avatar/forum.qiime2.org/shahariar/32/15982_2.png) [@Shahariar](https://forum.qiime2.org/u/Shahariar)\
**Post date:** [December 20, 2023, 6:25am UTC](https://forum.qiime2.org/t/facing-problem-importing-fastq-file/28671/5 "2023-12-20T06:25:01Z")

</div>

I have tried but not getting clear idea about the format and data type. I have shared some picture of the data and error that i encountered during analysis.... Can you give some solution?

---

<div class="post-metadata">

**Author:** ![cherman2](https://forum.qiime2.org/user_avatar/forum.qiime2.org/cherman2/32/17129_2.png) [@cherman2](https://forum.qiime2.org/u/cherman2)\
**Post date:** [December 20, 2023, 2:47pm UTC](https://forum.qiime2.org/t/facing-problem-importing-fastq-file/28671/6 "2023-12-20T14:47:06Z")

</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:** [December 20, 2023, 5:49pm UTC](https://forum.qiime2.org/t/facing-problem-importing-fastq-file/28671/7 "2023-12-20T17:49:48Z")

</div>

Hi @Shahariar,

The first input format that you selected was `CasavaOneEightSingleLanePerSampleDirFmt`, which has the following formatting requirements:

A directory that contains one fastq.gz file for each sample in the study which contains the single-end reads for that sample. The file name includes the sample identifier and should look something like `L2S357_15_L001_R1_001.fastq.gz`. The underscore-separated fields required in each sample file name are as follows:

- the sample identifier
- the barcode sequence or a barcode identifier
- the lane number
- the direction of the read (i.e. only R1, because these are single-end reads)
- the set number

Your first command didn't work because you provided a fastq file for the input path (rather than a directory containing fastq files) that does not contain the above formatting requirements.

The second format that you selected was `SingleEndFastqManifestPhred33`, which is one of the FASTQ Manifest formats. These formats expect a manifest file to be given in the input path that contains information regarding the location of all of your FASTQ files, rather than providing the full path to a single FASTQ file (as you did in your command above). Please review the section in the Importing tutorial regarding [FASTQ Manifest Formats](https://docs.qiime2.org/2023.9/tutorials/importing/#fastq-manifest-formats) and how to structure a manifest file.

Did the sequencing center provide you with the format of your FASTQ files (EMP, Casava, etc)? And is the FASTQ file you specified in your commands the only file that you have, or do you have multiple? We'll need more information on your data in order to effectively advise on how you'll import it into QIIME 2.

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:** [December 20, 2023, 5:49pm UTC](https://forum.qiime2.org/t/facing-problem-importing-fastq-file/28671/8 "2023-12-20T17:49:52Z")

</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:** [January 20, 2024, 11:50pm UTC](https://forum.qiime2.org/t/facing-problem-importing-fastq-file/28671/9 "2024-01-20T23:50:09Z")

</div>

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