# Create manifest file from fastq

**URL:** <https://forum.qiime2.org/t/create-manifest-file-from-fastq/34079>\
**Category:** Technical Support\
**Created:** [March 25, 2026, 12:55pm UTC](https://forum.qiime2.org/t/create-manifest-file-from-fastq/34079 "2026-03-25T12:55:12Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tahmine\_Aldaghi](https://forum.qiime2.org/user_avatar/forum.qiime2.org/tahmine_aldaghi/32/21726_2.png) [@Tahmine\_Aldaghi](https://forum.qiime2.org/u/Tahmine_Aldaghi)\
**Post date:** [March 25, 2026, 12:55pm UTC](https://forum.qiime2.org/t/create-manifest-file-from-fastq/34079/1 "2026-03-25T12:55:12Z")

</div>

# Hi. I have a question. I use this command:

ls \*\_1.fastq | sed 's/\_1.fastq//' | while read s; do \  
echo -e "$s\t$PWD/${s}\_1.fastq\tforward"; \  
echo -e "$s\t$PWD/${s}\_2.fastq\treverse"; \  
done \> manifest.csv to create manifest file.  
I chekced the output with keemei and downloded the new file and run the command:  
qiime tools import \  
--type 'SampleData[PairedEndSequencesWithQuality]' \  
--input-path manifest.csv \  
--output-path demux.qza \  
--input-format PairedEndFastqManifestPhred33V2  
It shows an error:  
There was a problem importing manifest.csv:

manifest.csv is not a(n) PairedEndFastqManifestPhred33V2 file:

Found unrecognized ID column name 'sample-id,absolute-filepath,direction' while searching for header. The first column name in the header defines the ID column, and must be one of these values:

Case-insensitive: 'feature id', 'feature-id', 'featureid', 'id', 'sample id', 'sample-id', 'sampleid'

Case-sensitive: '[#OTU](https://www.youtube.com/hashtag/otu) ID', '[#OTUID](https://www.youtube.com/hashtag/otuid)', '[#Sample](https://www.youtube.com/hashtag/sample) ID', '[#SampleID](https://www.youtube.com/hashtag/sampleid)', 'sample\_name'

NOTE: Metadata files must contain tab-separated values.

There may be more errors present in the metadata file. To get a full report, sample/feature metadata files can be validated with Keemei: [[https://keemei.qiime2.org](https://keemei.qiime2.org)](javascript:void0😉

What should I do? Thanks in advance for your help.

---

<div class="post-metadata">

**Author:** ![lizgehret](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lizgehret/32/17128_2.png) [@lizgehret](https://forum.qiime2.org/u/lizgehret)\
**Post date:** [March 25, 2026, 1:08pm UTC](https://forum.qiime2.org/t/create-manifest-file-from-fastq/34079/2 "2026-03-25T13:08:33Z")

</div>

Hey @Tahmine_Aldaghi,

Welcome to the :qiime2: forum 👋

Here's where the problem lies:

> [@Tahmine\_Aldaghi](#):
>
> Found unrecognized ID column name 'sample-id,absolute-filepath,direction' while searching for header.

The important bit to notice here is that all of your columns were identified as a single column name from the error message. Just below this we see:

> [@Tahmine\_Aldaghi](#):
>
> The first column name in the header defines the ID column, and must be one of these values:
> 
> Case-insensitive: 'feature id', 'feature-id', 'featureid', 'id', 'sample id', 'sample-id', 'sampleid'
> 
> Case-sensitive: '[#OTU](https://www.youtube.com/hashtag/otu) ID', '[#OTUID](https://www.youtube.com/hashtag/otuid)', '[#Sample](https://www.youtube.com/hashtag/sample) ID', '[#SampleID](https://www.youtube.com/hashtag/sampleid)', 'sample\_name'
> 
> NOTE: Metadata files must contain tab-separated values.

Without looking at your manifest file directly, it appears as though you are missing tabs between each column name, which is why the collection of your columns is being idenfitied as a single column name.

You'll need to either modify or re-create your manifest file in tab separated format (rather than comma separated format). This change should resolve the error that you're currently seeing.

Cheers 🦎

---

<div class="post-metadata">

**Author:** ![Tahmine\_Aldaghi](https://forum.qiime2.org/user_avatar/forum.qiime2.org/tahmine_aldaghi/32/21726_2.png) [@Tahmine\_Aldaghi](https://forum.qiime2.org/u/Tahmine_Aldaghi)\
**Post date:** [March 25, 2026, 2:19pm UTC](https://forum.qiime2.org/t/create-manifest-file-from-fastq/34079/3 "2026-03-25T14:19:20Z")

</div>

Thanks for your answer.  
I did it. I did the below command:  
printf "sample-id\tabsolute-filepath\tdirection\n" \> manifest.tsv  
for f in \*\_1.fastq; do  
s=${f%\_1.fastq}  
printf "%s\t%s/%s\_1.fastq\tforward\n" "$s" "$PWD" "$s" \>\> manifest.tsv  
printf "%s\t%s/%s\_2.fastq\treverse\n" "$s" "$PWD" "$s" \>\> manifest.tsv  
done  
and then:  
qiime tools import   
--type 'SampleData[PairedEndSequencesWithQuality]'   
--input-path manifest.tsv   
--output-path demux.qza   
--input-format PairedEndFastqManifestPhred33V2  
But again, another error:  
There was a problem importing manifest.tsv:  
manifest.tsv is not a(n) PairedEndFastqManifestPhred33V2 file:  
There was an issue with loading the metadata file:  
Metadaza IDs must be unique. The following IDs are duplicated: 'SRR14293234', 'SRR14293237', 'SRR14293238', 'SRR14293239', 'SRR14293240', 'SRR14293241', 'SRR14293244', 'SRR14293246', 'SRR14293247', 'SRR14293249', 'SRR14293250', 'SRR14293251', 'SRR14293253', 'SRR14293255', 'SRR14293256', 'SRR14293258', ...  
But it is not a metadata file.  
I dont know what should I do??

---

<div class="post-metadata">

**Author:** ![lizgehret](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lizgehret/32/17128_2.png) [@lizgehret](https://forum.qiime2.org/u/lizgehret)\
**Post date:** [March 25, 2026, 2:25pm UTC](https://forum.qiime2.org/t/create-manifest-file-from-fastq/34079/4 "2026-03-25T14:25:01Z")

</div>

Hey @Tahmine_Aldaghi,

Take a close look at the error this time around:

> [@Tahmine\_Aldaghi](#):
>
> There was an issue with loading the metadata file:  
> Metadata IDs must be unique. The following IDs are duplicated: 'SRR14293234', 'SRR14293237', 'SRR14293238', 'SRR14293239', 'SRR14293240', 'SRR14293241', 'SRR14293244', 'SRR14293246', 'SRR14293247', 'SRR14293249', 'SRR14293250', 'SRR14293251', 'SRR14293253', 'SRR14293255', 'SRR14293256', 'SRR14293258', ...

It looks like you have duplicate IDs in this manifest file - which is a separate issue from before. I'd recommend examining your manifest file to confirm if you expect these IDs to show up more than once, or if this is due to a formatting issue.

Cheers 🦎

---

<div class="post-metadata">

**Author:** ![Tahmine\_Aldaghi](https://forum.qiime2.org/user_avatar/forum.qiime2.org/tahmine_aldaghi/32/21726_2.png) [@Tahmine\_Aldaghi](https://forum.qiime2.org/u/Tahmine_Aldaghi)\
**Post date:** [March 25, 2026, 3:57pm UTC](https://forum.qiime2.org/t/create-manifest-file-from-fastq/34079/6 "2026-03-25T15:57:31Z")

</div>

I have downloaded srr from ncbi through:  
**while read srr; do prefetch $srr; done \< srr\_list.txt**  
Transformed to FASTQ:  
while read srr; do fasterq-dump $srr --split-files --threads 4; done \< srr\_list.txt  
And now I want to create that manifest to import to QIIME.

I tried two ways, but both had errors. One mentioned that the file should be tab-separated, but when I did so, I got another error because the sample names are not unique. I even used keemei to validate my manifest file. But again, an error. Is there any other way?

---

<div class="post-metadata">

**Author:** ![lizgehret](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lizgehret/32/17128_2.png) [@lizgehret](https://forum.qiime2.org/u/lizgehret)\
**Post date:** [March 26, 2026, 11:23am UTC](https://forum.qiime2.org/t/create-manifest-file-from-fastq/34079/7 "2026-03-26T11:23:13Z")

</div>



---

<div class="post-metadata">

**Author:** ![lizgehret](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lizgehret/32/17128_2.png) [@lizgehret](https://forum.qiime2.org/u/lizgehret)\
**Post date:** [March 27, 2026, 9:19am UTC](https://forum.qiime2.org/t/create-manifest-file-from-fastq/34079/9 "2026-03-27T09:19:30Z")

</div>

Hey @Tahmine_Aldaghi,

It looks like you've fixed the tab separation problem, the main issue now is that you’re creating the older 3-column manifest layout and then trying to import it as `PairedEndFastqManifestPhred33V2`.

For `PairedEndFastqManifestPhred33V2`, the format should be one row per sample, with separate forward and reverse filepath columns, like this:

```auto
sample-id forward-absolute-filepath reverse-absolute-filepath
SRR14293234 /full/path/SRR14293234_1.fastq /full/path/SRR14293234_2.fastq
SRR14293237 /full/path/SRR14293237_1.fastq /full/path/SRR14293237_2.fastq

```

This formatting issue actually may be where the duplicated IDs are coming from - so fixing the format of your manifest file may resolve this. But with that being said, since these are SRA accessions, you may find it easier to use `q2-fondue` to pull the data directly from SRA into QIIME 2 artifacts, which can avoid the manifest-building step entirely. This plugin is available in the QIIME 2 2026.1 amplicon distribution.

Cheers 🦎

---

<div class="post-metadata">

**Author:** ![lizgehret](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lizgehret/32/17128_2.png) [@lizgehret](https://forum.qiime2.org/u/lizgehret)\
**Post date:** [March 27, 2026, 9:19am UTC](https://forum.qiime2.org/t/create-manifest-file-from-fastq/34079/10 "2026-03-27T09:19:34Z")

</div>



---

<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 27, 2026, 3:19pm UTC](https://forum.qiime2.org/t/create-manifest-file-from-fastq/34079/11 "2026-04-27T15:19:55Z")

</div>

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