# Is percentile-normalized data appropriate for UniFrac?

**URL:** <https://forum.qiime2.org/t/is-percentile-normalized-data-appropriate-for-unifrac/15702>\
**Category:** User Support\
**Tags:** unifrac, rarefaction\
**Created:** [July 11, 2020, 4:36pm UTC](https://forum.qiime2.org/t/is-percentile-normalized-data-appropriate-for-unifrac/15702 "2020-07-11T16:36:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ptalebic](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/p/8491ac/32.png) [@ptalebic](https://forum.qiime2.org/u/ptalebic)\
**Post date:** [July 11, 2020, 4:36pm UTC](https://forum.qiime2.org/t/is-percentile-normalized-data-appropriate-for-unifrac/15702/1 "2020-07-11T16:36:20Z")

</div>

Hi Claire,

Sorry I was following the post and one question poped into my mind.

I was wondering if you could let me know whether I could use percentile-normalized data for metrics such as weighted and unweighted Unifrac. The only method available in qiime 2 is rarefaction and I am not sure if its appropriate for such metrics.

---

<div class="post-metadata">

**Author:** ![cduvallet](https://forum.qiime2.org/user_avatar/forum.qiime2.org/cduvallet/32/1082_2.png) [@cduvallet](https://forum.qiime2.org/u/cduvallet)\
**Post date:** [July 11, 2020, 8:06pm UTC](https://forum.qiime2.org/t/is-percentile-normalized-data-appropriate-for-unifrac/15702/2 "2020-07-11T20:06:22Z")

</div>

Hi @ptalebic! Unfortunately, I don't think percentile-normalized data will work for either weighted or unweighted unifrace.

Unweighted unifrac uses the presence/absence of OTUs (or ASVs or whatever your features are) to calculate beta diversity. Because percentile normalization can't handle zeroes very well, the algorithm adds non-zero noise to any OTUs with zero count (see [my blog post](https://cduvallet.github.io/posts/2018/06/fuzzy-zeros) for more on that). That means that basically all of your values will be non-zero after percentile normalization, and so the unweighted unifrac calculation will not be meaningful.

Weighted unifrac also won't be meaningful, since the data that comes out of percentile-normalization isn't actually an abundance -- it's the percentile that this OTU in this sample falls relative to this OTU in all control samples. So using that as an abundance doesn't really make sense. (But maybe @seangibbons has additional thoughts on this? [Hi Sean!])

Finally, rarefaction also won't work because the percentiles that come out of the normalization aren't discrete values, they are continuous from 0 to 100. Rarefaction only works with counts, so it's not applicable here.

Sorry to be a bummer! Hopefully @seangibbons can provide additional insight into what metrics might be useful, or perhaps others in the QIIME 2 community have found some good ones. 🙂

---

<div class="post-metadata">

**Author:** ![ptalebic](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/p/8491ac/32.png) [@ptalebic](https://forum.qiime2.org/u/ptalebic)\
**Post date:** [July 11, 2020, 8:40pm UTC](https://forum.qiime2.org/t/is-percentile-normalized-data-appropriate-for-unifrac/15702/3 "2020-07-11T20:40:03Z")

</div>

Thank you so much for the great explanation.

---

<div class="post-metadata">

**Author:** ![seangibbons](https://forum.qiime2.org/user_avatar/forum.qiime2.org/seangibbons/32/2965_2.png) [@seangibbons](https://forum.qiime2.org/u/seangibbons)\
**Post date:** [July 11, 2020, 10:46pm UTC](https://forum.qiime2.org/t/is-percentile-normalized-data-appropriate-for-unifrac/15702/4 "2020-07-11T22:46:56Z")

</div>

Yup, I agree completely with Claire [Hi Claire!]. Percentile normalization will erase any information on how abundant one OTU is relative to another _within_ a sample, so weighted distance beta-diversity metrics (like weighted UniFrac or Bray Curtis) will be less meaningful and difficult to interpret. And the fuzzy zero issue makes unweighted beta-diversity metrics derived from percentile-normalized data problematic, as Claire described.

---

<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:** [July 13, 2020, 3:39am UTC](https://forum.qiime2.org/t/is-percentile-normalized-data-appropriate-for-unifrac/15702/5 "2020-07-13T03:39:17Z")

</div>

Hi @ptalebic,

I think currently Rob Knight's group uses rarefaction for UniFrac distance based on the 2017 paper by [Weiss et al](https://microbiomejournal.biomedcentral.com/articles/10.1186/s40168-017-0237-y). Rob developed UniFrac, so while it's a necessary evil, it's a current recommendation. An adonis model would let you include the sequencing depth as a term, so you could adjust for that in some of your statistics.

If you want to go rarefaction-less, you may want to look at DECOIDE, which avoids rarefaction but loses the phylogenetic inference.

Best,  
Justine

---

<div class="post-metadata">

**Author:** ![system](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/2/1/21af5fe23cb6f4579467c66a9ed94e55274ca7bd.svg) [@system](https://forum.qiime2.org/u/system)\
**Post date:** [August 13, 2020, 9:39am UTC](https://forum.qiime2.org/t/is-percentile-normalized-data-appropriate-for-unifrac/15702/6 "2020-08-13T09:39:20Z")

</div>

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
