# Metaphlan genus level relative abundance not summing up to 100% and possible database problem

**URL:** <https://forum.biobakery.org/t/metaphlan-genus-level-relative-abundance-not-summing-up-to-100-and-possible-database-problem/5630>\
**Category:** MetaPhlAn\
**Created:** [July 11, 2023, 11:23am UTC](https://forum.biobakery.org/t/metaphlan-genus-level-relative-abundance-not-summing-up-to-100-and-possible-database-problem/5630 "2023-07-11T11:23:40Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nadav\_Moriel](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/nadav_moriel/32/1573_2.png) [@Nadav\_Moriel](https://forum.biobakery.org/u/Nadav_Moriel)\
**Post date:** [July 11, 2023, 11:23am UTC](https://forum.biobakery.org/t/metaphlan-genus-level-relative-abundance-not-summing-up-to-100-and-possible-database-problem/5630/1 "2023-07-11T11:23:40Z")

</div>

Hi there,

I have finished running MetaPhlAn4 on my data and started analyzing the results.  
I noticed two main issues which I believe require your attention:

1. For some of the samples the relative abundance at the species level sums up to 100% yet it is lower at the genus level. From what I understand, at least in my samples, the problem stems from the following clades:  
k\_\_Bacteria|p\_\_Firmicutes|c\_\_Clostridia|o\_\_Eubacteriales|f\_\_Eubacteriaceae|g\_\_Eubacterium|s\_\_Eubacterium\_ventriosum  
k\_\_Bacteria|p\_\_Firmicutes|c\_\_Clostridia|o\_\_Eubacteriales|f\_\_Eubacteriaceae|g\_\_Eubacterium|s\_\_Eubacterium\_sp\_AF34\_35BH  
k\_\_Bacteria|p\_\_Firmicutes|c\_\_Clostridia|o\_\_Eubacteriales|f\_\_Eubacteriaceae|g\_\_Eubacterium|s\_\_Eubacterium\_sp\_AF22\_9  
k\_\_Bacteria|p\_\_Firmicutes|c\_\_Clostridia|o\_\_Eubacteriales|f\_\_Eubacteriaceae|g\_\_Eubacterium|s\_\_Eubacterium\_SGB6276  
k\_\_Bacteria|p\_\_Firmicutes|c\_\_Clostridia|o\_\_Eubacteriales|f\_\_Eubacteriaceae|g\_\_Eubacterium|s\_\_Eubacterium\_SGB4329  
k\_\_Bacteria|p\_\_Firmicutes|c\_\_CFGB9301|o\_\_OFGB9301|f\_\_FGB9301|g\_\_GGB53985|s\_\_GGB53985\_SGB6367  
k\_\_Bacteria|p\_\_Firmicutes|c\_\_Clostridia|o\_\_Eubacteriales|f\_\_Peptostreptococcaceae|g\_\_Romboutsia|s\_\_Romboutsia\_timonensis  
k\_\_Bacteria|p\_\_Firmicutes|c\_\_Clostridia|o\_\_Eubacteriales|f\_\_Peptostreptococcaceae|g\_\_Romboutsia|s\_\_Romboutsia\_hominis  
k\_\_Bacteria|p\_\_Proteobacteria|c\_\_CFGB3069|o\_\_OFGB3069|f\_\_FGB3069|g\_\_GGB9770|s\_\_GGB9770\_SGB57575  
k\_\_Bacteria|p\_\_Actinobacteria|c\_\_Actinomycetia|o\_\_Micrococcales|f\_\_Micrococcaceae|g\_\_Arthrobacter|s\_\_Arthrobacter\_sp\_HMSC06H05  
k\_\_Bacteria|p\_\_Firmicutes|c\_\_Clostridia|o\_\_Eubacteriales|f\_\_Eubacteriaceae|g\_\_Eubacterium|s\_\_Eubacterium\_ramulus  
k\_\_Bacteria|p\_\_Firmicutes|c\_\_Clostridia|o\_\_Eubacteriales|f\_\_Eubacteriaceae|g\_\_Eubacterium|s\_\_Eubacterium\_sp\_AF22\_8LB  
k\_\_Bacteria|p\_\_Firmicutes|c\_\_Erysipelotrichia|o\_\_Erysipelotrichales|f\_\_Erysipelotrichaceae|g\_\_Catenibacterium|s\_\_Candidatus\_Catenibacterium\_tridentinum  
k\_\_Bacteria|p\_\_Firmicutes|c\_\_CFGB1354|o\_\_OFGB1354|f\_\_FGB1354|g\_\_GGB3304|s\_\_GGB3304\_SGB4367  
k\_\_Bacteria|p\_\_Firmicutes|c\_\_CFGB75916|o\_\_OFGB75916|f\_\_FGB75916|g\_\_GGB2993|s\_\_GGB2993\_SGB3978  
k\_\_Bacteria|p\_\_Proteobacteria|c\_\_Alphaproteobacteria|o\_\_Hyphomicrobiales|f\_\_Bradyrhizobiaceae|g\_\_Bradyrhizobium|s\_\_Bradyrhizobium\_viridifuturi

2. Is it possible that there are some errors in the clades annotation? For example, under the genus “g\_\_GGB79996” there are the following organisms:  
k\_\_Bacteria|p\_\_Actinobacteria|c\_\_CFGB10299|o\_\_OFGB10299|f\_\_FGB10299|g\_\_GGB79996|s\_\_GGB79996\_SGB14375 k\_\_Bacteria|p\_\_Actinobacteria|c\_\_CFGB10299|o\_\_OFGB10299|f\_\_FGB10299|g\_\_GGB79996|s\_\_GGB79996\_SGB14375|t\_\_SGB14375  
k\_\_Bacteria|p\_\_Firmicutes|c\_\_CFGB10299|o\_\_OFGB10299|f\_\_FGB10299|g\_\_GGB79996

A similar issue appears with the genus “g\_\_GGB1249” which appears in:  
k\_\_Bacteria|p\_\_Bacteroidetes|c\_\_CFGB76191|o\_\_OFGB76191|f\_\_FGB76191|g\_\_GGB1249|s\_\_GGB1249\_SGB1670  
k\_\_Bacteria|p\_\_Bacteroidetes|c\_\_CFGB76191|o\_\_OFGB76191|f\_\_FGB76191|g\_\_GGB1249|s\_\_GGB1249\_SGB1670|t\_\_SGB1670  
k\_\_Bacteria|p\_\_Firmicutes|c\_\_CFGB76191|o\_\_OFGB76191|f\_\_FGB76191|g\_\_GGB1249

It appears that these all share a common genus although they are annotated as belonging to a different phylum (otherwise, the class, order, and family all match). Could this be an error in the database annotation?

Thanks in advance,  
Nadav

---

<div class="post-metadata">

**Author:** ![Michal\_Puncochar](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/michal_puncochar/32/2321_2.png) [@Michal\_Puncochar](https://forum.biobakery.org/u/Michal_Puncochar)\
**Post date:** [July 28, 2023, 2:43pm UTC](https://forum.biobakery.org/t/metaphlan-genus-level-relative-abundance-not-summing-up-to-100-and-possible-database-problem/5630/2 "2023-07-28T14:43:31Z")

</div>

Hi @Nadav_Moriel

thanks for reporting the bug. We are aware of it, it is indeed an inconsistency in taxonomic assignments with regards to uFGBs, i.e. that different SGBs could have the same GGB id, but different phylum assigned. This is a problem until the Oct22 release and it will be fixed in the following ones to be released.

Best

Michal

---

<div class="post-metadata">

**Author:** ![Elan](https://avatars.discourse-cdn.com/v4/letter/e/3e96dc/32.png) [@Elan](https://forum.biobakery.org/u/Elan)\
**Post date:** [February 28, 2024, 12:37am UTC](https://forum.biobakery.org/t/metaphlan-genus-level-relative-abundance-not-summing-up-to-100-and-possible-database-problem/5630/3 "2024-02-28T00:37:39Z")

</div>

I am running the latest versions of MetaPhlAn and the associated databases, and am finding that in many cases the relative abundances still do not sum to 100

---

<div class="post-metadata">

**Author:** ![Kristian\_Holm](https://avatars.discourse-cdn.com/v4/letter/k/eb9ed0/32.png) [@Kristian\_Holm](https://forum.biobakery.org/u/Kristian_Holm)\
**Post date:** [February 29, 2024, 10:34am UTC](https://forum.biobakery.org/t/metaphlan-genus-level-relative-abundance-not-summing-up-to-100-and-possible-database-problem/5630/4 "2024-02-29T10:34:40Z")

</div>

Using Metaphlan 4.1 with markerdb mpa\_vJun23\_CHOCOPhlAnSGB\_202307.

I get sum 100% at phylum level, but only 48% on class and order, and 88% on family level. Most of phylum Firmicutes seems to disappear. drops from 61% (phyla) down to 11% (class).

Large class level p\_\_Firmicutes;c\_\_Clostridia is fully missing (although there is a p\_\_Bacillota;c\_\_Clostridia with 0.07%). This compared to family level where there are entries such as k\_\_Bacteria|p\_\_Firmicutes|c\_\_Clostridia|o\_\_Eubacteriales|f\_\_Lachnospiraceae with 20%.

PHYLA:  
k\_\_Bacteria|p\_\_Firmicutes|2|1239|61.08822|  
k\_\_Bacteria|p\_\_Bacteroidota|2|976|24.78932|  
k\_\_Bacteria|p\_\_Proteobacteria|2|1224|8.54597|  
k\_\_Bacteria|p\_\_Actinobacteria|2|201174|5.4726|  
k\_\_Bacteria|p\_\_Bacillota|2|1239|0.07432|  
k\_\_Bacteria|p\_\_Bacteria\_unclassified|2||0.02958|

CLASS:  
k\_\_Bacteria|p\_\_Bacteroidota|c\_\_Bacteroidia|2|976|200643|24.78932|  
k\_\_Bacteria|p\_\_Proteobacteria|c\_\_Gammaproteobacteria|2|1224|1236|8.05845|  
k\_\_Bacteria|p\_\_Actinobacteria|c\_\_Actinomycetia|2|201174|1760|4.69221|  
k\_\_Bacteria|p\_\_Firmicutes|c\_\_Firmicutes\_unclassified|2|1239||2.58896|  
k\_\_Bacteria|p\_\_Firmicutes|c\_\_Bacilli|2|1239|91061|1.90796|  
k\_\_Bacteria|p\_\_Firmicutes|c\_\_Negativicutes|2|1239|909932|1.65363|  
k\_\_Bacteria|p\_\_Firmicutes|c\_\_CFGB3054|2|1239||0.93087|  
k\_\_Bacteria|p\_\_Actinobacteria|c\_\_Coriobacteriia|2|201174|84998|0.78039|  
k\_\_Bacteria|p\_\_Firmicutes|c\_\_CFGB3057|2|1239||0.59732|  
k\_\_Bacteria|p\_\_Firmicutes|c\_\_CFGB1798|2|1239||0.56436|  
k\_\_Bacteria|p\_\_Proteobacteria|c\_\_Betaproteobacteria|2|1224|28216|0.48751|  
k\_\_Bacteria|p\_\_Firmicutes|c\_\_CFGB38642|2|1239||0.46762|  
k\_\_Bacteria|p\_\_Firmicutes|c\_\_CFGB3070|2|1239||0.3679|  
k\_\_Bacteria|p\_\_Firmicutes|c\_\_CFGB75721|2|1239||0.21093|  
k\_\_Bacteria|p\_\_Firmicutes|c\_\_CFGB3048|2|1239||0.18617|  
k\_\_Bacteria|p\_\_Firmicutes|c\_\_CFGB1227|2|1239||0.11286|  
k\_\_Bacteria|p\_\_Bacillota|c\_\_Clostridia|2|1239|186801|0.07432|  
k\_\_Bacteria|p\_\_Firmicutes|c\_\_CFGB1292|2|1239||0.06017|  
k\_\_Bacteria|p\_\_Firmicutes|c\_\_CFGB3038|2|1239||0.03362|  
k\_\_Bacteria|p\_\_Bacteria\_unclassified|c\_\_Bacteria\_unclassified|2|||0.02958|  
k\_\_Bacteria|p\_\_Firmicutes|c\_\_CFGB79294|2|1239||0.01827|  
k\_\_Bacteria|p\_\_Firmicutes|c\_\_CFGB1011|2|1239||0.01466|  
k\_\_Bacteria|p\_\_Firmicutes|c\_\_CFGB77202|2|1239||0.01421|  
k\_\_Bacteria|p\_\_Firmicutes|c\_\_CFGB79245|2|1239||0.00377|  
k\_\_Bacteria|p\_\_Firmicutes|c\_\_CFGB1249|2|1239||0.00201|  
k\_\_Bacteria|p\_\_Firmicutes|c\_\_CFGB3009|2|1239||0.0006|

best,  
Kristian

---

<div class="post-metadata">

**Author:** ![Elan](https://avatars.discourse-cdn.com/v4/letter/e/3e96dc/32.png) [@Elan](https://forum.biobakery.org/u/Elan)\
**Post date:** [February 29, 2024, 5:19pm UTC](https://forum.biobakery.org/t/metaphlan-genus-level-relative-abundance-not-summing-up-to-100-and-possible-database-problem/5630/5 "2024-02-29T17:19:21Z")

</div>

My results are consistent with Kristian’s. k\_\_Bacteria|p\_\_Firmicutes|c\_\_Clostridia|o\_\_Eubacteriales|f\_\_Oscillospiraceae, k\_\_Bacteria|p\_\_Firmicutes|c\_\_Clostridia, and k\_\_Bacteria|p\_\_Firmicutes|c\_\_Clostridia|o\_\_Eubacteriales are all completely absent, even though finer grained taxa that belong to those groups are present

---

<div class="post-metadata">

**Author:** ![jorondo1](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/jorondo1/32/1312_2.png) [@jorondo1](https://forum.biobakery.org/u/jorondo1)\
**Post date:** [March 3, 2026, 1:21pm UTC](https://forum.biobakery.org/t/metaphlan-genus-level-relative-abundance-not-summing-up-to-100-and-possible-database-problem/5630/6 "2026-03-03T13:21:32Z")

</div>

Running metaphlan 4 with any of the last 3 database versions (up to vJan25) also yields relative abundances not summing to 100%. Has this been adressed? Is normalizing these numbers back to 100 a correct thing to do or is there an underlying bias in proportion estimation?

---

<div class="post-metadata">

**Author:** ![Claudia\_Mengoni](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/claudia_mengoni/32/2871_2.png) [@Claudia\_Mengoni](https://forum.biobakery.org/u/Claudia_Mengoni)\
**Post date:** [March 3, 2026, 3:52pm UTC](https://forum.biobakery.org/t/metaphlan-genus-level-relative-abundance-not-summing-up-to-100-and-possible-database-problem/5630/7 "2026-03-03T15:52:40Z")

</div>

Hi @jorondo1  
Can you tell me which version of metaphlan4 you are using, with metaphlan --version?  
Can you also let me know at what taxonomic level you see these inconsistencies?

---

<div class="post-metadata">

**Author:** ![jorondo1](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/jorondo1/32/1312_2.png) [@jorondo1](https://forum.biobakery.org/u/jorondo1)\
**Post date:** [March 3, 2026, 5:12pm UTC](https://forum.biobakery.org/t/metaphlan-genus-level-relative-abundance-not-summing-up-to-100-and-possible-database-problem/5630/8 "2026-03-03T17:12:44Z")

</div>

Hello Claudia, I was running metaphlan 4.0.4 and this is at the species level

---

<div class="post-metadata">

**Author:** ![Claudia\_Mengoni](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/claudia_mengoni/32/2871_2.png) [@Claudia\_Mengoni](https://forum.biobakery.org/u/Claudia_Mengoni)\
**Post date:** [March 3, 2026, 5:36pm UTC](https://forum.biobakery.org/t/metaphlan-genus-level-relative-abundance-not-summing-up-to-100-and-possible-database-problem/5630/9 "2026-03-03T17:36:21Z")

</div>

Could you try using the latest version (v4.2.4) with vJan25 database? Just to check if it’s an issue of the code that was already fixed or not.

---

<div class="post-metadata">

**Author:** ![jorondo1](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/jorondo1/32/1312_2.png) [@jorondo1](https://forum.biobakery.org/u/jorondo1)\
**Post date:** [March 4, 2026, 1:18am UTC](https://forum.biobakery.org/t/metaphlan-genus-level-relative-abundance-not-summing-up-to-100-and-possible-database-problem/5630/11 "2026-03-04T01:18:29Z")

</div>

Hi, I apologize, this was an error on my part. All is good with both versions!

---

<div class="post-metadata">

**Author:** ![Saharb](https://avatars.discourse-cdn.com/v4/letter/s/3be4f8/32.png) [@Saharb](https://forum.biobakery.org/u/Saharb)\
**Post date:** [March 23, 2026, 5:31pm UTC](https://forum.biobakery.org/t/metaphlan-genus-level-relative-abundance-not-summing-up-to-100-and-possible-database-problem/5630/12 "2026-03-23T17:31:18Z")

</div>

I’m having this issues using metaphlan4.1 and mpa\_vJun23\_CHOCOPhlAnSGB\_202307 and would like to use the fixing script but that is not working properly.
