# diversity metrics and batch effects

**URL:** https://forum.qiime2.org/t/diversity-metrics-and-batch-effects/12717
**Category:** General Discussion
**Created:** [December 3, 2019, 9:19pm UTC](https://forum.qiime2.org/t/diversity-metrics-and-batch-effects/12717 "2019-12-03T21:19:29Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [December 4, 2019, 4:46pm UTC](https://forum.qiime2.org/t/diversity-metrics-and-batch-effects/12717/2 "2019-12-04T16:46:23Z")

</div>

Hi @yipinto,

> [@yipinto](#):
>
> I was thinking to filter batch specific features (with its pros and cons).

I think that approach is all cons, UNLESS if the contaminant features you are filtering are clearly contaminants, e.g., known reagent contaminants or other features that you can positively say will not be found in your samples.

> [@yipinto](#):
>
> I’m not sure if it safe to use percentile-normalized “counts” for diversity metrics.

cc: @cduvallet

> [@yipinto](#):
>
> Any other idea to deal with batch-effects?

See here for some other ideas:

> [@Merging denoised outputs](https://forum.qiime2.org/t/merging-denoised-outputs/12722/2):
>
> Welcome back @Fabs! Yes indeed this looks like a typical batch effect issue. Note that batch effects will be most pronounced with Jaccard distance, since it is measuring the proportion of features that are NOT shared by each pair of samples and if you have even the most subtle differences between runs (say, the sequences could be identical but 1 nt longer in one run) then Jaccard distances will all == 1.0. The solution? The best you can do is attempt to standardize the processing between the…

---

_[View the full topic](https://forum.qiime2.org/t/diversity-metrics-and-batch-effects/12717)._
