Hello,
I would like to use “limma” for my Affy gene expression analysis. My dataset is in “expressionset” format.
I would like to include two variables in my design matrix: 4-level treatment and 2-level sex. The goal is to test the treatment groups against “WT" while controlling for sex ; (treatment effect independent from sex).
Dataset:
> class(ExpressionSet) [1] "ExpressionSet" attr(,"package") [1] “Biobase"
Includes expression data, phenoData and annotation.
Execution:
pd <- pData(phenoData(ExpressionSet)) 
design <- model.matrix(~0+Treatment+Sex, pd, ref="WT")
colnames(design) <- gsub("Treatment|Sex", "", colnames(design))
fit <- lmFit(exprs(ExpressionSet), design)
ebFit <- eBayes(fit)
Design 
                    S_S   S_Veh   WT_S            WT            M
1112F-1         0       1          0                   0               0
1112F-2          0       1         0                  0                1
1112F-3          0       1         0                  0                1
1112F-4          0       1         0                  0                0
1112F-5          0       0         1                  0                 0 
Etc..
[1] 1 1 1 1 2
attr(,"contrasts")
attr(,"contrasts”)$Treatment
[1] "contr.treatment"
attr(,"contrasts")$Sex
[1] "contr.treatment"
It seems “WT” is not recognized as reference. My understanding is that I should not see “WT" in the design matrix if it is a reference.
1. Would you please advise how to fix the reference?
2. I am also wondering if my setup is correct for testing treatment and controlling for sex.
3. What do I test without the reference group in the design above? What is the interpretation of for instance, the result of coef=1 (tt <- topTable(ebFit, number=10, coef=1, adjust = "fdr”) when no (ref= ) in the design.
Thanks a lot for your help and time.
Anita
