Hi all,
I'm in the process of analysing my RNASeq data and had a couple of question about setting up the model matrix to get the comparisons I want.
First of all my experimental setup is looking at genes that respond to diet in males and females.
> Protein-Female
> Carbohydrate-Female
> Protein-Male
>Carbohydrate-Male
the model matrix I have setup is:
> des1
Fem.P Male.P Fem.C Male.C
1 1 0 0 0
2 1 0 0 0
3 1 0 0 0
4 0 1 0 0
5 0 1 0 0
6 0 0 1 0
7 0 0 1 0
8 0 0 1 0
9 0 0 0 1
10 0 0 0 1
11 0 0 0 1
to look at differences between the diets within each sex I have done the contrast:
FemC-FemP and MaleC-MaleP in separate analyses.
I am interested in finding out the genes that do different things in males and females in response to diet (sex x diet interaction)
What contrast do I do to get to this question?
I was thinking something like:
makeContrast((Fem.C-Fem.P)-(Male.C-Male.P), level=des1)
is this correct?
thanks!!