# Adding library sizes per group info in feature table interactive plots

**URL:** <https://forum.qiime2.org/t/adding-library-sizes-per-group-info-in-feature-table-interactive-plots/1504>\
**Category:** Ideas and Suggestions\
**Tags:** rarefaction, feature-table\
**Created:** [October 15, 2017, 1:13am UTC](https://forum.qiime2.org/t/adding-library-sizes-per-group-info-in-feature-table-interactive-plots/1504 "2017-10-15T01:13:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mehrbod\_Estaki](https://forum.qiime2.org/user_avatar/forum.qiime2.org/mehrbod_estaki/32/4001_2.png) [@Mehrbod\_Estaki](https://forum.qiime2.org/u/Mehrbod_Estaki)\
**Post date:** [October 15, 2017, 1:13am UTC](https://forum.qiime2.org/t/adding-library-sizes-per-group-info-in-feature-table-interactive-plots/1504/1 "2017-10-15T01:13:16Z")

</div>

Hello,

On the topic of deciding whether to rarefy or use some other method of normalization, one recommendation recently stated in [Knight et al. 2017](https://microbiomejournal.biomedcentral.com/articles/10.1186/s40168-017-0237-y):

> Prior to analysis, researchers should assess the difference in average library size between groups. If large variability in library sizes across samples is observed, then rarefying is useful as a method of normalization.

I know there's a lot more to this than just that but this would be a useful feature to add to the interactive plots of feature-table.qzv  
Just being able to visually see the average library sizes would be a good starting point!  
Thanks

---

<div class="post-metadata">

**Author:** ![Nicholas\_Bokulich](https://forum.qiime2.org/user_avatar/forum.qiime2.org/nicholas_bokulich/32/19937_2.png) [@Nicholas\_Bokulich](https://forum.qiime2.org/u/Nicholas_Bokulich)\
**Post date:** [October 16, 2017, 5:58pm UTC](https://forum.qiime2.org/t/adding-library-sizes-per-group-info-in-feature-table-interactive-plots/1504/3 "2017-10-16T17:58:51Z")

</div>

Hi @Mehrbod_Estaki,  
Thanks for posting! This feature is already available in [`alpha-rarefaction`](https://docs.qiime2.org/2017.9/plugins/available/diversity/alpha-rarefaction/). That visualizer performs alpha rarefaction at multiple depths for each samples, and supports grouping samples by metadata column values. Please give that method a try and let us know if you have additional needs that are not covered by that action, or any questions!

---

<div class="post-metadata">

**Author:** ![Mehrbod\_Estaki](https://forum.qiime2.org/user_avatar/forum.qiime2.org/mehrbod_estaki/32/4001_2.png) [@Mehrbod\_Estaki](https://forum.qiime2.org/u/Mehrbod_Estaki)\
**Post date:** [October 16, 2017, 8:19pm UTC](https://forum.qiime2.org/t/adding-library-sizes-per-group-info-in-feature-table-interactive-plots/1504/5 "2017-10-16T20:19:45Z")

</div>

Aha. This is perfect/exactly what I was referring to. Thanks @Nicholas_Bokulich ! Having used core-metrics before I totally didn't realize this was available as a stand alone function. I wonder if it might be a useful addition to the core-metrics defaults since these figures are always submitted along with papers anyways, at least as supplementary material. Though on the other hand it would require a bunch of new inputs and parameters and take away from the simplicity of core-metrics...better just keep as is 😛
