# Files don't match after concatenation?

**URL:** <https://forum.qiime2.org/t/files-dont-match-after-concatenation/11385>\
**Category:** User Support\
**Created:** [September 4, 2019, 5:48pm UTC](https://forum.qiime2.org/t/files-dont-match-after-concatenation/11385 "2019-09-04T17:48:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![msport469](https://forum.qiime2.org/user_avatar/forum.qiime2.org/msport469/32/5684_2.png) [@msport469](https://forum.qiime2.org/u/msport469)\
**Post date:** [September 4, 2019, 5:48pm UTC](https://forum.qiime2.org/t/files-dont-match-after-concatenation/11385/1 "2019-09-04T17:48:11Z")

</div>

I used the cat function to combine three fastq.gz files into one big one, for both the R1 and R2 files (_ie_ 3 R1 files were combined, and 3 R2 files were combined) before import. Then, when attempting to import them with:

qiime tools import   
--type 'SampleData[PairedEndSequencesWithQuality]'   
--input-path '/scratch/msportie/uganda/16s'   
--input-format CasavaOneEightSingleLanePerSampleDirFmt   
--output-path demux-paired-end-16s.qza

Thiss error message was returned:

These samples do not have matching pairs of forward and reverse reads: {'R1s', 'R2s'}

Is there a way to fix this problem? I'm on QIIME2 2019.7. I am not sure how it is installed, but I'm accessing it through a super computer cluster.

Thanks.

---

<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:** [September 4, 2019, 6:13pm UTC](https://forum.qiime2.org/t/files-dont-match-after-concatenation/11385/2 "2019-09-04T18:13:11Z")

</div>

Hi @msport469,  
Welcome to the forum!

It sounds like you already have demultiplexed files which are ready to be imported into Qiime2 using the [manifest option](https://docs.qiime2.org/2019.7/tutorials/importing/#fastq-manifest-formats). Combining them together prior is not necessary nor recommended. Is there a particular reason you are doing this?

---

<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:** [September 4, 2019, 7:16pm UTC](https://forum.qiime2.org/t/files-dont-match-after-concatenation/11385/3 "2019-09-04T19:16:39Z")

</div>

@msport469 - @Mehrbod_Estaki raises some good points here. Also, are you combining files from different runs? If so, that could also be a problem for steps like DADA2 denoising, which operate on a per-run basis.

My question is: are the reads (before concatenating) multiplexed, or demultiplexed. Your command implies demuxed, but the concatenation suggests otherwise to me.

---

<div class="post-metadata">

**Author:** ![msport469](https://forum.qiime2.org/user_avatar/forum.qiime2.org/msport469/32/5684_2.png) [@msport469](https://forum.qiime2.org/u/msport469)\
**Post date:** [September 5, 2019, 1:59pm UTC](https://forum.qiime2.org/t/files-dont-match-after-concatenation/11385/4 "2019-09-05T13:59:25Z")

</div>

I have solved the problem. They were Casava 1.8 and didn't need to be manifested in. Thanks for your time.

---

<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:** [October 6, 2019, 7:59pm UTC](https://forum.qiime2.org/t/files-dont-match-after-concatenation/11385/5 "2019-10-06T19:59:30Z")

</div>

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