Dear all,
I used Deseq2 to analyse differential gene expression: I have 2 factors:
- phenotype (2 levels: slow and fast)
- timepoint (3 levels: RT, 15, 90)
Overall, I want to know which genes are differentially expressed between the slow and the fast phenotype at each of the three timepoints. After going through the vignette, I decided to stick to "Example 2" at the results help page. That worked out well but I am not sure if that was the correct design for my purpose and also if I interpret the results output in the correct way.
I am using R version 3.3.0 (2016-05-03) and DESeq2_1.12.2
dds <- DESeqDataSetFromMatrix(countData= countData,
colData= sampleData,
design= ~phenotype+ timepoint + phenotype:timepoint)
colData(dds)$timepoint <-factor(colData(dds)$timepoint, levels=c("RT", "15", "90"))
colData(dds)$phenotype <-factor(colData(dds)$phenotype, levels=c("slow", "fast"))
dds1 <- DESeq(dds)
Now the results:
resultsNames(dds1) [1] "Intercept" "phenotype_fast_vs_slow" "timepoint_15_vs_RT" "timepoint_90_vs_RT" [5] "phenotypefast.timepoint15" "phenotypefast.timepoint90"
Question1:
results(dds1, name = "timepoint_15_vs_RT") This should tell me how many genes are "up- or down-regulated" at timepoint 15 vs RT in the control phenotype ("slow") ONLY, right? (Not across all samples/both phenotypes...?)
Question 2:
results(dds1, contrast = list(c("timepoint_15_vs_RT" , "phenotypefast.timepoint15"))) This is the main effect + interaction term and should tell me how many genes are up or down regulated at timepoint 15 vs RT in the second phenotype ("fast"), right?
But what does up- and down- exactly mean in that case? Up-regulated compared to timepoint 15 in the control phenotype ("slow") OR up-regulated compared to timepoint RT in this phenotype ("fast")...?
Every comment/insight on that would be helpful for me! Thanks to everyone in advance!
Best,
Annabella
"I think fast vs slow is all data in fast category vs all data in slow category....No fast/slow separation."
No, this is not correct for the interaction model.