Objects of class DGEExact are the result of the exactTest() function in edgeR. I'm having trouble making loops to assign DGEExact objects to a variable. I'm probably making some very basic mistake in handling R data types...?
> nlevels(data$samples$group)
[1] 8
Error in extest[i] = exactTest(data, pair = c(i, 1 + index), ) :
object 'extest' not found
Sorry for the basic question, I hope it is easy to answer!
> nlevels(data$samples$group)
[1] 8
Code:
for(i in 1:nlevels(data$samples$group)) { index = 1 while(index < nlevels(data$samples$group)) { extest[i] = exactTest(data, pair=c(i,1+index),) index = index + 1 } }
object 'extest' not found
Sorry for the basic question, I hope it is easy to answer!
Comment