I don't think that will give OP the design they want. WRT design matrices, this will give an intercept column, a disease column, a treatment column and 9 individual columns. There should really be 8 individual columns: 4 for each disease state. Is it possible to provide an explicit design matrix to DESeq2 nowadays? [The contrast is also nontrivial because patients are nested within disease state]
I have cells from 5 healthy patients and 5 disease patients. Cells from each patient were treated with control and treatment conditions.
I would like to do differential expression analysis via DeSeq2 to understand how healthy vs. disease state affects the differential expression of genes between the control and treatment conditions. Within this, I need to control for the patient being the same between each control and treatment condition pair.
I have successfully figured out how to use Deseq2 for a simple analysis (eg just looking at how disease/healthy affect differential expression in the treatment group ONLY as ~Disease), but how would I specify the analysis described above?
Thanks!
1 answer
I think you could also use something like this in your design parameter of the DESeq function
design = ~ Disease + Treatment + Individuum
and then you could check if there are big differences in your result tables with and without takeing into account the individuum.
Log in to answer this question.
Section 4.1 of the EdgeR manual gives an example of disease with matched control samples. Yes, that's a different package, but DESeq2 will work exactly the same.
Be aware that the section 4.1 example is for tumour vs normal comparisons nested within patients, not for the comparison of diseased and undiseased individuals where there is not an explicit matching between pairs of control individuals and diseased individuals
It looks like OP has a nested design as well (treated and untreated cells in each patient), but yes the models won't be exactly the same.