Hi, I did not understand what do you mean by incorporate new design into DESeq2 after I removed the batch effect. Can I use the new batch corrected matrix as input for DESeq2? from what I read DESeq2 input can be only original count matrix and it cannot be given log-transformed matrix.
Is it valid to 1.log transform the data 2.remove batch effect using RemoveBatchEffect or ComBat 3. re- transform the data to original counts 4. use this count matrix with DESeq2?
UPDATE I just found out that after modelling the batch in to the design - and run DESeq function it removed the batch effect like magic.
thanks

Please see How to add images to a Biostars post
Of course, it's too late now, but a design like this is just not a good idea. Randomize your samples as much as possible.
Thank you very much for your detailed answer. After posting this question I figured a way to remove the batch effect but I wonder whether what I did is valid. I would be happy to get your opinion. I separated each condition from all plates and than I used limma's function to remove the batch effect and finally I joined all the fixed conditions together. i'll give an example- I separated all Lm samples from plate 3 and joined all the rest Lm samples (plate 4) thus creating a matrix comprising only Lm samples. I than used the removeBatchEffect function on this matrix using plate annotation (3 and 4) as 'batch' argument. I did this for all three conditions and joined the 3 matrices and ran PCA again. this is the result:
Is this valid?
Please use
ADD COMMENT/ADD REPLYwhen responding to existing posts to keep threads logically organized.SUBMIT ANSWERis for new answers to original question.Please, do read How to add images to a Biostars post. I added the image at your original question, and probably genomax added at your comment above.
The method you used above is not intended to be used for differential expression analysis, it is intended to be used with clustering, PCA, MDS, heatmaps, and other exploratory analyses - read the
?removeBatchEffecthelp page. The preferred method is to remove batch effects - especially when they are known, as in your case - is to include the batch effect in the model, then batch effects will be accounted for and remove when testing the other factors. If you search forbatch edgeRorbatch DESeq2, you will find plenty of posts discussing how to do this.Thank you very much guys you have been a great help.
One more question - I heard loess normalization can also be used for dealing with batch effect. Can it be used in my situation?
thanks
If you have a follow up question, please either add a comment to someone's answer or open a new question and reference this question in the new question. Adding an answer is not the right thing to do. I'm moving this "answer" to a comment on the top-level post now.