# Gneiss - not creating partitions

**URL:** <https://forum.qiime2.org/t/gneiss-not-creating-partitions/2512>\
**Category:** User Support\
**Tags:** gneiss\
**Created:** [January 10, 2018, 12:18pm UTC](https://forum.qiime2.org/t/gneiss-not-creating-partitions/2512 "2018-01-10T12:18:29Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![stangedal](https://forum.qiime2.org/user_avatar/forum.qiime2.org/stangedal/32/4711_2.png) [@stangedal](https://forum.qiime2.org/u/stangedal)\
**Post date:** [January 10, 2018, 12:18pm UTC](https://forum.qiime2.org/t/gneiss-not-creating-partitions/2512/1 "2018-01-10T12:18:29Z")

</div>

Dear all, I am trying to run Gneiss following the available tutorial. It works just fine for a subset of my data - 18 samples containing 162 different features after some filtering. (I have removed features containing less than 5 sequences, and those found in only 1 sample. After creating partitions with Gneiss I get 15 - y0-y14. It all looks great, and I want to do the same for my main dataset.

So running the exact same commands on a larger dataset - 72 samples, 903 features I end up having 903 y's. And now I am wondering if anyone can help me understand what is happening and what is not happening 🙂 I have run the same samples without filtering features post-dada2, and the same problem is seen.

Solveig

---

<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:** [January 11, 2018, 7:44am UTC](https://forum.qiime2.org/t/gneiss-not-creating-partitions/2512/3 "2018-01-11T07:44:59Z")

</div>

Hi @stangedal. I'm having a little bit of trouble parsing your question. Could you post your code example with some screenshots of your results? Right now the clustering is a bit brute force -- if you have D features, gneiss will calculate D-1 balances with a given a tree.

---

<div class="post-metadata">

**Author:** ![stangedal](https://forum.qiime2.org/user_avatar/forum.qiime2.org/stangedal/32/4711_2.png) [@stangedal](https://forum.qiime2.org/u/stangedal)\
**Post date:** [January 11, 2018, 12:21pm UTC](https://forum.qiime2.org/t/gneiss-not-creating-partitions/2512/4 "2018-01-11T12:21:18Z")

</div>

Indeed 🙂

My featuretable(frequency) contains 72 samples with 1030 features and 3.090.961 sequences.

qiime gneiss add-pseudocount --i-table Utv3\_ASV\_table.qza --p-pseudocount 1 --o-composition-table Utv3\_GneissComp.qza

qiime gneiss correlation-clustering --i-table Utv3\_GneissComp.qza --o-clustering Utv3\_hierarchy.qza

qiime gneiss ilr-transform --i-table Utv3\_GneissComp.qza --i-tree Utv3\_hierarchy.qza --o-balances Utv3\_balances.qza

And it runs along just fine.

Then I run the regression analyses:

qiime gneiss ols-regression --p-formula "disease\_state+sex\_0\_male+smokingstatus\_0\_ex" --i-table Utv3\_balances.qza --i-tree Utv3\_hierarchy.qza --m-metadata-file Utv3mapping\_only3.tsv --o-visualization Utv3\_regressionsumGneiss.qzv

qiime tools view Utv3\_regressionsumGneiss.qzv

And I get to see this:

 ![regcofsum](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/1X/ef1bc2c70331cd6fd19a0766772f15e1b8aabaf9.jpg)

Zooming in at the end it looks like this:

 ![regcofsum_zoom](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/1X/dcd9aff6859ee165d2a8147c1a512ee69584cf3e.png)

And now I need some help to understand what is happening here as I can not make much sense of this... Thank you for your quick reply 🙂  
Solveig

---

<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:** [January 11, 2018, 4:55pm UTC](https://forum.qiime2.org/t/gneiss-not-creating-partitions/2512/5 "2018-01-11T16:55:44Z")

</div>

@stangedal, I'm still confused about your question. What specifically are you confused about? Did the tutorials make sense?

---

<div class="post-metadata">

**Author:** ![stangedal](https://forum.qiime2.org/user_avatar/forum.qiime2.org/stangedal/32/4711_2.png) [@stangedal](https://forum.qiime2.org/u/stangedal)\
**Post date:** [January 12, 2018, 9:40am UTC](https://forum.qiime2.org/t/gneiss-not-creating-partitions/2512/7 "2018-01-12T09:40:13Z")

</div>

In my other attempt running these commands I used a dataset consisting of only 18 samples, 162 features and 766977 sequences. I have run the exact same commands, just using another qza file as input. The regression summary file gives the following:

 ![18sample_regcofsum](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/c/c3c940bced43aa2c8c501db3730b0e955d29b584.png)

What suprised me was that it is so many y in the larger dataset, making the regression coefficients summary impossible to read/see. While my smaller dataset leaves me with y0-y14. I thought something went wrong in the process when I saw the 903 y's in my larger dataset... I guess my question is - does the regression coefficients summary in the first example look right to you?

---

<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:** [January 16, 2018, 5:54am UTC](https://forum.qiime2.org/t/gneiss-not-creating-partitions/2512/9 "2018-01-16T05:54:02Z")

</div>

I typically don't rely on looking at the heatmap for sanity checking. First I'd recommend taking a look at the R^2 values and the MSE cross-validation values to sanity check how good the fit is, and if there is any overfitting.

Once you have established that you are getting reasonable fits, then you can start looking at the heatmap in the regression summary to start tweezing out which balances could be interesting.

The outline of these steps can be found [here](https://docs.qiime2.org/2017.12/tutorials/gneiss/). Does that help guide how to start looking at these plots?

---

<div class="post-metadata">

**Author:** ![stangedal](https://forum.qiime2.org/user_avatar/forum.qiime2.org/stangedal/32/4711_2.png) [@stangedal](https://forum.qiime2.org/u/stangedal)\
**Post date:** [January 19, 2018, 10:48am UTC](https://forum.qiime2.org/t/gneiss-not-creating-partitions/2512/11 "2018-01-19T10:48:19Z")

</div>

OK - that is actually helpful - but I will need some time to get familiar with the analyses! Thank you so much again for your help!

---

<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:** [February 19, 2018, 4:48pm UTC](https://forum.qiime2.org/t/gneiss-not-creating-partitions/2512/12 "2018-02-19T16:48:21Z")

</div>

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