# Using QIIME2 with BBmerge

**URL:** <https://forum.qiime2.org/t/using-qiime2-with-bbmerge/8536>\
**Category:** User Support\
**Created:** [February 26, 2019, 1:09pm UTC](https://forum.qiime2.org/t/using-qiime2-with-bbmerge/8536 "2019-02-26T13:09:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mshelomi1](https://forum.qiime2.org/user_avatar/forum.qiime2.org/mshelomi1/32/5432_2.png) [@mshelomi1](https://forum.qiime2.org/u/mshelomi1)\
**Post date:** [February 26, 2019, 1:09pm UTC](https://forum.qiime2.org/t/using-qiime2-with-bbmerge/8536/1 "2019-02-26T13:09:54Z")

</div>

Hello,

I normally import my sequencing data as follows:

> qiime tools import   
> --type 'SampleData[PairedEndSequencesWithQuality]'   
> --input-path MANIFEST.csv   
> --output-path 1SampleDataPaired.qza   
> --source-format PairedEndFastqManifestPhred33

However, I now want to join my forward and reverse sequences together with [BBmerge](https://jgi.doe.gov/data-and-tools/bbtools/bb-tools-user-guide/bbmerge-guide/) before using QIIME2. I successfully merged each pair into one fastq file, but now I do not know how to import the files.

I tried this:

> qiime tools import   
> --type 'SampleData[JoinedSequencesWithQuality]'   
> --input-path /path/to/directory/   
> --output-path 1SampleData.qza \

But it's not working:

> Missing one or more files for SingleLanePerSampleSingleEndFastqDirFmt: '.+\_.+\_L[0-9][0-9][0-9]\_R[12]\_001\.fastq\.gz'

What do you suggest? Thanks.

---

<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:** [February 26, 2019, 1:22pm UTC](https://forum.qiime2.org/t/using-qiime2-with-bbmerge/8536/2 "2019-02-26T13:22:21Z")

</div>

You can still use the manifest format to import your joined reads, update your first import command above to `type` `SampleData[JoinedSequencesWithQuality]` and you should be good to go.

---

<div class="post-metadata">

**Author:** ![mshelomi1](https://forum.qiime2.org/user_avatar/forum.qiime2.org/mshelomi1/32/5432_2.png) [@mshelomi1](https://forum.qiime2.org/u/mshelomi1)\
**Post date:** [March 4, 2019, 9:16am UTC](https://forum.qiime2.org/t/using-qiime2-with-bbmerge/8536/3 "2019-03-04T09:16:02Z")

</div>

Thanks, though you forgot to mention I must also change --source-format to [SingleEndFastqManifestPhred33]

> qiime tools import --type 'SampleData[JoinedSequencesWithQuality]' --input-path MANIFEST.csv --output-path 1SampleDataPaired.qza --source-format SingleEndFastqManifestPhred33

The manifest file also was changed, for one line per file with direction "forward" for all. I didn't realize I still needed the "direction" column, which threw me off.

Thanks for the help!

---

<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:** [April 4, 2019, 3:16pm UTC](https://forum.qiime2.org/t/using-qiime2-with-bbmerge/8536/4 "2019-04-04T15:16:04Z")

</div>

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