# Problem importing data - QIIME 2 2019.4

**URL:** <https://forum.qiime2.org/t/problem-importing-data-qiime-2-2019-4/10591>\
**Category:** Technical Support\
**Created:** [July 9, 2019, 7:34am UTC](https://forum.qiime2.org/t/problem-importing-data-qiime-2-2019-4/10591 "2019-07-09T07:34:08Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Felipe\_Rocha](https://forum.qiime2.org/user_avatar/forum.qiime2.org/felipe_rocha/32/5691_2.png) [@Felipe\_Rocha](https://forum.qiime2.org/u/Felipe_Rocha)\
**Post date:** [July 9, 2019, 7:34am UTC](https://forum.qiime2.org/t/problem-importing-data-qiime-2-2019-4/10591/1 "2019-07-09T07:34:08Z")

</div>

Hello everyone!

I've been having problems importing my data to Qiime 2 version 2019.4, installed in my Oracle VirtualBox. I searched in the forum before and my trouble is really similar to the one in this post, but I can't seen to find the answer:

> [@Problems importing data](https://forum.qiime2.org/t/problems-importing-data/2232):
>
> I've been having problems importing my data. It is demultiplexed data from Illumina miseq and I used it in qiime1 with no issues. It is paired end data, but I am only using R1 since the R2 data is lousy. I can't get it into qiime2 using qiime tools import --type 'SampleData[SequencesWithQuality]' --input-path /Users//Hal-qiime2 --source-format CasavaOneEightSingleLanePerSampleDirFmt --output-path /Users//qiime2halASV/halplus-demux.qza I get this error: There was a problem importing…

I have paired end data which is demultiplexed and sequenced in Illumina MiSeq, the script that I'm using is the following:

qiime tools import  
--type 'SampleData[PairedEndSequencesWithQuality]'  
--input-path /home/qiime2/Documents/seq-felipe  
--input-format CasavaOneEightSingleLanePerSampleDirFmt  
--output-path felipe-imported.qza

And the error message I'm getting is:

There was a problem importing /home/qiime2/Documents/seq-felipe:

Unrecognized file (/home/qiime2/Documents/seq-felipe/Sample\_2019-FR-LIB-C14G\_L001\_R2\_001\_fastqc.html) for CasavaOneEightSingleLanePerSampleDirFmt.

But this file doesn't seem to be any different from any of my other files. If someone can help me, please, I will be really grateful!!! Cheers, Felipe.

---

<div class="post-metadata">

**Author:** ![Mehrbod\_Estaki](https://forum.qiime2.org/user_avatar/forum.qiime2.org/mehrbod_estaki/32/4001_2.png) [@Mehrbod\_Estaki](https://forum.qiime2.org/u/Mehrbod_Estaki)\
**Post date:** [July 9, 2019, 7:42am UTC](https://forum.qiime2.org/t/problem-importing-data-qiime-2-2019-4/10591/2 "2019-07-09T07:42:57Z")

</div>

Hi @Felipe_Rocha,

The culprit file appears to be an `.html` file, likely some sort of summary report from the sequencing facility. The expected file format here is `.fastq` or `.fastq.gz`

---

<div class="post-metadata">

**Author:** ![Felipe\_Rocha](https://forum.qiime2.org/user_avatar/forum.qiime2.org/felipe_rocha/32/5691_2.png) [@Felipe\_Rocha](https://forum.qiime2.org/u/Felipe_Rocha)\
**Post date:** [July 9, 2019, 2:33pm UTC](https://forum.qiime2.org/t/problem-importing-data-qiime-2-2019-4/10591/3 "2019-07-09T14:33:25Z")

</div>

Hello @Mehrbod_Estaki,

thank you for your answer! Do you mean that for the importing step I don't need to have any of my quality reports for each read?

Because for each sample I have a .html and a .zip file which is the summary report you are talking about. I thought both were necessary for the importing step because then they would be available for me to analyse the quality of my reads.

I'll try to import with only my fastq.gz data, and then move forward to the read quality analysis. I'll let you know if this works out.

---

<div class="post-metadata">

**Author:** ![Mehrbod\_Estaki](https://forum.qiime2.org/user_avatar/forum.qiime2.org/mehrbod_estaki/32/4001_2.png) [@Mehrbod\_Estaki](https://forum.qiime2.org/u/Mehrbod_Estaki)\
**Post date:** [July 9, 2019, 4:01pm UTC](https://forum.qiime2.org/t/problem-importing-data-qiime-2-2019-4/10591/4 "2019-07-09T16:01:38Z")

</div>

Hi @Felipe_Rocha,  
Correct, you don't need those .zip or .htlml files, not unless the facility has done something weird to your `.fastq` files and removed/replaced the quality scores with something else. I doubt this is the case.  
The `.fastq` files are `.fasta` files with the quality scores within them so those are really all you need to import. The other files you have are, I imagine, a convenience thing produced by the sequencer/facility.

---

<div class="post-metadata">

**Author:** ![Felipe\_Rocha](https://forum.qiime2.org/user_avatar/forum.qiime2.org/felipe_rocha/32/5691_2.png) [@Felipe\_Rocha](https://forum.qiime2.org/u/Felipe_Rocha)\
**Post date:** [July 9, 2019, 4:43pm UTC](https://forum.qiime2.org/t/problem-importing-data-qiime-2-2019-4/10591/5 "2019-07-09T16:43:25Z")

</div>

I went throught the tutorial and I can't understand why is not a CasavaOneEightSingleLanePerSampleDirFmt. Is it because all my files start with Sample\_ and not differently for each sample?

---

<div class="post-metadata">

**Author:** ![Felipe\_Rocha](https://forum.qiime2.org/user_avatar/forum.qiime2.org/felipe_rocha/32/5691_2.png) [@Felipe\_Rocha](https://forum.qiime2.org/u/Felipe_Rocha)\
**Post date:** [July 9, 2019, 4:43pm UTC](https://forum.qiime2.org/t/problem-importing-data-qiime-2-2019-4/10591/6 "2019-07-09T16:43:27Z")

</div>

@Mehrbod_Estaki, thank you so much for helping me!!!

I separated those files and now I have only the .fastq in my directory. Now the error is another one, and I think I have a clue of what is going on, but I rather ask you.

My script and the error message:

(qiime2-2019.4) qiime2@qiime2core2019-4: ~/Documents/seq-felipe$ qiime tools import --type 'SampleData[PairedEndSequencesWithQuality]' --input-path /home/qiime2/Documents/seq-felipe --input-format CasavaOneEightSingleLanePerSampleDirFmt --output-path felipe-imported.qza

There was a problem importing /home/qiime2/Documents/seq-felipe:  
/home/qiime2/Documents/seq-felipe is not a(n) CasavaOneEightSingleLanePerSampleDirFmt:  
Duplicate samples in forward reads: {'Sample'}

My files in the directory are named like this:

 ![Qiime2](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/5/5a91e99f725684a502d000692c6d225f0cda46e3.png)

Thanks for the help. Best wishes!

---

<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:** [July 9, 2019, 4:45pm UTC](https://forum.qiime2.org/t/problem-importing-data-qiime-2-2019-4/10591/7 "2019-07-09T16:45:34Z")

</div>

Hi @Felipe_Rocha - your filenames don't match the `CasavaOneEightSingleLanePerSampleDirFmt`, you are missing the "barcode" field. You will need to use a [manifest format](https://docs.qiime2.org/2019.4/tutorials/importing/#fastq-manifest-formats), instead.

---

<div class="post-metadata">

**Author:** ![Felipe\_Rocha](https://forum.qiime2.org/user_avatar/forum.qiime2.org/felipe_rocha/32/5691_2.png) [@Felipe\_Rocha](https://forum.qiime2.org/u/Felipe_Rocha)\
**Post date:** [July 9, 2019, 9:51pm UTC](https://forum.qiime2.org/t/problem-importing-data-qiime-2-2019-4/10591/8 "2019-07-09T21:51:42Z")

</div>

Thank you, @thermokarst!!! and also thanks @Mehrbod_Estaki!!!

I made a manifest file containing all my samples and their absolute filepath and it worked 😍

Now I will continue to the nexts steps and it won't be long until I'm here again probably haha.

Cheers, Felipe.
