Hi all,
I am curious on how to go about setting up proper contrasts to test for interactions. The experimental design I have is
- 2 diets (B & E)
- 2 sexes (Male vs Fem)
- 2 reproductive status (M vs V)
There are 3 biological replicates, making a total of 24 samples (libraries).
I have setup my design matrix:
des.full2 <- model.matrix(~0+full.mat2)
M.Fem.B M.Fem.E M.Male.B M.Male.E V.Fem.B V.Fem.E V.Male.B V.Male.E
1 0 0 0 0 1 0 0 0
2 0 0 0 0 1 0 0 0
3 0 0 0 0 1 0 0 0
4 1 0 0 0 0 0 0 0
5 1 0 0 0 0 0 0 0
6 1 0 0 0 0 0 0 0
...
So far what I've been doing is individual contrasts to find DE genes between specific treatments, which is working out quite well.
What I'd like to do is get a list of genes that interact significantly between the treatments.
diet
sex
status
diet:sex
[...]
diet:sex:status
For the single factors I've gone for the average across all treatments:
overall.diet <- makeContrasts((M.Fem.B+V.Fem.B+M.Male.B+V.Male.B)/4 - (M.Fem.E+V.Fem.E+M.Male.E+V.Male.E)/4, levels=des.full2)
How would one set up the contrasts for 2-way and 3-way interactions?
Thanks very much for all your help!
Many thanks Aaron for your input,
I guess what we are thinking about is clustering the genes we have based on their significance, and not really dwelling too much into fold change (for this analysis). For instance we want to say "X number of genes respond to diet, sex, status, sex:status ... diet:sex:status". Once we have a list of gens that respond to each treatment/interaction we could use something like MBcluster.Seq to look at their expression patterns across all treatments. Does this sound legit?
It's not a matter of whether you're interested in the log-fold change. What is the scientific meaning of saying that "X number of genes respond to diet:sex:status"? You're basically asking for genes where the three factors exhibit combinatorial non-additive effects - specifically, the effect of each factor differs depending on the combination of the other two factors. If this is of interest to you, then yes, you should test the three-way interaction.