%0 Journal Article %A Jason McClelland %A David Koslicki %T EMDUNIFRAC: EXACT LINEAR TIME COMPUTATION OF THE UNIFRAC METRIC AND IDENTIFICATION OF DIFFERENTIALLY ABUNDANT ORGANISMS %D 2016 %R 10.1101/087171 %J bioRxiv %P 087171 %X 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 mover’s 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. %U https://www.biorxiv.org/content/biorxiv/early/2016/11/11/087171.full.pdf