# How to create a manifest file using command line?

**URL:** <https://forum.qiime2.org/t/how-to-create-a-manifest-file-using-command-line/10645>\
**Category:** User Support\
**Created:** [July 12, 2019, 7:46am UTC](https://forum.qiime2.org/t/how-to-create-a-manifest-file-using-command-line/10645 "2019-07-12T07:46:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![SAHIL\_JAIN\_16110144](https://forum.qiime2.org/user_avatar/forum.qiime2.org/sahil_jain_16110144/32/5233_2.png) [@SAHIL\_JAIN\_16110144](https://forum.qiime2.org/u/SAHIL_JAIN_16110144)\
**Post date:** [July 12, 2019, 7:46am UTC](https://forum.qiime2.org/t/how-to-create-a-manifest-file-using-command-line/10645/1 "2019-07-12T07:46:43Z")

</div>

I have a 100 fastq files (100 each for forward reads and reverse reads). I want to import these files into QIIME2. I need to create a manifest file for this purpose. Do I need to create the file manually or can it be done using some command??

---

<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:** [July 12, 2019, 7:47am UTC](https://forum.qiime2.org/t/how-to-create-a-manifest-file-using-command-line/10645/2 "2019-07-12T07:47:46Z")

</div>

Hi @SAHIL_JAIN_16110144,

Right now, you need to create the manifest yourself. If you write your own code, sometimes you can use python or bash to produce something manifest-like, but there's no automated way to do it right now.

Best,  
Justine

---

<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:** [July 12, 2019, 7:56am UTC](https://forum.qiime2.org/t/how-to-create-a-manifest-file-using-command-line/10645/3 "2019-07-12T07:56:02Z")

</div>

Though I never tried this myself, there is at least one attempt at automating manifest making. See @Micro_Biologist's script [here](https://forum.qiime2.org/t/automatic-manifest-maker-in-python3/8595) for example.

---

<div class="post-metadata">

**Author:** ![Micro\_Biologist](https://forum.qiime2.org/user_avatar/forum.qiime2.org/micro_biologist/32/4190_2.png) [@Micro\_Biologist](https://forum.qiime2.org/u/Micro_Biologist)\
**Post date:** [July 12, 2019, 11:15am UTC](https://forum.qiime2.org/t/how-to-create-a-manifest-file-using-command-line/10645/4 "2019-07-12T11:15:31Z")

</div>

~~It doesnt work right now... I've been busy with other projects but if anyone wants to fix it, it is 99% there!~~

It works fine just tested with the qiime2-2019.4 conda environment 😄

You'll have to install 'send2trash' (or make a minor edit to the code) to use in the qiime2 conda environment I ran this:

```
pip install send2trash

```

Hope it works okay!

---

<div class="post-metadata">

**Author:** ![SAHIL\_JAIN\_16110144](https://forum.qiime2.org/user_avatar/forum.qiime2.org/sahil_jain_16110144/32/5233_2.png) [@SAHIL\_JAIN\_16110144](https://forum.qiime2.org/u/SAHIL_JAIN_16110144)\
**Post date:** [July 12, 2019, 9:52pm UTC](https://forum.qiime2.org/t/how-to-create-a-manifest-file-using-command-line/10645/6 "2019-07-12T21:52:32Z")

</div>

Thanks! @Micro_Biologist and @Mehrbod_Estaki for your help and support!

---

<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:** [August 13, 2019, 3:52am UTC](https://forum.qiime2.org/t/how-to-create-a-manifest-file-using-command-line/10645/7 "2019-08-13T03:52:34Z")

</div>

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