# Detected zero variance balances while performing "gneiss ols-regression"

**URL:** <https://forum.qiime2.org/t/detected-zero-variance-balances-while-performing-gneiss-ols-regression/4154>\
**Category:** User Support\
**Tags:** feature-classifier, feature-table, metadata, taxonomy, filtering\
**Created:** [May 15, 2018, 3:02am UTC](https://forum.qiime2.org/t/detected-zero-variance-balances-while-performing-gneiss-ols-regression/4154 "2018-05-15T03:02:29Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![mortonjt](https://forum.qiime2.org/user_avatar/forum.qiime2.org/mortonjt/32/3488_2.png) [@mortonjt](https://forum.qiime2.org/u/mortonjt)\
**Post date:** [May 17, 2018, 11:17pm UTC](https://forum.qiime2.org/t/detected-zero-variance-balances-while-performing-gneiss-ols-regression/4154/11 "2018-05-17T23:17:47Z")

</div>

@dheeman00, looks like you will need to filter out those zero-variance features. I'd take a look at the `qiime feature-table filter-features` command

There are a couple of posts that discuss this problem in more detail

> [@Integer division or modulo by zero Error](https://forum.qiime2.org/t/integer-division-or-modulo-by-zero-error/3620):
>
> Hello, After running gneiss I identified two outliers by looking at the residual plot and also at the proportion plot. I wanted to remove them from the analysis because they are quite different values from the rest so I filtered those two samples from the table with: qiime feature-table filter-samples --i-table f-table.qza --m-metadata-file Mapping-file.tsv --p-where "SampleID IN ('1157B\_FR900\_T4', '1162B\_FR900\_T2')" --o-filtered-table gf-table.qza and then rerun gneiss, but when I run the re…

> [@Gneiss zero balance error](https://forum.qiime2.org/t/gneiss-zero-balance-error/1857):
>
> Hi Folks, I am getting the zero balance error when my balances aren't zero... General Info: QIIME version: qiime2-2017.10 Command: qiime gneiss ols-regression \ --p-formula "Species+Soil\_new" \ --i-table balances.qza \ --i-tree hierarchy.qza \ --m-metadata-file my-metadata.tsv \ --o-visualization regression\_summary.qzv Error: Detected zero variance balances... Balance table summary: no zeros (attached) [feature-table\_summary.txt](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/flex002/uploads/qiime21/original/1X/a6c072d9d194ed81a05c3873a471112f0c6b3d67.txt) (7.8 KB) I explored both feature table (prior to g…

---

_[View the full topic](https://forum.qiime2.org/t/detected-zero-variance-balances-while-performing-gneiss-ols-regression/4154)._
