Hi all,
I have an RNA-Seq experiment with about twenty-patients. The patients are either in the treatment or control group and then also denoted by gender. I am looking to analyze the following contrasts:
- ALL Treatment vs ALL Control (1)
- Male Treatment vs Male Control Female (2)
- Female Treatment vs Female Control (3)
- Male Treatment vs Female Control Female (4)
- Female Treatment vs Male Control (5)
Individuals Group Gender
patient_one T M
patient_two C M
patient_three C M
patient_four C M
...
patient_twenty C M
For contrasts 2-5, I'm having trouble deciding on how to incorporate gender into the model matrix and creating contrasts:
model = model.matrix(~group + gender)
rna_seq_expr = estimateDisp(rna_seq_expr, model,)
contrast = makeContrasts(TM - CS, levels = model)
rna_seq_exp = glmQLFit(rna_seq_expr, model)
rna_seq_exp = glmQLFTest(rna_seq_expr, contrast = contrast)
Thanks!