Head to head
Why the two profiles disagree
Run both tools on one sample and the tables will not match. Before blaming either, it is worth being precise about what each column contains — because a large part of the disagreement is not error at all. It is two different quantities being printed under the same heading.
Cells versus reads
MetaPhlAn estimates the fraction of organisms. Kraken counts reads. Those differ by genome size, by 16S-style copy-number effects for multi-copy targets, and by how much of each genome is unique enough to be assigned at all.
The genome-size part is pure arithmetic and worth seeing at scale. Six taxa, present at exactly equal cell abundance, sequenced without any bias whatsoever:
Equal cells, unequal reads
Arithmetic, not data: read fraction ∝ genome size, normalised to 100%. No sequencing bias assumed.
A 5.7-fold spread, from a community that is perfectly even. If you take a Kraken read-fraction table and describe it as community composition, you have described genome sizes. This is not a subtle correction to apply at the end — it changes which taxon is "dominant".
Bracken's redistribution addresses a different problem (reads stranded at high ranks), not this one. If you need cell-like abundances from Kraken output, divide by genome length explicitly and say you did. If you need them from MetaPhlAn, you already have them — that is what marker coverage buys.
The unknown fraction, three different ways
| Tool | What happens to a read from an organism it does not know | What the output shows |
|---|---|---|
| MetaPhlAn 3 | Does not align to any marker; is dropped | Nothing. Abundances sum to 100% of the profiled fraction, and the profiled fraction is not reported unless you ask |
| MetaPhlAn 4 | May align to a uSGB marker set built from MAGs, and be quantified under an unnamed identifier | A row with no species name. With --unclassified_estimation, also a rescaling to the mapped fraction |
| Kraken 2 | Its k-mers may still match conserved regions, so it is assigned to whatever rank the evidence supports — genus, family, or root | A count at a high rank, plus an explicit unclassified count. Nothing is silently discarded |
This is the difference that produces the most confusion in practice. Kraken's "unclassified" line is a real, reportable number. MetaPhlAn 3's equivalent is invisible unless you go looking for the mapping rate. Two tools reporting "100%" are reporting 100% of different denominators.
Where they systematically disagree
Novel and uncultured lineages
MetaPhlAn 3 cannot see them. MetaPhlAn 4 sees them as uSGBs. Kraken sees their conserved regions and parks the reads at a high rank. Three different, all defensible, all non-comparable answers to the same reads.
Rare taxa
Kraken will report a taxon from a handful of reads; MetaPhlAn needs enough marker coverage to call one. So Kraken tables have long tails of low-abundance taxa, many of which are artefacts, and MetaPhlAn tables are shorter and cleaner and miss real rare things.
Phage, plasmids and mobile elements
These are in the Kraken database as sequence and get classified. They are largely outside MetaPhlAn's clade-specific marker logic, because a mobile element is by definition not clade-specific.
Low-biomass samples
Where reagent contamination dominates, Kraken faithfully reports the contaminants — often as a diverse, confident-looking community. MetaPhlAn reports fewer of them, which looks cleaner and is not the same as being right.
Host-associated samples
Host reads are a large fraction and must be removed or accounted for. The Kraken standard database includes the human genome for exactly this reason; a database that does not include your host will scatter host reads across whatever is closest.
Anything with a poor reference
Environmental, plant-associated, non-human-animal, ancient DNA. Both tools degrade, in different directions: MetaPhlAn toward silence, Kraken toward confident misassignment.
The finding that outranks all of this
"From defaults to databases: parameter and database choice dramatically impact the performance of metagenomic taxonomic classification tools." The title is the result. Which reference database you use, and which non-default parameters you set, move the outcome more than the choice between the tools themselves.
Stated at the level the record supports: I could not retrieve the full text while writing this, so no effect sizes are quoted here. If you are going to lean on this result, read the paper — it is the single most useful thing you can read before choosing a configuration.
The practical reading: arguments about MetaPhlAn versus Kraken are frequently arguments about two different databases wearing tool names. Before concluding that one tool is better for your system, check whether you compared like with like — same reference scope, same host removal, same filtering.
Making a defensible comparison
- State the unit Cell fraction or read fraction. If you are putting both in one figure, convert one, and say which and how.
- State the denominator Percent of what — all reads, classified reads, or profiled reads? Report the mapping rate or the unclassified fraction alongside every profile.
- Pin both databases Tool version and database string or build date, for both tools. This is the part that makes the result reproducible, and it is the part most often omitted.
- Compare at a rank both can support Genus is usually safe. Species is where SGB-versus-NCBI-species and Kraken's LCA behaviour both bite hardest.
- Filter before you compare Confidence threshold and distinct-minimizer filtering on the Kraken side; deciding what to do about uSGBs on the MetaPhlAn side. An unfiltered Kraken table against a MetaPhlAn table is not a fair fight in either direction.
- Use a mock community if you have one It is the only way to convert an argument about which tool is right into a measurement. If you do not have one, say the comparison is relative rather than validated.
Which to reach for
| If you want to… | Reach for | Because |
|---|---|---|
| Compare community composition across many human-associated samples | MetaPhlAn 4 | Cell-fraction abundances, curated markers, strong human-microbiome reference coverage, and uSGBs for the uncultured part |
| Detect a specific pathogen or contaminant, including at low abundance | Kraken 2 with confidence and distinct-minimizer filtering | Every read is examined; nothing is discarded for lacking a marker. But the false-positive controls are not optional here |
| Profile viruses, phage or plasmids | Kraken 2 with a database that contains them | Mobile and viral sequence is largely outside clade-specific marker logic |
| Work in a poorly referenced environment | Both, and expect disagreement | MetaPhlAn 4 uSGBs and Kraken's higher-rank fallback capture different parts of the unknown |
| Get species-level abundances from Kraken | Kraken 2 → filter → Bracken | Kraken alone strands reads at high ranks; Bracken redistributes them, but only faithfully if the input was filtered |
| Reproduce someone else's published profile | Their exact tool version and database build | Nothing else will reproduce it, and often that information is not in the paper |