# Issues with import fastq files

**URL:** https://forum.qiime2.org/t/issues-with-import-fastq-files/9189
**Category:** User Support
**Created:** [April 10, 2019, 12:20am UTC](https://forum.qiime2.org/t/issues-with-import-fastq-files/9189 "2019-04-10T00:20:53Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![ashutosh](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/a/e480ec/32.png) [@ashutosh](https://forum.qiime2.org/u/ashutosh)
#### Post date: [April 10, 2019, 12:20am UTC](https://forum.qiime2.org/t/issues-with-import-fastq-files/9189/1 "2019-04-10T00:20:53Z")

</div>

Hi  
I am new to QIIME 2, I am using qiime2-2019.1 on a ubuntu 18.04 virtual machin on a windows host  
I have 9 fastq.gz files for 9 samples, each file has both R1 and R2 reads in the same fastq file:

@S0R0/1  
CCGAATTATTAGTAACAATTCCTTTGTTACTGTTGTATCCTTTAGTATGCTTTAGTATGCTAAAGTATGTTTTCCTGAGTACAACGATATTAACATGGCTTGAAAATACATATCCTGGAATCTTTACAGAGTATTTGGAAACTTTTCCAA  
+  
ADDEGGEGIEIIGCFKJIKIEEK@KEEJ\>KHIKKJJHKFKKEG)EHIJKHKKIHKEI=KIKD@H8ECEDEB;EE\<IKEEEBEEECEBFEAEEEEDEDEEE:=EEEEEEEDDE1;DBEEADF$5CEDE@$EF:$EGEDEA:4EE;FCDE9E  
@S0R0/2  
TAATGTGGAAATCAATTGTATTATACCACACCCTGCCTTAAAGTCGACCTTGATTTGGAAAAGTTTCCCAAGACTCTGTAAAAATTCAAGGATATGTATTTTCAAGTCATGTTAATATCGCTGTACTCAGGGAAACATACTTTAGCATAC  
+  
AADEGGGG$III@KK=HJKKKKJKFJ=KFHKJJJKFEJKEIHDJ$$JEFFK9EFIHKIEA4$FFEEJG$GKEBA?CAFEEBEEE$DC$=EA@EEECCE6DE1FEA6$DFE:=?EEAA=BD$EEEDD,EB=@$A?EECE9BDADE=D$DEB

I am trying to import some fastq files. I have gone through several options by reading the tutorials and suggestions for specifying the

--types and --input format for my

I am still missing the right input --type and input-format for such kind fastq files

Could you please suggest me to overcome this issue?

Thanks in advance  
Ashutosh

---

<div class="post-metadata">

### Author: ![colinbrislawn](https://forum.qiime2.org/user_avatar/forum.qiime2.org/colinbrislawn/32/6221_2.png) [@colinbrislawn](https://forum.qiime2.org/u/colinbrislawn)
#### Post date: [April 10, 2019, 12:27am UTC](https://forum.qiime2.org/t/issues-with-import-fastq-files/9189/2 "2019-04-10T00:27:27Z")

</div>

Hello Ashutosh,

Welcome to Qiime 2! Thanks for posting. :qiime2:

These fastq files look like a good fit for the "fastq-manifest" format. Take a look at this:  
[https://docs.qiime2.org/2019.1/tutorials/importing/#fastq-manifest-formats](https://docs.qiime2.org/2019.1/tutorials/importing/#fastq-manifest-formats)

Let me know if that works for you. If you have any other questions, feel free to post them here along with the commands you tried and their outputs and messages.

Colin

---

<div class="post-metadata">

### Author: ![ashutosh](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/a/e480ec/32.png) [@ashutosh](https://forum.qiime2.org/u/ashutosh)
#### Post date: [April 10, 2019, 3:53am UTC](https://forum.qiime2.org/t/issues-with-import-fastq-files/9189/3 "2019-04-10T03:53:40Z")

</div>

Hi @colinbrislawn  
Thanks for your reply  
I have gone through the tutorial before, I not sure how to make the path for the forward and reverse reads since I have forward and reverse reads in the same file, how to make like following option

> sample-id,absolute-filepath,direction
> 
> # Lines starting with '#' are ignored and can be used to create
> 
> # "comments" or even "comment out" entries
> 
> sample-1,$PWD/some/filepath/sample1\_R1.fastq.gz,forward  
> sample-2,$PWD/some/filepath/sample2\_R1.fastq.gz,forward  
> sample-1,$PWD/some/filepath/sample1\_R2.fastq.gz,reverse  
> sample-2,$PWD/some/filepath/sample2\_R2.fastq.gz,reverse

Should I do it as a single end, but each sample id is appeared twice for R1 and R2?  
then how to fix the menifest for the following files  
sample\_0\_reads.fq.gz sample\_4\_reads.fq.gz sample\_8\_reads.fq.gz  
sample\_1\_reads.fq.gz sample\_5\_reads.fq.gz sample\_9\_reads.fq.gz  
sample\_2\_reads.fq.gz sample\_6\_reads.fq.gz  
sample\_3\_reads.fq.gz sample\_7\_reads.fq.gz

Ashutosh

---

<div class="post-metadata">

### Author: ![colinbrislawn](https://forum.qiime2.org/user_avatar/forum.qiime2.org/colinbrislawn/32/6221_2.png) [@colinbrislawn](https://forum.qiime2.org/u/colinbrislawn)
#### Post date: [April 10, 2019, 3:59am UTC](https://forum.qiime2.org/t/issues-with-import-fastq-files/9189/4 "2019-04-10T03:59:50Z")

</div>

Hello Anshutosh,

> [@ashutosh](#):
>
> since I have forward and reverse reads in the same file,

Oh, I missed this! I forgot your reads were 'interleaved.' Thanks for reminding me. 👍

The bad news is that [interleaved fastq files are not supported yet](https://github.com/qiime2/q2-types/issues/147). It looks like the Qiime 1 script [extract\_reads\_from\_interleaved\_file.py](http://qiime.org/scripts/extract_reads_from_interleaved_file.html) could help you demultiplex this file.

Would you like to try the Qiime 1 script or try something else?

Colin

---

<div class="post-metadata">

### Author: ![ashutosh](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/a/e480ec/32.png) [@ashutosh](https://forum.qiime2.org/u/ashutosh)
#### Post date: [April 10, 2019, 11:51am UTC](https://forum.qiime2.org/t/issues-with-import-fastq-files/9189/5 "2019-04-10T11:51:23Z")

</div>

Thanks Colin  
I would like to use Qiime 1 scripts before trying something else

Ashutosh

---

<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: [May 11, 2019, 5:51pm UTC](https://forum.qiime2.org/t/issues-with-import-fastq-files/9189/6 "2019-05-11T17:51:23Z")

</div>

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