Dear all i am not good programmer so if this is silly question please bear I have certain set of microarray affymetrix data (U133a2 chip). I know this is very old data . But it came for analysis in my hand i have 4 control and 208 test sample I have to perform All control vs one test each Control vs test1 Control vs test2 so on..
This is my pipleine
mas.norm=mas5(raw.data)
mas.exprs=exprs(mas.norm)
exprSet = log(mas.exprs, 2)
exprSet **# The expreset is having expression value for all samples. Also the sample is randomly put in column of exprset so no control are together it is like test1 test2 control1 control2 test3 test4 test5 tes6 control3 test7 test8 control9 and so on...**
control= apply(exprSet[, c("control1","control2","control3","control4")], 1, mean)
**test1<-exprSet[,1]
**test1_control = test1 - control**
The bold letter step i have to automate. Idont want to write 208 time the above step so was looking for automations
Such that new file will have test1_control , test2_control ,test3_control vs test212_control
Kindly help
Check out the Limma package
Hi I only need to automate above step