# How to download avian influenza fasta and metadata files from GISAID or GenBank in a compatible format?

**URL:** <https://nextstrain.discourse.group/t/how-to-download-avian-influenza-fasta-and-metadata-files-from-gisaid-or-genbank-in-a-compatible-format/1504>\
**Category:** Help and Getting Started\
**Created:** [December 13, 2023, 5:21pm UTC](https://nextstrain.discourse.group/t/how-to-download-avian-influenza-fasta-and-metadata-files-from-gisaid-or-genbank-in-a-compatible-format/1504 "2023-12-13T17:21:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![corneliusroemer](https://yyz1.discourse-cdn.com/flex031/user_avatar/nextstrain.discourse.group/corneliusroemer/32/175_2.png) [@corneliusroemer](https://nextstrain.discourse.group/u/corneliusroemer)\
**Post date:** [December 15, 2023, 4:04pm UTC](https://nextstrain.discourse.group/t/how-to-download-avian-influenza-fasta-and-metadata-files-from-gisaid-or-genbank-in-a-compatible-format/1504/2 "2023-12-15T16:04:29Z")

</div>

Hi Albert,

This is a great question! We have a small tutorial for this: [Preparing Your Metadata — Augur 23.1.1 documentation](https://docs.nextstrain.org/projects/augur/en/23.1.1/faq/metadata.html)

For Augur you generally need separate `sequences.fasta` and a `metadata.tsv` file where the sequence headers from the fasta are also present in a column of the metadata so that the two can be linked.

Often, Genbank and GISAID sequence exports contain metadata inside the fasta sequence headers. E.g. `OS123|2023-10-01|Australia`. Augur offers the [`augur parse`](https://docs.nextstrain.org/projects/augur/en/stable/usage/cli/parse.html) command as a convenience to split that into the required fasta and metadata tsv.

It might be able to do the job just fine for a start. At Nextstrain, we often do more further processing of the metadata in so called `ingest` workflows to make it less annoying to work with, e.g. renaming fields and changing values. But this isn’t strictly necessary.

@joverlee has written a lot of tooling to make such data massaging easier with the [`augur curate`](https://docs.nextstrain.org/projects/augur/en/stable/usage/cli/curate/index.html) command. There are also various scripts we’ve developed in various repos that you could use for inspiration.

Some repositories for inspiration:

- Mpox ingest that takes data from Genbank/NCBI and produces sequences.fasta and metadata.tsv: [mpox/ingest at master · nextstrain/mpox · GitHub](https://github.com/nextstrain/mpox/tree/master/ingest)
- General template to use as a starting point for “ingest”: [pathogen-repo-template/ingest at main · nextstrain/pathogen-repo-template · GitHub](https://github.com/nextstrain/pathogen-repo-template/tree/main/ingest)
- hepatitisB ingest: [hepatitisB/ingest at 7bd1b05e55a7fe0179195d13d44abaf40755d1ef · nextstrain/hepatitisB · GitHub](https://github.com/nextstrain/hepatitisB/tree/7bd1b05e55a7fe0179195d13d44abaf40755d1ef/ingest)
- Dengue ingest: [dengue/ingest/README.md at f513d319055c706a11370b76a95fdad729edc1cc · nextstrain/dengue · GitHub](https://github.com/nextstrain/dengue/blob/f513d319055c706a11370b76a95fdad729edc1cc/ingest/README.md)

I hope this helps! Feel free to make a new post if you hit particular challenges!

Best,

Cornelius

---

_[View the full topic](https://nextstrain.discourse.group/t/how-to-download-avian-influenza-fasta-and-metadata-files-from-gisaid-or-genbank-in-a-compatible-format/1504)._
