Thank you for your response! I did do a pca first off when i got both datasets to visualize the data and that's how i became aware of the batch effect. I posted the pca plot below. It is quite large. From this it looks like the vast majority of the variance is due to the batch effect.
When i used DEseq to find DE genes without any effort to compensate for the batch effect I got a large number of genes when i compare healthy v patient. As a test I did DEseq to find DE genes between just batch 1 and batch 2, and virtually all of those DE genes overlapped. This was a simple novice like approach but it told me my intuition is right that the batch effect is a large confounder.
I have two questions about what you suggested I'm very new to linear modeling in general and my present struggles with the rna seq data is my first foray into this world, so please forgive my amateur questions
with the design matrix, what led you to suggest including an intercept?
second, can i still use the DEseq functions to carry out the de analysis with that design matrix, or are the limma functions better suited?
Batch * Classis a short form ofBatch + Class + Batch*Class. It means that there is also an interaction between Batch and Class. These are linear models, and it will help if you check some details on how linear modeling works, eg. http://www.jkarreth.net/files/RPOS517_Day11_Interact.htmlHi Thank you for your response!
I'm reading that tutorial you linked and trying to understand linear modeling as it applies to rna seq.
I'm understanding that if i use
in the design matrix it is saying there is an interaction. Does it make sense for me to use that approach? what I mean is that obviously there is no biological interaction between batches and classes of subject, the large variation between batches is creating a difference so that could be viewed as an interaction
hello,I recently encountered the same problem as you. How did you finally solve it. As for the "batch * class" you said, I think this Angle is very new. You said that you saw it in a post, could you share the source of this post?
In addition, my problem may be more complicated. My batch1 total 30sample= 30 disease A, batch2 90 total sample=40 healthy, 50 disease B. Do you or other friends have any suggestions? I wanted to compare disease A and disease B but I'm not comparing the two groups directly. What I did was to compare them with the healthy and take their specific differential genes