# Incorporating metadata when using manifests

**URL:** https://forum.qiime2.org/t/incorporating-metadata-when-using-manifests/2808
**Category:** User Support
**Tags:** demux, import, metadata, fastq-manifest
**Created:** [January 31, 2018, 2:36pm UTC](https://forum.qiime2.org/t/incorporating-metadata-when-using-manifests/2808 "2018-01-31T14:36:47Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![atgustin](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/a/e495f1/32.png) [@atgustin](https://forum.qiime2.org/u/atgustin)
#### Post date: [January 31, 2018, 2:36pm UTC](https://forum.qiime2.org/t/incorporating-metadata-when-using-manifests/2808/1 "2018-01-31T14:36:47Z")

</div>

Hello!

I'm new to using Qiime2 and am working through my first project. My import step involved a manifest, as I already have demultiplexed fastqs:

qiime tools import --type SampleData[PairedEndSequencesWithQuality]   
--input-path wihs\_cvl\_16s\_manifest   
--output-path demux.qza   
--source-format PairedEndFastqManifestPhred33

This works without a problem. But I notice that I'm then skipping the demultiplexing step that incorporates my metadata file.

At a later point when tabulating meta data like this:

qiime metadata tabulate \

> --m-input-file demux-filter-stats.qza   
> --o-visualization demux-filter-stats.qzv

i get an error like this:

There was an issue with viewing the artifact demux-filter-stats.qza as metadata:

Non-string Metadata index values detected. There may be more errors present in this metadata. Sample/feature metadata files can be validated using Keemei: [http://keemei.qiime.org](http://keemei.qiime.org)

I used Keemi to make sure the format of my .tsv metadata looked good and it gave me a green light.

I'm now wondering if the error is due to a lack of metadata incorporation - due to the demultiplexing that I skipped.

Your thoughts are much appreciated!

Andrew

---

<div class="post-metadata">

### Author: ![jairideout](https://forum.qiime2.org/user_avatar/forum.qiime2.org/jairideout/32/9_2.png) [@jairideout](https://forum.qiime2.org/u/jairideout)
#### Post date: [January 31, 2018, 4:33pm UTC](https://forum.qiime2.org/t/incorporating-metadata-when-using-manifests/2808/3 "2018-01-31T16:33:38Z")

</div>

Hi @atgustin!

> [@atgustin](#):
>
> This works without a problem. But I notice that I’m then skipping the demultiplexing step that incorporates my metadata file.

Since your data are already demultiplexed, the demultiplexing step isn't necessary. When demultiplexing, the metadata file is used to look up the barcode sequence associated with each sample, but in your case the barcodes have already been removed and your sequences have been split into per-sample FASTQ files.

> [@atgustin](#):
>
> At a later point when tabulating meta data like this:
> 
> qiime metadata tabulate \
> 
> –m-input-file demux-filter-stats.qza
> 
> –o-visualization demux-filter-stats.qzv
> 
> i get an error like this:
> 
> There was an issue with viewing the artifact demux-filter-stats.qza as metadata:

Can you provide the `wihs_cvl_16s_manifest` file you used to import your FASTQ files? My hunch is that you have a sample ID called `NA` or something, which doesn't work with current QIIME 2 releases (that issue will be fixed in the upcoming `2018.2` release; we'll follow up here when that happens). Thanks!

---

<div class="post-metadata">

### Author: ![atgustin](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/a/e495f1/32.png) [@atgustin](https://forum.qiime2.org/u/atgustin)
#### Post date: [February 2, 2018, 1:10pm UTC](https://forum.qiime2.org/t/incorporating-metadata-when-using-manifests/2808/5 "2018-02-02T13:10:58Z")

</div>

So I discovered that the metadata tabulation step that I was worried about isn't exaclt consequential - in the sense that it doesn't contribute to downstream analysis. I realized -after much qiime2 forum reading - that metadata is called for by each script independently. As a result of reading that, I was able to incorporate it at a later step - entirely skipping the metadata tabulate step.

I appreciate this forum a great deal - in the future i'll do a better job of patiently looking for my answer before posting a "new" question. Thanks!

Andrew

---

<div class="post-metadata">

### Author: ![jairideout](https://forum.qiime2.org/user_avatar/forum.qiime2.org/jairideout/32/9_2.png) [@jairideout](https://forum.qiime2.org/u/jairideout)
#### Post date: [February 16, 2018, 5:14pm UTC](https://forum.qiime2.org/t/incorporating-metadata-when-using-manifests/2808/7 "2018-02-16T17:14:34Z")

</div>

In the QIIME 2 `2018.2` release, Metadata now supports IDs and column names that are `NA`; this name will no longer be interpreted as missing data, which I think was the source of the original error reported in this topic.

There are a number of other changes to QIIME 2 Metadata in the `2018.2` release. See [this forum announcement](https://forum.qiime2.org/t/summary-of-changes-to-metadata-in-qiime-2-2018-2-release/2884) for details on what changed, as well as the updated [Metadata tutorial](https://docs.qiime2.org/2018.2/tutorials/metadata/). 🌞

---

<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: [March 19, 2018, 11:14pm UTC](https://forum.qiime2.org/t/incorporating-metadata-when-using-manifests/2808/9 "2018-03-19T23:14:41Z")

</div>

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