# Editing metadata in a .qza file

**URL:** https://forum.qiime2.org/t/editing-metadata-in-a-qza-file/4263
**Category:** User Support
**Tags:** metadata
**Created:** [May 23, 2018, 12:48pm UTC](https://forum.qiime2.org/t/editing-metadata-in-a-qza-file/4263 "2018-05-23T12:48:32Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![mshelomi](https://forum.qiime2.org/user_avatar/forum.qiime2.org/mshelomi/32/1721_2.png) [@mshelomi](https://forum.qiime2.org/u/mshelomi)
#### Post date: [May 23, 2018, 12:48pm UTC](https://forum.qiime2.org/t/editing-metadata-in-a-qza-file/4263/1 "2018-05-23T12:48:32Z")

</div>

I have demultiplexed, quality controlled, aligned sequences as single .fastq and single .fna files for each sample. I want to use QIIME2 for diversity and taxonomic analysis only.

Importing the .fna files with the following command

> qiime tools import --type 'SampleData[Sequences]' --output-path outfile.qza --input-path manifest.csv --source-format SingleEndFastqManifestPhred33

I have an associated metadata.yml file. However, I see no way to incorporate it into data that is already demultiplexed. If I open the .qza file with an editor [TextWarngler], I see a metadata.yaml as follows:

> uuid: 9fb71406-2bd4-404a-a11d-8ef73805f8e6  
> type: SampleData[SequencesWithQuality]  
> format: SingleLanePerSampleSingleEndFastqDirFmt

I want to replace this with my actual metadata.yaml file. TextWrangler won't let me edit this. What should I do?

---

<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: [May 23, 2018, 12:48pm UTC](https://forum.qiime2.org/t/editing-metadata-in-a-qza-file/4263/2 "2018-05-23T12:48:45Z")

</div>



---

<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: [May 24, 2018, 4:15am UTC](https://forum.qiime2.org/t/editing-metadata-in-a-qza-file/4263/3 "2018-05-24T04:15:47Z")

</div>

Hi there @mshelomi!

> [@mshelomi](#):
>
> I want to replace this with my actual metadata.yaml file. TextWrangler won’t let me edit this. What should I do?

Please see this quote from @Mehrbod_Estaki, from your [last topic on this forum](https://forum.qiime2.org/t/unknown-input-file-format/4238):

> [@Unknown input file format](https://forum.qiime2.org/t/unknown-input-file-format/4238/8):
>
> The metadata file which provides environmental information about your samples is not required at the import step. Instead it is provided separately downstream as needed, depending on the analysis you are looking to do. More details, including its formatting and validation are explained [here](https://docs.qiime2.org/2018.4/tutorials/metadata/).

Specifically, the link to the metadata guide at the bottom. In general though I would recommend you take a step back and review the documentation and tutorials we have put together at [docs.qiime2.org](http://docs.qiime2.org) --- the fundamental ideas behind QIIME 2 are described in great detail there, and will hopefully steer you in the right direction, generally speaking. As always, we are here to help!

Thanks! 🦖 :qiime2:

---

<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: [May 24, 2018, 4:15am UTC](https://forum.qiime2.org/t/editing-metadata-in-a-qza-file/4263/4 "2018-05-24T04:15:49Z")

</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: [June 24, 2018, 10:24am UTC](https://forum.qiime2.org/t/editing-metadata-in-a-qza-file/4263/5 "2018-06-24T10:24:57Z")

</div>

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