# Manifest file for paired-end reads

**URL:** <https://forum.qiime2.org/t/manifest-file-for-paired-end-reads/6841>\
**Category:** User Support\
**Tags:** import\
**Created:** [November 7, 2018, 9:41pm UTC](https://forum.qiime2.org/t/manifest-file-for-paired-end-reads/6841 "2018-11-07T21:41:26Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmanchon](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lmanchon/32/3177_2.png) [@lmanchon](https://forum.qiime2.org/u/lmanchon)\
**Post date:** [November 7, 2018, 9:41pm UTC](https://forum.qiime2.org/t/manifest-file-for-paired-end-reads/6841/1 "2018-11-07T21:41:27Z")

</div>

--Hi,

I use demultiplexed paired-end libraries stored in multiple fastq.gz files.  
Is there a way to add columns in manifest file to set experimental conditions (times, drug, sex) corresponding to each library ? Or i need to run qiime separately for each condition ?

thank you --

---

<div class="post-metadata">

**Author:** ![bsen2018](https://forum.qiime2.org/user_avatar/forum.qiime2.org/bsen2018/32/5067_2.png) [@bsen2018](https://forum.qiime2.org/u/bsen2018)\
**Post date:** [November 8, 2018, 10:20am UTC](https://forum.qiime2.org/t/manifest-file-for-paired-end-reads/6841/2 "2018-11-08T10:20:13Z")

</div>

Hi! I would prepare a sample-metadata.csv file and include all the experimental conditions in it for use in q2 pipeline. Manifest file should be for importing all the .gz files into q2. You may like to read the tutorials at [Importing data — QIIME 2 2018.8.0 documentation](https://docs.qiime2.org/2018.8/tutorials/importing/) and [Metadata in QIIME 2 — QIIME 2 2018.8.0 documentation](https://docs.qiime2.org/2018.8/tutorials/metadata/).

---

<div class="post-metadata">

**Author:** ![lmanchon](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lmanchon/32/3177_2.png) [@lmanchon](https://forum.qiime2.org/u/lmanchon)\
**Post date:** [November 8, 2018, 4:23pm UTC](https://forum.qiime2.org/t/manifest-file-for-paired-end-reads/6841/3 "2018-11-08T16:23:43Z")

</div>

--Hi,

is there a way to add metadata (condition, time, sex) when i import demultiplexed paired-end files ?  
I have only demultiplexed files, so i use a manifest file, but manifest file is not dedicated to add metadata informations. So, how to specify metadata corresponding to each file ?

thank you.

---

<div class="post-metadata">

**Author:** ![Nicholas\_Bokulich](https://forum.qiime2.org/user_avatar/forum.qiime2.org/nicholas_bokulich/32/19937_2.png) [@Nicholas\_Bokulich](https://forum.qiime2.org/u/Nicholas_Bokulich)\
**Post date:** [November 8, 2018, 4:27pm UTC](https://forum.qiime2.org/t/manifest-file-for-paired-end-reads/6841/4 "2018-11-08T16:27:59Z")

</div>

@lmanchon — please see @bsen2018's excellent advice. It sounds like you are conflating the sample metadata with the manifest file. These are separate files with separate purposes, see the links @bsen2018 posted to learn more.

---

<div class="post-metadata">

**Author:** ![lmanchon](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lmanchon/32/3177_2.png) [@lmanchon](https://forum.qiime2.org/u/lmanchon)\
**Post date:** [November 9, 2018, 12:44pm UTC](https://forum.qiime2.org/t/manifest-file-for-paired-end-reads/6841/5 "2018-11-09T12:44:51Z")

</div>

yes i know but is there a solution to combine manifest file and metadata-sample files ?  
Manifest file tells only where to get the input files but i need also to inform qiime with my metadata, don't you ?  
thank you --

---

<div class="post-metadata">

**Author:** ![Nicholas\_Bokulich](https://forum.qiime2.org/user_avatar/forum.qiime2.org/nicholas_bokulich/32/19937_2.png) [@Nicholas\_Bokulich](https://forum.qiime2.org/u/Nicholas_Bokulich)\
**Post date:** [November 9, 2018, 1:05pm UTC](https://forum.qiime2.org/t/manifest-file-for-paired-end-reads/6841/6 "2018-11-09T13:05:56Z")

</div>

> [@lmanchon](#):
>
> is there a solution to combine manifest file and metadata-sample files ?

No — they are always kept separate.

> [@lmanchon](#):
>
> Manifest file tells only where to get the input files

Correct. You use it for importing and then never again. The reason is that manifest files describe the location of individual sequences, and in the case of paired-end would have more lines than samples.

> [@lmanchon](#):
>
> i need also to inform qiime with my metadata,

Correct — see the metadata tutorial that was linked above. You will create a separate file describing sample metadata.

Good luck!

---

<div class="post-metadata">

**Author:** ![lmanchon](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lmanchon/32/3177_2.png) [@lmanchon](https://forum.qiime2.org/u/lmanchon)\
**Post date:** [November 10, 2018, 5:31pm UTC](https://forum.qiime2.org/t/manifest-file-for-paired-end-reads/6841/7 "2018-11-10T17:31:30Z")

</div>

ok, i have imported all my demultiplexed paired-end files using manifest-file, i have a big qza file (300Go).  
And now which command i need to run to link my metadata file with the raw data ?

thank you --

---

<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:** [November 10, 2018, 6:33pm UTC](https://forum.qiime2.org/t/manifest-file-for-paired-end-reads/6841/8 "2018-11-10T18:33:49Z")

</div>

> [@lmanchon](#):
>
> ok, i have imported all my demultiplexed paired-end files using manifest-file

Good! 🍾

> [@lmanchon](#):
>
> And now which command i need to run to link my metadata file with the raw data ?

No need, that isn't how metadata works in QIIME 2. Take a look at the [Metadata tutorial](https://docs.qiime2.org/2018.11/tutorials/metadata/) for more info. Also, if you haven't gone through the [Overview](https://docs.qiime2.org/2018.11/tutorials/overview/), please start there!

---

<div class="post-metadata">

**Author:** ![lmanchon](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lmanchon/32/3177_2.png) [@lmanchon](https://forum.qiime2.org/u/lmanchon)\
**Post date:** [November 12, 2018, 11:44am UTC](https://forum.qiime2.org/t/manifest-file-for-paired-end-reads/6841/9 "2018-11-12T11:44:16Z")

</div>

Ok, i understand, metadata file work only with multiplexed input files, and there is no way to use metadata file with demultiplexed paired-end input files.

---

<div class="post-metadata">

**Author:** ![Nicholas\_Bokulich](https://forum.qiime2.org/user_avatar/forum.qiime2.org/nicholas_bokulich/32/19937_2.png) [@Nicholas\_Bokulich](https://forum.qiime2.org/u/Nicholas_Bokulich)\
**Post date:** [November 12, 2018, 1:50pm UTC](https://forum.qiime2.org/t/manifest-file-for-paired-end-reads/6841/10 "2018-11-12T13:50:13Z")

</div>

> [@lmanchon](#):
>
> Ok, i understand, metadata file work only with multiplexed input files, and there is no way to use metadata file with demultiplexed paired-end input files.

Not quite — this statement is true for importing/demultiplexing, but sample metadata files can be used later on no matter what type of import you used.

Manifest files facilitate importing demultiplexed sequence files into a single QIIME 2 artifact by specifying where each sequence (and if paired-end also it's pair) is located. So you import as a manifest format and there is no need to demultiplex.

Sample metadata files can contain all sorts of information about samples — including the barcodes used, in which case you would use the metadata file during demultiplexing to specify how a multiplexed sequence file (i.e., EMP format sequences) should be split. But we use sample metadata again in downstream analysis to store other information about these samples.

---

<div class="post-metadata">

**Author:** ![lmanchon](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lmanchon/32/3177_2.png) [@lmanchon](https://forum.qiime2.org/u/lmanchon)\
**Post date:** [November 12, 2018, 2:48pm UTC](https://forum.qiime2.org/t/manifest-file-for-paired-end-reads/6841/11 "2018-11-12T14:48:13Z")

</div>

You said:  
"...we use sample metadata again in downstream analysis to store other information about these samples."

Yes, but how ? give me an example, i have a big demux-paired-end.qza file that contain all my data, which command do i use to integrate or merge my\_metadata.tsv file with the qza file ?

---

<div class="post-metadata">

**Author:** ![Nicholas\_Bokulich](https://forum.qiime2.org/user_avatar/forum.qiime2.org/nicholas_bokulich/32/19937_2.png) [@Nicholas\_Bokulich](https://forum.qiime2.org/u/Nicholas_Bokulich)\
**Post date:** [November 12, 2018, 2:50pm UTC](https://forum.qiime2.org/t/manifest-file-for-paired-end-reads/6841/12 "2018-11-12T14:50:05Z")

</div>

> [@lmanchon](#):
>
> Yes, but how ? give me an example

read the tutorials, e.g., [here](https://docs.qiime2.org/2018.11/tutorials/moving-pictures/).

> [@lmanchon](#):
>
> which command do i use to integrate or merge my\_metadata.tsv file with the qza file ?

None. At no point is metadata merged into your file. Metadata is kept separate, the purpose being that metadata should be flexible and easily modified.

---

<div class="post-metadata">

**Author:** ![lmanchon](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lmanchon/32/3177_2.png) [@lmanchon](https://forum.qiime2.org/u/lmanchon)\
**Post date:** [November 12, 2018, 3:51pm UTC](https://forum.qiime2.org/t/manifest-file-for-paired-end-reads/6841/13 "2018-11-12T15:51:23Z")

</div>

It's contradictory.  
You tell me that it is not necessary to import it using a specific command.  
But then, how does qiime2 know to use the metadata file?

---

<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 14, 2018, 8:47pm UTC](https://forum.qiime2.org/t/manifest-file-for-paired-end-reads/6841/15 "2018-12-14T20:47:36Z")

</div>

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