bioRxivMicrobiology
EMDUnifrac: Exact linear time computation of the Unifrac metric and identification of differentially abundant organisms
Abstract
Both the weighted and unweighted Unifrac distances have been very successfully employed to assess if two communities differ, but do not give any information about how two communities differ. We take advantage of recent observations that the Unifrac metric is equivalent to the so-called earth movers distance (also known as the Kantorovich-Rubinstein metric) to develop an algorithm that not only computes the Unifrac distance in linear time and space, but also simultaneously finds which operational taxonomic units are responsible for the observed differences between samples. This allows the algorithm, called EMDUnifrac, to determine why given samples are different, not just if they are different, and with no added computational burden. EMDUnifrac can be utilized on any distribution on a tree, and so is particularly suitable to analyzing both operational taxonomic units derived from amplicon sequencing, as well as community profiles resulting from classifying whole genome shotgun metagenomes. The EMDUnifrac source code (written in python) is freely available at: https://github.com/dkoslicki/EMDUnifrac.
- assay: metagenomics
- research focus: differential expression
- research focus: clustering
- approach: deep learning
- approach: statistical model
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Interpreting UniFrac with Absolute Abundance: A Conceptual and Practical Guide
Augustus Pendleton, Marian L. Schmidt·ISME CommunicationsPeer-reviewed·Jan 1, 2026
- Using the UniFrac metric on Whole Genome Shotgun data
Wei Wei, David Koslicki·bioRxiv·Jan 17, 2022
- Enabling Megascale Microbiome Analysis with DartUniFrac
Jianshu Zhao, Daniel T. McDonald, … Rob D. Knight·bioRxiv·Mar 3, 2026
- Finding phylogeny-aware and biologically meaningful averages of metagenomic samples: L2UniFrac
Wei Wei, Andrew Millward, David Koslicki·BioinformaticsPeer-reviewed·Jun 1, 2023
- On branch lengths assignment methods for trees with fixed topology and related biological applications
Wei Wei, David Koslicki·bioRxiv·Jul 29, 2024
- Reference-free comparison of microbial communities via de Bruijn graphs
Serghei Mangul, David Koslicki·bioRxiv·May 24, 2016