# Rarefaction vs Rarefying and when to use them in your analysis pipeline

**URL:** <https://forum.qiime2.org/t/rarefaction-vs-rarefying-and-when-to-use-them-in-your-analysis-pipeline/33251>\
**Category:** General Discussion\
**Tags:** q2-boots\
**Created:** [June 4, 2025, 7:19pm UTC](https://forum.qiime2.org/t/rarefaction-vs-rarefying-and-when-to-use-them-in-your-analysis-pipeline/33251 "2025-06-04T19:19:55Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![zippyzo](https://forum.qiime2.org/user_avatar/forum.qiime2.org/zippyzo/32/20983_2.png) [@zippyzo](https://forum.qiime2.org/u/zippyzo)\
**Post date:** [June 4, 2025, 7:19pm UTC](https://forum.qiime2.org/t/rarefaction-vs-rarefying-and-when-to-use-them-in-your-analysis-pipeline/33251/1 "2025-06-04T19:19:55Z")

</div>

Dear qiime2 community,

I entered the microbiome analysis world this year and just came to the understanding that **Rarefaction** and _ **Rarefying** _ are NOT the same thing, so I have been rarefying my data when I thought that I was performing rarefaction (insert scream of horror 😱). With this realization in hand I have attempted to understand what the differences are and when to apply them... I would greatly appreciate input if you have a moment!

To summarize my understanding so far:

**Rarefaction** = repeated subsampling to a specific sequencing depth that computes a single mean value for each sample.  
_ **Rarefying** _ = a single subsampling to a specific sequencing depth that computes a value for each ASV for each sample.

My understanding is that there has been a lot of confusion in the field surrounding both these terms (conflating the two.. #relatable 🥲), but the current consensus seems to be that **Rarefaction** is a valid way (and perhaps even the best way) to correct for differences in sampling depth when calculating diversity metrics, as the initial paper that suggested against **Rarefaction** actually used _ **Rarefying** _ instead (though there were other issues too..).

My questions are as follows:

1. Although **Rarefaction** is a validated way of correcting for sampling depth, _ **Rarefying** _ is not. Is this fair to say?

2. **Rarefaction** can be used for the calculation of beta-diversity and alpha-diversity metrics, but it isn't possible for calculations of differential abundance. Is this not then a problem because we are not correcting for sampling depth in differential abundance analyses? Would this not then give support for performing _ **Rarefying** _ as one could do so, thus correct for sampling depth, and then use it for both diversity metrics and differential abundance calculations?

3. Because **Rarefaction** controls for sampling depth, and CLR transformation controls for the compositionality of data, would it not be fair to apply **Rarefaction** followed by CLR transformation?

Thank you so much in advance for helping me understand these concepts!

kindest regards,  
Zoë

A few papers that I have really appreciated on the topic:  
[https://journals.asm.org/doi/10.1128/msphere.00355-23](https://journals.asm.org/doi/10.1128/msphere.00355-23)  
[https://journals.asm.org/doi/10.1128/msphere.00354-23](https://journals.asm.org/doi/10.1128/msphere.00354-23)

> **[A blueprint for contemporary studies of microbiomes - Microbiome](https://link.springer.com/article/10.1186/s40168-025-02091-0)**
>
> This editorial piece co-authored by the Senior Editors at Microbiome aims to highlight current challenges in the field of environmental and host-associated microbiome research. We also take the opportunity to clarify our expectations for the articles...

---

<div class="post-metadata">

**Author:** ![colinbrislawn](https://forum.qiime2.org/user_avatar/forum.qiime2.org/colinbrislawn/32/6221_2.png) [@colinbrislawn](https://forum.qiime2.org/u/colinbrislawn)\
**Post date:** [June 4, 2025, 8:20pm UTC](https://forum.qiime2.org/t/rarefaction-vs-rarefying-and-when-to-use-them-in-your-analysis-pipeline/33251/2 "2025-06-04T20:20:48Z")

</div>

This is a great post!

My first thought is that the words are too dang similar!

Instead, we could call these 'single subsampling' and 'multiple subsampling', which makes the commonality (computational subsampling) and difference (one time, many times) clear.

'Multiple subsampling' is also called 'bootstrapping', and there is a new Qiime2 plugin that does this!

> **[Introduction 🥾 - q2-boots Documentation](https://q2-boots.readthedocs.io/en/latest/)**

---

<div class="post-metadata">

**Author:** ![gregcaporaso](https://forum.qiime2.org/user_avatar/forum.qiime2.org/gregcaporaso/32/17769_2.png) [@gregcaporaso](https://forum.qiime2.org/u/gregcaporaso)\
**Post date:** [June 5, 2025, 1:55pm UTC](https://forum.qiime2.org/t/rarefaction-vs-rarefying-and-when-to-use-them-in-your-analysis-pipeline/33251/3 "2025-06-05T13:55:48Z")

</div>



---

<div class="post-metadata">

**Author:** ![gregcaporaso](https://forum.qiime2.org/user_avatar/forum.qiime2.org/gregcaporaso/32/17769_2.png) [@gregcaporaso](https://forum.qiime2.org/u/gregcaporaso)\
**Post date:** [June 9, 2025, 4:46pm UTC](https://forum.qiime2.org/t/rarefaction-vs-rarefying-and-when-to-use-them-in-your-analysis-pipeline/33251/4 "2025-06-09T16:46:55Z")

</div>

Hi @zippyzo, Thanks for your post!

> Although **Rarefaction** is a validated way of correcting for sampling depth, _ **Rarefying** _ is not. Is this fair to say?

Rarefaction is a more reliable approach to performing alpha and beta diversity analysis. Rarefying has been widely used, and tends to produce very similar results to rarefaction\*, but rarefaction is preferable.

@colinbrislawn mentioned q2-boots (see [the paper here](https://f1000research.com/articles/14-87/v1)), which is what I would recommend using. This is illustrated in the gut-to-soil (g2s) tutorial [here](https://amplicon-docs.qiime2.org/en/latest/tutorials/gut-to-soil.html#nXyE3BliNI) - in this case using the `kmer-diversity` action, though `core-metrics` is also a good one to use (docs on `core-metrics`, with examples, [are here](https://library.qiime2.org/plugins/caporaso-lab/q2-boots/overview#q2-action-boots-core-metrics)).

> it isn't possible for calculations of differential abundance

The methods for normalization tend to be specific to differential abundance testing method. Those statistics are complex (I'm not an expert), so I go with what the statisticans who develop them recommend.

> Because **Rarefaction** controls for sampling depth, and CLR transformation controls for the compositionality of data, would it not be fair to apply **Rarefaction** followed by CLR transformation?

This seems reasonable to me, but I'm interested in what others think as well (@jwdebelius - any input on this?).

Right now, it's possible to create `n` rarefied features tables with the [`resample`](https://library.qiime2.org/plugins/caporaso-lab/q2-boots/overview#q2-action-boots-resample) action in boots. We don't have a corresponding action to average these together to create a single table, but if there is a need for that it would be easy enough to add.

I hope this helps!

Notes:  
\*One analysis that hasn't been done yet, but which I think would be interesting, would be to assess how often a given rarefied diversity metric represents an outlier from the distribution of all the diversity metrics that are computed during rarefaction. I think that would help us assess how problematic rarefying tends to be - but regardless, I still believe that rarefaction is preferable. This analysis would be straight-forward to pull off with q2-boots - happy to advise if anyone wants to try it!

---

<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:** [June 9, 2025, 6:30pm UTC](https://forum.qiime2.org/t/rarefaction-vs-rarefying-and-when-to-use-them-in-your-analysis-pipeline/33251/5 "2025-06-09T18:30:11Z")

</div>

Hi @zippyzo and @gregcaporaso

> [@gregcaporaso](#):
>
> > Because **Rarefaction** controls for sampling depth, and CLR transformation controls for the compositionality of data, would it not be fair to apply **Rarefaction** followed by CLR transformation?
> 
> This seems reasonable to me, but I'm interested in what others think as well (@jwdebelius - any input on this?).

I wouldn't recommend rarefaction + CLR. The issue I end up having with rarefaction here is that it introduces artifcial zeros. (We have true 0s from absences, 0s from things that are below the limit of detection, systematic zeros, and now rarefaction zeros.) Since a lot of bias in CLR comes from those zeros, introducing _more_ zeros would not be my preferred appraoch,even if its done through repeated subsampling.

I tend to prefer to apply a filter to my taxa to select things which meet certain abundance and prevalence criteria so that I can be confident that they're detected consistently when I test them. My person critieria are typical 1/rarefaction depth in at least 10% of the samples. This is based on the idea that I in theory want to be able to detect at least 1 read (if present) in any sample, so if my shallowest sample is slightly deeper than that depth, I should - theoretically - be able to detect it. I think you could also argue that you need to go half the rarefaction depth (at least 2 reads detected in the shallowest sample, although for the life of me, I cant recall the name of this principle.) I use a 10% threshhold because I will sometimes use the same critieria for other transforms, like a presence/absence model, and in those cases, my RR models dont work well for super rare taxon.

The filtering function is implemented in [`filter-features-conditionally`](https://amplicon-docs.qiime2.org/en/latest/references/plugins/feature-table.html#q2-action-feature-table-filter-features-conditionally)

> [@gregcaporaso](#):
>
> Right now, it's possible to create `n` rarefied features tables with the [`resample`](https://library.qiime2.org/plugins/caporaso-lab/q2-boots/overview#q2-action-boots-resample) action in boots. We don't have a corresponding action to average these together to create a single table, but if there is a need for that it would be easy enough to add.

You can do this with q2-feature-table [merge](https://amplicon-docs.qiime2.org/en/latest/references/plugins/feature-table.html#q2-action-feature-table-merge) using the `average` as your overlap method. Im not sure how float values are handled there, but as a first order solution, you can already do it?

Best,  
Justine

---

<div class="post-metadata">

**Author:** ![zippyzo](https://forum.qiime2.org/user_avatar/forum.qiime2.org/zippyzo/32/20983_2.png) [@zippyzo](https://forum.qiime2.org/u/zippyzo)\
**Post date:** [June 10, 2025, 10:51am UTC](https://forum.qiime2.org/t/rarefaction-vs-rarefying-and-when-to-use-them-in-your-analysis-pipeline/33251/6 "2025-06-10T10:51:07Z")

</div>

Thank you so much @jwdebelius, @gregcaporaso, @colinbrislawn for your insight and discussion! I greatly appreciate you taking the time to reply to my queries, it truly means a lot.

@jwdebelius, I find your filtering strategy very interesting and had a few follow up questions if you have a moment!

> [@jwdebelius](#):
>
> My person critieria are typical 1/rarefaction depth in at least 10% of the samples

1. So, to make sure I'm understanding, your strategy combines both abundance and prevalence filtering within the same metric?, eg. if you had 10,000 as your rarefaction depth you would use an _abundance filter_ of 1/10,000 = 0.001 -- requiring an abundance of at least 0.001 in at least 10% (_prevalence filtering_) of your samples? Put another way, you are removing features that have an abundance of 0-0.001 in over 90% of samples.

2. At what stage do you apply this filtering? Before or after Rarefaction?

> [@colinbrislawn](#):
>
> Instead, we could call these 'single subsampling' and 'multiple subsampling', which makes the commonality (computational subsampling) and difference (one time, many times) clear.

I really like this idea @colinbrislawn !

> [@gregcaporaso](#):
>
> Right now, it's possible to create `n` rarefied features tables with the [`resample`](https://library.qiime2.org/plugins/caporaso-lab/q2-boots/overview#q2-action-boots-resample) action in boots. We don't have a corresponding action to average these together to create a single table, but if there is a need for that it would be easy enough to add.

@gregcaporaso, I think I'm confused, as I thought that for Rarefaction to work it needs to provide an average value to allow for Alpha and Beta analyses on the data? Is there a different strategy that the bootstrapping plugin uses? Or is it that the alpha and beta analyses can handle the n rarefied feature tables ie. for each metric they compute a value for each Rarefaction table individually, and then for the output it averages them all providing a final value for statistical analyses? 🤔

Thank you so much!  
Zoë

---

<div class="post-metadata">

**Author:** ![gregcaporaso](https://forum.qiime2.org/user_avatar/forum.qiime2.org/gregcaporaso/32/17769_2.png) [@gregcaporaso](https://forum.qiime2.org/u/gregcaporaso)\
**Post date:** [June 10, 2025, 1:21pm UTC](https://forum.qiime2.org/t/rarefaction-vs-rarefying-and-when-to-use-them-in-your-analysis-pipeline/33251/7 "2025-06-10T13:21:25Z")

</div>

> [@zippyzo](#):
>
> is it that the alpha and beta analyses can handle the n rarefied feature tables ie. for each metric they compute a value for each Rarefaction table individually, and then for the output it averages them all providing a final value for statistical analyses? 🤔

Yes, that's exactly it. We compute `n` subsampled tables, compute the diversity metrics on each table, and then average the results. Here's an illustration of the workflow for beta diversity calculations ([source](https://doi.org/10.12688/f1000research.156295.1)):

 ![q2-boots-figure-1c](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/e/b/ebb78be6320dff6efb1f2ffdbe7188266661ce91.jpeg)

---

<div class="post-metadata">

**Author:** ![gregcaporaso](https://forum.qiime2.org/user_avatar/forum.qiime2.org/gregcaporaso/32/17769_2.png) [@gregcaporaso](https://forum.qiime2.org/u/gregcaporaso)\
**Post date:** [June 10, 2025, 1:22pm UTC](https://forum.qiime2.org/t/rarefaction-vs-rarefying-and-when-to-use-them-in-your-analysis-pipeline/33251/8 "2025-06-10T13:22:15Z")

</div>



---

<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:** [June 10, 2025, 4:10pm UTC](https://forum.qiime2.org/t/rarefaction-vs-rarefying-and-when-to-use-them-in-your-analysis-pipeline/33251/9 "2025-06-10T16:10:37Z")

</div>

Hi @zippyzo,

I'm going to re-iterate: I do not recommend rarefaction or any kind of random feature subsampling with compositional data transforms. There's fairly good literature about why this isn't recommended, but most of it comes down to the fact that subsampling is going to create zeros. And, zeros are bad for log ratio transforms.

The filtering approach serves a parallel function. Instead of trying to normalize away differences in sequencing depth and sampling stochasticity, we define a threshhold for which we are confident we observe a feature and can test it. It's a statement around statistical power, but also confidence in the data.

So, I would **not** apply a conditional filter in combinatination with any subsampling in 95% of circumstances. There are a few outliers, which are specific applications, but in general, I do either-or.

If I am going to filter my data before rarefaction, for example, if I want to exclude mitochondria or the spike-in my colleague forgot to tell me she stuck in, then I'd do that first and subsample the remainder. That way, I still get an even depth (my goal with rarefaction).

Best,  
Justine

---

<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:** [June 10, 2025, 4:10pm UTC](https://forum.qiime2.org/t/rarefaction-vs-rarefying-and-when-to-use-them-in-your-analysis-pipeline/33251/10 "2025-06-10T16:10:42Z")

</div>



---

<div class="post-metadata">

**Author:** ![zippyzo](https://forum.qiime2.org/user_avatar/forum.qiime2.org/zippyzo/32/20983_2.png) [@zippyzo](https://forum.qiime2.org/u/zippyzo)\
**Post date:** [June 10, 2025, 4:34pm UTC](https://forum.qiime2.org/t/rarefaction-vs-rarefying-and-when-to-use-them-in-your-analysis-pipeline/33251/11 "2025-06-10T16:34:22Z")

</div>

Thank you so much for clarifying @gregcaporaso ! I'm very excited to give q2-boots a go and look into it more thoroughly.

Ohhhh @jwdebelius -- apologies for the confusion, thank you so much for re-iterating that for me! I can clearly understand now that you were talking about rarefaction **OR** filtering + log ratio transforms. I really appreciate you clarifying that for me.

kindest regards,  
Zoë

---

<div class="post-metadata">

**Author:** ![gregcaporaso](https://forum.qiime2.org/user_avatar/forum.qiime2.org/gregcaporaso/32/17769_2.png) [@gregcaporaso](https://forum.qiime2.org/u/gregcaporaso)\
**Post date:** [June 10, 2025, 4:40pm UTC](https://forum.qiime2.org/t/rarefaction-vs-rarefying-and-when-to-use-them-in-your-analysis-pipeline/33251/12 "2025-06-10T16:40:37Z")

</div>

@zippyzo - one thing I forgot to mention: q2-boots isn't install by default in the amplicon distribution at the moment. You should follow the installation instructions on the top-right of [this page](https://library.qiime2.org/plugins/caporaso-lab/q2-boots).

---

<div class="post-metadata">

**Author:** ![zippyzo](https://forum.qiime2.org/user_avatar/forum.qiime2.org/zippyzo/32/20983_2.png) [@zippyzo](https://forum.qiime2.org/u/zippyzo)\
**Post date:** [June 10, 2025, 5:59pm UTC](https://forum.qiime2.org/t/rarefaction-vs-rarefying-and-when-to-use-them-in-your-analysis-pipeline/33251/13 "2025-06-10T17:59:01Z")

</div>

@gregcaporaso - good to know, thanks for the heads up!

kindest regards,  
Zoë

---

<div class="post-metadata">

**Author:** ![arwqiime](https://forum.qiime2.org/user_avatar/forum.qiime2.org/arwqiime/32/12728_2.png) [@arwqiime](https://forum.qiime2.org/u/arwqiime)\
**Post date:** [July 9, 2025, 8:04am UTC](https://forum.qiime2.org/t/rarefaction-vs-rarefying-and-when-to-use-them-in-your-analysis-pipeline/33251/14 "2025-07-09T08:04:40Z")

</div>

Hello @jwdebelius and @gregcaporaso for your great comments to @zippyzo and putting this into a context with q2-boots.  
I was following the `q2-feature-table merge` with `average` methods as suggested to create a single table from the resampled tables of `q2-boots`.

May I include @cmartino in my follow-up question that came up from this comment:

> [@jwdebelius](#):
>
> I wouldn't recommend rarefaction + CLR. The issue I end up having with rarefaction here is that it introduces artifcial zeros. (We have true 0s from absences, 0s from things that are below the limit of detection, systematic zeros, and now rarefaction zeros.) Since a lot of bias in CLR comes from those zeros, introducing _more_ zeros would not be my preferred appraoch,even if its done through repeated subsampling.

I am using `q2-gemelli` in beta analyses. Do these concerns of introducing more zero values into the average table also apply to the `rpca` method of `q2-gemelli` or is the matrix completion step here a good way to cope with (more) zeros?

Best,

---

<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 9, 2025, 1:43pm UTC](https://forum.qiime2.org/t/rarefaction-vs-rarefying-and-when-to-use-them-in-your-analysis-pipeline/33251/15 "2025-07-09T13:43:08Z")

</div>

Hi @arwqiime,

rPCA is a CLR-based ordination. You want to use your filtered feature table, not the rarefied one.

Best,  
Justine

---

<div class="post-metadata">

**Author:** ![auntiedelia](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/a/d6d6ee/32.png) [@auntiedelia](https://forum.qiime2.org/u/auntiedelia)\
**Post date:** [October 16, 2025, 7:24am UTC](https://forum.qiime2.org/t/rarefaction-vs-rarefying-and-when-to-use-them-in-your-analysis-pipeline/33251/16 "2025-10-16T07:24:12Z")

</div>

Hi everyone! Thanks for such an interesting discussion. I wanted to ask a quick and perhaps very basic follow-up question. On the moving-pictures tutorial for qiime2, when you use core-metrics-phylogenetic to get some diversity measures, is that **rarefying** , rather than **rarefaction?** If so, is there a reason they use **rarefying** there or is **rarefaction** just a newer technique which will take time for adoption. I’m a student who is figuring a lot of this out on the go, so I really appreciate everyone’s advice and help!

---

<div class="post-metadata">

**Author:** ![cherman2](https://forum.qiime2.org/user_avatar/forum.qiime2.org/cherman2/32/17129_2.png) [@cherman2](https://forum.qiime2.org/u/cherman2)\
**Post date:** [October 16, 2025, 2:56pm UTC](https://forum.qiime2.org/t/rarefaction-vs-rarefying-and-when-to-use-them-in-your-analysis-pipeline/33251/17 "2025-10-16T14:56:21Z")

</div>

Hi @auntiedelia,

> [@auntiedelia](#):
>
> n the moving-pictures tutorial for qiime2, when you use core-metrics-phylogenetic to get some diversity measures, is that **rarefying** , rather than **rarefaction?**

The moving pictures tutorial is **rarefying** not preforming **rarefaction**. Rarefaction itself is not a particularly new technique, we have had it implemented in the alpha-rarefaction method for awhile (which you see in the moving pictures tutorial). Prior to about a year ago, we didnt have any methods that generated rarefaction based diversity metrics. Now, we have released q2-boots and it is installable from the q2-library or will be available in the base qiime2 env after this next release.

Anyway circling back to this question:

> [@auntiedelia](#):
>
> If so, is there a reason they use **rarefying** there or is **rarefaction** just a newer technique which will take time for adoption.

We rarefy in the moving pictures tutorial because that was the diversity generating method we had when we wrote the moving picture tutorials. If you look at some of our newer tutorials like the gut-to-soil tutorial you will see examples of rarefaction based diversity metrics!

---

<div class="post-metadata">

**Author:** ![MarkoFlow](https://forum.qiime2.org/user_avatar/forum.qiime2.org/markoflow/32/21802_2.png) [@MarkoFlow](https://forum.qiime2.org/u/MarkoFlow)\
**Post date:** [May 22, 2026, 2:11pm UTC](https://forum.qiime2.org/t/rarefaction-vs-rarefying-and-when-to-use-them-in-your-analysis-pipeline/33251/18 "2026-05-22T14:11:34Z")

</div>

Helpful explanation. Calling them single subsampling and repeated subsampling makes the difference much clearer than the usual rarefaction/rarefying terminology.

---

<div class="post-metadata">

**Author:** ![lizgehret](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lizgehret/32/17128_2.png) [@lizgehret](https://forum.qiime2.org/u/lizgehret)\
**Post date:** [May 22, 2026, 2:11pm UTC](https://forum.qiime2.org/t/rarefaction-vs-rarefying-and-when-to-use-them-in-your-analysis-pipeline/33251/19 "2026-05-22T14:11:49Z")

</div>


