# How to create marker sequences from a genome to add to metaphlan database?

**URL:** https://forum.biobakery.org/t/how-to-create-marker-sequences-from-a-genome-to-add-to-metaphlan-database/1160
**Category:** MetaPhlAn
**Created:** [October 13, 2020, 5:06pm UTC](https://forum.biobakery.org/t/how-to-create-marker-sequences-from-a-genome-to-add-to-metaphlan-database/1160 "2020-10-13T17:06:07Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Juliana-Soto24](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/juliana-soto24/32/434_2.png) [@Juliana-Soto24](https://forum.biobakery.org/u/Juliana-Soto24)
#### Post date: [October 13, 2020, 5:06pm UTC](https://forum.biobakery.org/t/how-to-create-marker-sequences-from-a-genome-to-add-to-metaphlan-database/1160/1 "2020-10-13T17:06:07Z")

</div>

Hi All,  
I was wondering how can I add a new genome to the metaphlan database. I am following these steps from the tutorial but it is not clear how to generate marker sequences from the query genome that need to be stored in a file called new\_marker.fasta

## Customizing the database

In order to add a marker to the database, the user needs the following steps:

1. Reconstruct the marker sequences (in fasta format) from the MetaPhlAn2 bowtie2 database by:  
#!bash  
bowtie2-inspect metaphlan2/databases/mpa\_v20\_m200 \> metaphlan2/markers.fasta

2. Add the marker sequence stored in a file new\_marker.fasta to the marker set:  
#!bash  
cat new\_marker.fasta \>\> metaphlan2/markers.fasta

3. Rebuild the bowtie2 database:

Thanks for your support,

Juliana

---

<div class="post-metadata">

### Author: ![fbeghini](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/fbeghini/32/81_2.png) [@fbeghini](https://forum.biobakery.org/u/fbeghini)
#### Post date: [October 15, 2020, 8:17am UTC](https://forum.biobakery.org/t/how-to-create-marker-sequences-from-a-genome-to-add-to-metaphlan-database/1160/2 "2020-10-15T08:17:49Z")

</div>

Hi Juliana,  
In order to add a new genome to the MetaPhlAn database you need to annotate the reference genome and identify marker genes which usually are genes that are core genes for the species and unique for the species (no other species included in the database should share the same gene).  
I’ll refer you to this issue on the GitHub repository for more details [https://github.com/biobakery/MetaPhlAn/issues/103](https://github.com/biobakery/MetaPhlAn/issues/103)

---

<div class="post-metadata">

### Author: ![Juliana-Soto24](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/juliana-soto24/32/434_2.png) [@Juliana-Soto24](https://forum.biobakery.org/u/Juliana-Soto24)
#### Post date: [October 21, 2020, 3:45pm UTC](https://forum.biobakery.org/t/how-to-create-marker-sequences-from-a-genome-to-add-to-metaphlan-database/1160/3 "2020-10-21T15:45:25Z")

</div>

Thanks for the explanation. Another question: It seems that version 3.0 has ~ 110 eukaryotic reference genomes but there is none belonging to Pichiaceae, fungal family. Is there a selection criteria that you use to select reference genomes to build the database? Just wondering because it could bias the results of the taxonomic annotation

Thanks,

---

<div class="post-metadata">

### Author: ![fbeghini](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/fbeghini/32/81_2.png) [@fbeghini](https://forum.biobakery.org/u/fbeghini)
#### Post date: [October 22, 2020, 3:13pm UTC](https://forum.biobakery.org/t/how-to-create-marker-sequences-from-a-genome-to-add-to-metaphlan-database/1160/4 "2020-10-22T15:13:36Z")

</div>

The genomes included are the one having an annotated reference genome in the UniProt Proteomes portal. To date I see that are available 10 genomes, but at the time the database was created, no one was present.
