# Does it make sense to use weighted unifrac distances for 16s data?

**URL:** https://forum.qiime2.org/t/does-it-make-sense-to-use-weighted-unifrac-distances-for-16s-data/12768
**Category:** General Discussion
**Created:** [December 5, 2019, 11:42pm UTC](https://forum.qiime2.org/t/does-it-make-sense-to-use-weighted-unifrac-distances-for-16s-data/12768 "2019-12-05T23:42:57Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![jwdebelius](https://forum.qiime2.org/user_avatar/forum.qiime2.org/jwdebelius/32/9655_2.png) [@jwdebelius](https://forum.qiime2.org/u/jwdebelius)
#### Post date: [December 6, 2019, 9:08am UTC](https://forum.qiime2.org/t/does-it-make-sense-to-use-weighted-unifrac-distances-for-16s-data/12768/2 "2019-12-06T09:08:16Z")

</div>

Hi @Kevin_Rey1,

Welcome to the forum! You seem very timely because we've had a lot of discussions about taxonomy, phylogeny, and their relationship recently.

> [@Kevin\_Rey1](#):
>
> For example, a 16s ASV might only be a few bases different from another, which would cluster more closely in the constructed tree, but the actual taxonomic identities of those two ASVs might be very different.

You have hit on one of the fundamental frustrations of modern ecology: phylogeny and taxonomy don't line up. We (hope) that they're close, but most names are based off morphology-based phylogeny/taxonomy and modern molecular-based phylogeny shows that sometimes we got it wrong. There's divergent evolution, things we're not always sure about, and it's difficult. What's worse, we have this problem on a macroscale as well! I had a great (frustrated) discussion with a plant ecologist about this same problem last week. I'm goingt o recommend this post which talks about (some) of this.

> [@Taxonomy barplot .csv file for statistical analysis](https://forum.qiime2.org/t/taxonomy-barplot-csv-file-for-statistical-analysis/12171/2):
>
> Hi @arvindkannan, Okay, first, this is a complex question and I'm writing this with my first tea for the morning, just as fair warning. (Both for spelling and the suggestion that you may also want a coffee, tea, or other drink of your choosing.) Some more details about your pipeline would be helpful to figure out what you have and what you need. In general, I suspect that your "barplot" file is collapsed at some taxonomic level - genus maybe - and you have genus labels. It's maybe got th…

(The part that starts from "We can infer taxonomy..." and ends with snark about chickens and dinosaurs is probably most relevant to you.)

> [@Kevin\_Rey1](#):
>
> What doesn’t (yet) make sense to me is how the phylogeny of 16s sequences can add taxonomic information in of themselves.

Okay, so, if you have monophyletic clade, then the relationship between taxonomy and phylogeny should be closer. (Although not always) and sometimes, we shift names to try and get things up to date with the tree. Have you seen the recent paper about [taxonomic updates](https://www.ncbi.nlm.nih.gov/pubmed/30148503) based on phylogeny? However, most the way we do taxonomy in QIIME is to use a naive baysian classifier which is separate from the phylogeny calculation.

I think (maybe) the place where you're confused is that you're making the assumption that we should build our UniFrac distance based on the taxonomy rather than phylogeny? For UniFrac, we rely on that evolutionary relationship entirely agnostic to taxonomy. So, it's a calculation based on a nameless tree. I could, theoretically, do UniFrac on halloween[candy bars if I have a phylogeny relating them](https://wildlifesnpits.wordpress.com/2014/03/22/understanding-phylogenies-terminology/). (BTW, that blog looks like they have generally awesome posts and Im book making them for my "to read" list).

I'll also make the (brief) mention that "weighted" in UniFrac refers to weighting by abundance, rather than weighting by evolutionary distance.

Hopefully this helps untangle some of this? I also recommend looking at some of the previous issues that deal with why multiple ASVs/OTUs have the same name, because that might also shed some light for you?

Best,  
Justine

---

_[View the full topic](https://forum.qiime2.org/t/does-it-make-sense-to-use-weighted-unifrac-distances-for-16s-data/12768)._
