<p>I'm not sure I understand &quot;I would like to run GSEA or a similar analysis to find WGCNCA clusters that differ based on the interaction between the two main variables&quot;. I would run an association analysis (regression) for module eigengenes and the appropriate interaction term. The (most) significant modules are your candidates. This step is simply regression (in the simplest case a linear model should be sufficient), no GSEA needed. You can then subject the identified modules to GSEA or similar to get an idea of their biological function.</p>

CC BY-SA 4.0
2020-10-09T01:39:32.927Z
Thanks for the input and sorry for the late response. I've been looking into association analyses for modules/eigengenes and I'm thinking of running LRT analyses using GLMs with and without the interaction term of interest. Would you suggest I run separate analyses using each module's eigengene values individually (vs phenotypes) then correcting for multiple hypothesis, or can you recommend a more elegant way to test all modules at once? We would also like to run 3 separate analyses for each of 20 modules based on tissue sample subsets, so running 60 different analyses is not ideal. Thanks.
jfaberha
CC BY-SA 4.0
2020-10-10T03:51:58.153Z
For module eigengenes, a linear model such as ones implemented in limma should be appropriate, no reason to run GLMs. With a linear model, you can simply test the significance of the interaction coefficient which is output by all linear model functions that I know (as long as the full and reduced model only differ by one coefficient). As far as I am aware, the only way to run such association analysis is fitting the models to the eigengenes one by one (perhaps with some empirical Bayes modifications as in limma) and then correcting for multiple comparisons.
Peter Langfelder
CC BY-SA 4.0
2020-09-25T05:42:17.077Z
2020-09-25T05:42:17.077Z
Peter Langfelder
<p>I am working with an RNA-seq dataset generated from a complex experimental design. Our main question is focused on the interaction between two variables, one (INJ) with two conditions (L,S) and the other (SOC) with four conditions (A,B,C,D). We also have a third variable for tissue type (TIS) from 3 tissues (H,N,T), although we are not interested in this variable for this particular question.</p>
<p>We were able extract DE genes underlying the interaction of interest in DESeq2 using an LRT test. We also ran WGCNA to get gene clusters and looked at trait correlations. Using these WGNCA clusters and VST normalized count data, I would like to run GSEA or a similar analysis to find WGCNCA clusters that differ based on the interaction between the two main variables.</p>
<p>What I've tried so far was generating a pseudo-variable that is a combination of INJ and SOC with 8 separate conditions for running in GSEA, but this doesn't quite get at the interaction between variables since we really want to see if the effect of INJ differs between SOC conditions.</p>
<p>One thing I was thinking was running a GSEA-like analysis on log2 ratios between INJ states for each SOC condition, but these would have to be summary statistics for groups of samples and I would lose the variance of expression within groups (maybe that doesn't matter though for exploratory analysis?). This would also reduce my &quot;sample&quot; count to 1 per condition, which isn't ideal for this type of analysis and I would probably have to look at differences between gene sets instead of phenotypes for more robust stats.</p>
<p>Any thoughts on ways to do this? I don't need to use GSEA if there is another analysis I could run on gene sets that allows for more complex experimental models. Thanks in advance.</p>

CC BY-SA 4.0
2020-09-29T08:29:46.023Z
You could read about differential co-expression. But that would be feasible depending on the number of samples you have for each condition...
llrs
<rna-seq><wgcna><gsea><interactions>
Running GSEA or comparable analysis with multiple variable interaction?
# Running GSEA or comparable analysis with multiple variable interaction?

(Asked by: username_0 on 2020-09-25)

I am working with an RNA-seq dataset generated from a complex experimental design. Our main question is focused on the interaction between two variables, one (INJ) with two conditions (L,S) and the other (SOC) with four conditions (A,B,C,D). We also have a third variable for tissue type (TIS) from 3 tissues (H,N,T), although we are not interested in this variable for this particular question.

We were able extract DE genes underlying the interaction of interest in DESeq2 using an LRT test. We also ran WGCNA to get gene clusters and looked at trait correlations. Using these WGNCA clusters and VST normalized count data, I would like to run GSEA or a similar analysis to find WGCNCA clusters that differ based on the interaction between the two main variables.

What I've tried so far was generating a pseudo-variable that is a combination of INJ and SOC with 8 separate conditions for running in GSEA, but this doesn't quite get at the interaction between variables since we really want to see if the effect of INJ differs between SOC conditions.

One thing I was thinking was running a GSEA-like analysis on log2 ratios between INJ states for each SOC condition, but these would have to be summary statistics for groups of samples and I would lose the variance of expression within groups (maybe that doesn't matter though for exploratory analysis?). This would also reduce my "sample" count to 1 per condition, which isn't ideal for this type of analysis and I would probably have to look at differences between gene sets instead of phenotypes for more robust stats.

Any thoughts on ways to do this? I don't need to use GSEA if there is another analysis I could run on gene sets that allows for more complex experimental models. Thanks in advance.

**Tags:** rna-seq, wgcna, gsea, interactions
> **Comments:**
> **username_1**: You could read about differential co-expression. But that would be feasible depending on the number of samples you have for each condition...  

---

## 1 answers

### Answer by username_2 on 2020-09-25. Score: 2 | Accepted answer

I'm not sure I understand "I would like to run GSEA or a similar analysis to find WGCNCA clusters that differ based on the interaction between the two main variables". I would run an association analysis (regression) for module eigengenes and the appropriate interaction term. The (most) significant modules are your candidates. This step is simply regression (in the simplest case a linear model should be sufficient), no GSEA needed. You can then subject the identified modules to GSEA or similar to get an idea of their biological function.

> **Comments:**
> **username_0**: Thanks for the input and sorry for the late response. I've been looking into association analyses for modules/eigengenes and I'm thinking of running LRT analyses using GLMs with and without the interaction term of interest. Would you suggest I run separate analyses using each module's eigengene values individually (vs phenotypes) then correcting for multiple hypothesis, or can you recommend a more elegant way to test all modules at once? We would also like to run 3 separate analyses for each of 20 modules based on tissue sample subsets, so running 60 different analyses is not ideal. Thanks.  
> **username_2**: For module eigengenes, a linear model such as ones implemented in limma should be appropriate, no reason to run GLMs. With a linear model, you can simply test the significance of the interaction coefficient which is output by all linear model functions that I know (as long as the full and reduced model only differ by one coefficient). As far as I am aware, the only way to run such association analysis is fitting the models to the eigengenes one by one (perhaps with some empirical Bayes modifications as in limma) and then correcting for multiple comparisons.  

---

