This is my first question here. So sorry If I am not that clear:
I am using edgeR/limma to compare chromatin accessibility for three groups in two different condition (treated or not). Since the study has a matched design, I am using a nested model to account for inter-individual variability within the groups:
design2 = model.matrix(~ Block + Condition:Treatment)
dge <- DGEList(Matrix)
dge <- calcNormFactors(dge)
v <- voom(dge, design2)
fit <-lmFit(v, design2)
fit <- eBayes(fit)
res_fit <- decideTests(fit)
summary.TestResults(res_fit)
GroupA.Treatment GroupB.Treatment GroupC.Treatment
Down 1164 0 0
NotSig 35989 39917 39917
Up 2764 0 0
desgin2:
X.Intercept Block2 Block3 Block4…. GroupA.Treatment GroupB.Treatment GroupC.Treatment
1 1 0 0 1 0 0
1 1 0 0 0 0 0
1 0 1 0 1 0 0
1 0 1 0 0 0 0
1 0 0 1 0 1 0
1 0 0 1 0 0 0
1 0 0 0 0 1 0
1 0 0 0 0 0 0
1 0 0 1 0 0 1
1 0 0 1 0 0 0
1 0 0 0 0 0 1
1 0 0 0 0 0 0
I don’t know if GroupB and GroupC don’t respond to treatment or if due to the group condition the chromatin was already altered at the baseline. So, I tested that with the model:
design3 = model.matrix(~ Condition + Treatment, data=pheno)
v2 <- voom(dge, design3)
fit1 <-lmFit(v2, design3)
fit1 <- eBayes(fit1)
res_fit1 <- decideTests(fit1)
summary.TestResults(res_fit1)
desgin3:
X.Intercept GroupB GroupC Treatment
1 1 0 0
1 1 0 1
1 1 0 0
1 1 0 1
1 0 1 0
1 0 1 1
1 0 1 0
1 0 1 1
The inter individual variability seems higher than the treatment itself. Is there a way to account for inter individual variability at the baseline with the last model? I cannot add “Block” as a covariate due to collinearity?