Entering edit mode
Al Tango
▴
50
@al-tango-3109
Last seen 10.2 years ago
Hi, all, I want to randomly shuffle sample names in an object of
expressionSet, aiming
to perform permutation test. I did as follows, but the following test
result remained unchanged (When I shuffled the original data file
names before 'ReadAffy()' , the result did change). So it must be
wrong; what's the way please? Thanks to everybody who help / has
helped me.
e.g.
library(affy)
eset=rma(ReadAffy(filenames=c('sample1.CEL','sample2.CEL','sample3.CEL
'))
# below was what I did to shuffle sample names
colnames(exprs(eset))=sample(colnames(exprs(eset)))
rownames(pData(eset))=colnames(exprs(eset))