# Import problem: Not a(n) QIIME1DemuxFormat file

**URL:** https://forum.qiime2.org/t/import-problem-not-a-n-qiime1demuxformat-file/21305
**Category:** Technical Support
**Tags:** import
**Created:** [November 11, 2021, 10:18am UTC](https://forum.qiime2.org/t/import-problem-not-a-n-qiime1demuxformat-file/21305 "2021-11-11T10:18:51Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![emiliomastriani](https://forum.qiime2.org/user_avatar/forum.qiime2.org/emiliomastriani/32/20237_2.png) [@emiliomastriani](https://forum.qiime2.org/u/emiliomastriani)
#### Post date: [November 11, 2021, 10:18am UTC](https://forum.qiime2.org/t/import-problem-not-a-n-qiime1demuxformat-file/21305/1 "2021-11-11T10:18:52Z")

</div>

Hello buys,  
I have troubles importing my fan file. This is what I have done:

1. I have my fastq file (single) already trimmed, suppose file1.fq
2. I trasforma it to fasta file with seqkit fq2fa file1.fq -o file2.fna
3. I tried to import it in qiime2 with the command: qiime tools import --input-path file2.fna --output-path seqs.qza --type SampleData[Sequences]
4. I obtained the following error:

There was a problem importing prova.fna:  
file2.fna is not a(n) QIIME1DemuxFormat file

Here is test file I am using:  
(qiime2-2021.8) emastriani@bilbo-01:~/MetaVic/Clustering$ more file2.fna

> SRR957824.2269 2269/1  
> ATATCAGTGAAAATGCCCTGAAGGTAATGTACAGGCTCAATAAAGCGGGATACGAAGCCTGGCTGGTTGGCGGCGGCGTGCGCGACCTGTTACTCGGCAAAAAGCCGAAAG  
> ATTTTGACGTAACCACTAACGCCACGCCTGAGCAGGTGC  
> SRR957824.2269 2269/2  
> ACTTCGATAATCTCCGGGCCAAACATCACATGAGCCAGACGGAAACGGCGACCCACCAGGCGGCAGTTACGGAACAGTTTGCGCACCTGCTCAGGCGTGGCGTTAGTGGTT  
> ACGTCAAAATCTTTCGGCTTTTTGCCGAGTAACAGGTCG

I am interested to import the fasta file because I need to practice with the procedure explained in [Clustering sequences into OTUs using q2-vsearch](https://forum.qiime2.org/t/clustering-sequences-into-otus-using-q2-vsearch/1348)

Thank you very much for your support.  
Emilio

---

<div class="post-metadata">

### Author: ![llenzi](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/l/9fc29f/32.png) [@llenzi](https://forum.qiime2.org/u/llenzi)
#### Post date: [November 11, 2021, 3:08pm UTC](https://forum.qiime2.org/t/import-problem-not-a-n-qiime1demuxformat-file/21305/2 "2021-11-11T15:08:18Z")

</div>

Hi @emiliomastriani,

Did you download the sequences form sra?  
This previous question may give you some help:

> [@question about importing SRA study as artifacts](https://forum.qiime2.org/t/question-about-importing-sra-study-as-artifacts/15800):
>
> Hi there, I am familiar with QIIME1 but relatively new with QIIME2. I have gotten my raw file in the past from a facility in the CASAVA pair ended demultiplexed format and I had no problem analyzing those files with both versions of qiime. I am now conducting an investigation of public data available in the SRA archive and I am having a time importing the raw data as QIIME2 artifacts. I have downloaded different projects (prefetch and fastq-dump commands in the SRA toolkit) and I don't think …

A general point, I would import the sequences fastq files, possibly as paired-end, if you have those (in your case you seems to have both R1 and R2 in the same file, so you need a script to split them into two files).

For the import, please have a look at the "Fastq manifest format" in the import guide:  
[Importing data — QIIME 2 2021.8.0 documentation](https://docs.qiime2.org/2021.8/tutorials/importing/)

Then you would need to join your sequences as described at:  
[https://docs.qiime2.org/2021.8/tutorials/read-joining/](https://docs.qiime2.org/2021.8/tutorials/read-joining/)

After that, you can use vsearch plug in to cluster your sequences as your initial point (starting form dereplicating the sample):  
[https://docs.qiime2.org/2021.8/tutorials/read-joining/](https://docs.qiime2.org/2021.8/tutorials/read-joining/)

Hope it makes sense1  
Cheers  
Luca

---

<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 12, 2021, 9:09pm UTC](https://forum.qiime2.org/t/import-problem-not-a-n-qiime1demuxformat-file/21305/3 "2021-12-12T21:09:04Z")

</div>

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