I would like to know if we can use RUVseq for a paired analysis. I have read that the paired analysis need not to be corrected for batches.
so far I am using edger paired analysis:
treat <- as.factor(rep(c("Treat","Untreat"),8)) subjects=factor(c(rep(1:8, each=2))) design <- model.matrix(~subjects+treat) y <- calcNormFactors(y) y <- estimateGLMCommonDisp(y, design,verbose=TRUE) y <- estimateGLMTagwiseDisp(y, design) fit <- glmFit(y, design) lrt <- glmLRT(fit)
I would like to know if something needs to be done to remove the heterogeneity in the samples as we are dealing with primary human cells.
There are no confounding factors but the data has a lot of heterogeneity. The RUVSeq estimates the factors of unwanted variations ( W_1 )
Would it be correct to use ?
design <- model.matrix(~subjects + W_1 + treat)