Hi ATpoint,
Thanks for your quick answer.
So, If I understand correctly, in this condition and using DiffBind, I can't take into account the batch effect during differential analysis.
I have also try to analyze this data using EdgeR, but now I'm wondering if this is correct (sorry but I can't understand the math behind and for this reason I'm always wondering if I'm doing the right things).
Can I ask your opinion about this second approach?
After retrieve the count in each regions i have analyzed using the following code
x <- read.delim("./Count.txt", stringsAsFactors=FALSE, header = TRUE)
DG <- readDGE(x ,header=FALSE)
matrix= DG$counts
DG <- DGEList(matrix, group= as.character(x$group))
DG$samples$name= x$description
DG$samples$Batch= x$Batch
DG <- calcNormFactors(DG, method = "TMM") #samples are normalized using TMM method
logCPM <- cpm(DG, log=TRUE)
design= model.matrix(~0+ x$Batch + x$group)
y <- estimateDisp(DG, design)
fit <- glmFit(y,design)
results= glmLRT(fit)
results=as.data.frame(results)
results$FDR= p.adjust(results$PValue, method = "BH")
In any case thanks a lot for your help
Giuseppe