Trying to set up a design matrix for two colour microarry exp. Two treatments A vs B. 10 participant. Each participant has a control/baseline sample of muscle hyb'd with a sample of muscle with treatments A and B. Targets
Filename cy3 cy5
array1 r1 A
array2 r1 B
array3 r2 A
array4 r2 B
array 5 r3 A
array 6 r3 B
array 7 r4 A
array 8 r4 B
etc up to the 10th patient. Would the matrix be
Group <-factor(c("A","B","A","B","A","B","A","B","A","B","A","B","A","B","A","B"), levels=c("A","B"))
>design <- cbind(A=c(1,0,2,0,3,0,4,0,5,0,6,0,7,0,8,0,9,0,10), B=c(0,1,0,2,0,3,0,4,0,5,0,6,0,7,0,8,0,9,0,10))
>fit <- lmFit(MA, design)
Thanks James
Thanks, the aim was to find differentially expressed genes in muscle between the two treatments (AvsB) so I am right in saying that
Group <-factor(c("A","B","A","B","A","B","A","B","A","B","A","B","A","B","A","B"), levels=c("A","B"))
design <- model.matrix(~ 0 + Group)
colnames(design) <-c("A","B")
contrast <- matrix(c(1,0,0,1,1,-1), ncol = 2)
fit <- lmFit(MA, design)
etc
Yes. In that case the coefficients are testing (in order) A vs control, B vs control, A vs B.