# Trobleshooting import reads

**URL:** <https://forum.qiime2.org/t/trobleshooting-import-reads/12468>\
**Category:** User Support\
**Tags:** import, cutadapt\
**Created:** [November 12, 2019, 8:49pm UTC](https://forum.qiime2.org/t/trobleshooting-import-reads/12468 "2019-11-12T20:49:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mstagliamonte](https://forum.qiime2.org/user_avatar/forum.qiime2.org/mstagliamonte/32/4373_2.png) [@mstagliamonte](https://forum.qiime2.org/u/mstagliamonte)\
**Post date:** [November 12, 2019, 8:49pm UTC](https://forum.qiime2.org/t/trobleshooting-import-reads/12468/1 "2019-11-12T20:49:16Z")

</div>

Dear Qiimers,

I am working on some unusual data for me, and I need some help with importing the reads correctly. I have 16S v3-v4 Illumina data, which seem to have been already demultiplexed and trimmed; also, looking at the headers, each sample was sequenced on multiple lanes, which were then merged. My usual:

```
qiime tools import --type 'SampleData[PairedEndSequencesWithQuality]' \
    --input-format CasavaOneEightLanelessPerSampleDirFmt 

```

does not work:  
` Missing one or more files for CasavaOneEightSingleLanePerSampleDirFmt: '.+_.+_L[0-9][0-9][0-9]_R[12]_001\\.fastq\\.gz'`

So I tried  
`--input-format CasavaOneEightLanelessPerSampleDirFmt`

The import step seemed to have worked, but then I got the same error in the next step (cutadapt).

Can you please advice on the best way to import the data?

Thank you for your kind attention,  
Max

**EDIT:** I am using q2 v 2019.7

---

<div class="post-metadata">

**Author:** ![jwdebelius](https://forum.qiime2.org/user_avatar/forum.qiime2.org/jwdebelius/32/9655_2.png) [@jwdebelius](https://forum.qiime2.org/u/jwdebelius)\
**Post date:** [November 12, 2019, 9:38pm UTC](https://forum.qiime2.org/t/trobleshooting-import-reads/12468/2 "2019-11-12T21:38:13Z")

</div>

Hi @mstagliamonte,

Have you tried the [manifest format](https://docs.qiime2.org/2019.7/tutorials/importing/#fastq-manifest-formats)? It requires a bit more work up front from you for importing, but I think it will make your life easier over all.

There's some development for automatic manifests in both R and python which might be of interest.

> [@Automatic Manifest Maker in Python3](https://forum.qiime2.org/t/automatic-manifest-maker-in-python3/8595):
>
> Hello all! Since joining this community my coding skill has improved quite a lot. When I first started I made this tutorial [here](https://forum.qiime2.org/t/automatic-manifest-maker-in-r/2921), which is functional, but not ideal. I decided to update it to be a bit more useful for people here using Python 3. Hope it helps you all. [https://github.com/Micro-Biology/BasicBashCode/blob/master/BasicScripts/Q2\_manifest\_maker.py](https://github.com/Micro-Biology/BasicBashCode/blob/master/BasicScripts/Q2_manifest_maker.py) Hosted on github so I can edit it, feel free to use however you want, if you add other formats please share below. Any feedback please …

> [@Automatic Manifest Maker in R](https://forum.qiime2.org/t/automatic-manifest-maker-in-r/2921):
>
> Here I present my tutorial for making a 'Manifest.csv' automatically using an R conda environment, to be used to import data according to the " “Fastq manifest” formats" part of the [Importing data tutorial](https://docs.qiime2.org/2017.12/tutorials/importing/). I wrote this script because we intended on running a lot of analyses through QIIME2 and I did not want ot manually make a manifest file to import it every time. This guide assumes you have a version of conda installed, and that files at names samplename.R1.fastq.gz for forward reads and sam…

Best,  
Justine

---

<div class="post-metadata">

**Author:** ![mstagliamonte](https://forum.qiime2.org/user_avatar/forum.qiime2.org/mstagliamonte/32/4373_2.png) [@mstagliamonte](https://forum.qiime2.org/u/mstagliamonte)\
**Post date:** [November 13, 2019, 2:18pm UTC](https://forum.qiime2.org/t/trobleshooting-import-reads/12468/3 "2019-11-13T14:18:37Z")

</div>

Dear @jwdebelius ,

Thank you for your kind answer. Also the script for making manifest files is a great idea!  
I was looking at the manifest file tutorial, and one of the fields requires the lane number. The files I received have already been merged by sample, so there are at least 2 lanes in each fastq file. Do you have any advice how to include this info on the manifest file? Or should I resort to split the reads by lane and then import them?

Best,  
Max

**EDIT** : Nevermind, I read thorugh the tutorial again, maybe I don't need that column in the manifesto. I will give it a try and see how it goes. 🙂

---

<div class="post-metadata">

**Author:** ![ben](https://forum.qiime2.org/user_avatar/forum.qiime2.org/ben/32/1790_2.png) [@ben](https://forum.qiime2.org/u/ben)\
**Post date:** [November 13, 2019, 2:26pm UTC](https://forum.qiime2.org/t/trobleshooting-import-reads/12468/4 "2019-11-13T14:26:49Z")

</div>

Yes the manifest file should look like this:

 ![21%20AM](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/0/0e74649eff4084da6861dd9c6e49d1e7b1ba8dbb.png)

Code should look like this:

> qiime tools import   
> --type 'SampleData[PairedEndSequencesWithQuality]'   
> --input-path /gpfs/scratch/wub02/projects/milan.elastase.run/fastq/manifest.txt   
> --output-path /gpfs/scratch/wub02/projects/milan.elastase.run/QIIME2\_2\_import/paired-end-demux.qza   
> --input-format PairedEndFastqManifestPhred33V2

---

<div class="post-metadata">

**Author:** ![mstagliamonte](https://forum.qiime2.org/user_avatar/forum.qiime2.org/mstagliamonte/32/4373_2.png) [@mstagliamonte](https://forum.qiime2.org/u/mstagliamonte)\
**Post date:** [November 13, 2019, 8:44pm UTC](https://forum.qiime2.org/t/trobleshooting-import-reads/12468/5 "2019-11-13T20:44:23Z")

</div>

Great!

I have run ll the way to deblur and everything seems to work. Thank you for guiding me through it, I appreciate your kind help.

Best,  
Max

---

<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 15, 2019, 2:44am UTC](https://forum.qiime2.org/t/trobleshooting-import-reads/12468/6 "2019-12-15T02:44:23Z")

</div>

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