# Gneiss ols-regression formula for building linear models in differential analysis

**URL:** <https://forum.qiime2.org/t/gneiss-ols-regression-formula-for-building-linear-models-in-differential-analysis/12758>\
**Category:** User Support\
**Tags:** gneiss\
**Created:** [December 5, 2019, 2:39pm UTC](https://forum.qiime2.org/t/gneiss-ols-regression-formula-for-building-linear-models-in-differential-analysis/12758 "2019-12-05T14:39:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sparkle](https://forum.qiime2.org/user_avatar/forum.qiime2.org/sparkle/32/6789_2.png) [@Sparkle](https://forum.qiime2.org/u/Sparkle)\
**Post date:** [December 5, 2019, 2:39pm UTC](https://forum.qiime2.org/t/gneiss-ols-regression-formula-for-building-linear-models-in-differential-analysis/12758/1 "2019-12-05T14:39:33Z")

</div>

Hello!  
I'm finally close to the end of my metagenomics analysis, for which I'm trying to perform a differential analysis through gneiss, to get an oveview about differences among samples. I've used ANCOM too, but I'm trying both approaches.  
I'm using [this tutorial](https://docs.qiime2.org/2019.10/tutorials/gneiss/).

As suggested, first, I've performed correlation clustering with _qiime gneiss correlation-clustering_ , and built linear models with balances and the plugin _qiime gneiss ilr-hierarchical_.  
I'm now about to use _qiime gneiss ols-regression_

In the tutorial, this is the suggested code:

> qiime gneiss ols-regression   
> --p-formula "Subject+Sex+Age+BMI+sCD14ugml+LBPugml+LPSpgml"   
> --i-table balances.qza   
> --i-tree hierarchy.qza   
> --m-metadata-file sample-metadata.tsv   
> --o-visualization regression\_summary.qzv

And this is where I got lost, more specifically, at the exact meaning of that formula. Apparently, the first four terms represent the 'categorial' type columns of my metadata file, but I can't figure out what the additional terms CD14ugml, LBPugml, LPSpgml are and what those letters stand for.

If I try to run the plugin and still include them in the formula, I get:

Plugin error from gneiss:

> Error evaluating factor: NameError: name 'LPSpgml' is not defined  
> Replicate+Site+Soil+sCD14ugml+LBPugml+LPSpgml

I was able to run the plugin with just the columns names of my metadata file, but I'd like to learn more about such terms. What do they represent and how can I customize them?

Thanks in advance!

---

<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 5, 2019, 3:11pm UTC](https://forum.qiime2.org/t/gneiss-ols-regression-formula-for-building-linear-models-in-differential-analysis/12758/2 "2019-12-05T15:11:20Z")

</div>

> [@Sparkle](#):
>
> I was able to run the plugin with just the columns names of my metadata file, but I’d like to learn more about such terms. What do they represent and how can I customize them?

These formula terms should be column headers in your own sample metadata file. In the tutorial you are following these are specific to the metadata used in that tutorial. What do they mean? Look like they are measurements of [CD14](https://en.wikipedia.org/wiki/CD14), [LBP](https://en.wikipedia.org/wiki/Lipopolysaccharide-binding_protein), and [LPS](https://en.wikipedia.org/wiki/Lipopolysaccharide) in those samples (or maybe corresponding serum samples collected from the same patient at the same time point?)

So to customize you should choose meaningful metadata that you wish to test in your own experiment... it will be different each time! Looks like you have the right idea... you grabbed terms like "Site" and "Soil" that are going to be meaningful to your experiment.

Good luck!

---

<div class="post-metadata">

**Author:** ![Sparkle](https://forum.qiime2.org/user_avatar/forum.qiime2.org/sparkle/32/6789_2.png) [@Sparkle](https://forum.qiime2.org/u/Sparkle)\
**Post date:** [December 5, 2019, 3:19pm UTC](https://forum.qiime2.org/t/gneiss-ols-regression-formula-for-building-linear-models-in-differential-analysis/12758/3 "2019-12-05T15:19:21Z")

</div>

Thank you, I didn't download the sample data and got confused: such terms didn't look like metadata column names but more like statistical parameters...at least according to their names. I think the formula mentioned in the tutorial right above the code I copied here also confused me, making me believe there were some strange parameters I was unaware of involved (in fact, the letters which confused me were only concentrations...)

The terms are all present [in the sample metadata.](https://s3-us-west-2.amazonaws.com/qiime2-data/2019.10/tutorials/gneiss/sample-metadata.tsv)  
I guess I'll just use the most relevant ones in my metadata file then!

Thanks for your answer!

---

<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:** [January 5, 2020, 9:19pm UTC](https://forum.qiime2.org/t/gneiss-ols-regression-formula-for-building-linear-models-in-differential-analysis/12758/4 "2020-01-05T21:19:24Z")

</div>

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