Entering edit mode
10.0 years ago
Nicolas Rosewick
11k
Hi,
I've a question concerning DESeq2. I've a multi-factor design as follow :
samples condition type
Sample_A1 untreated X
Sample_A2 untreated X
Sample_A3 untreated Y
Sample_A4 untreated Y
Sample_B1 treated X
Sample_B2 treated X
Sample_B3 treated Y
Sample_B4 treated Y
so I do
dds <- DESeqDataSetFromHTSeqCount(sampleTable=samples,directory="./",design= ~ type+condition)
dds <- DESeq(dds)
res <- results(dds)
In the results, I wonder how the log2foldchange is computed ? How it takes into account this two-factor design ?
Thanks
So in my code the foldchange in the results will only take the factor "condition" into account?
It's "log2 fold change of the condition while controlling for type".
No. It is testing the condition term, but the design includes type, so the type effect is "taken into account" or "controlled for" in the model. You might want to check a reference on linear models for further reference on how this work.