# Define contrasts for MOV10 knockdown
<- c("sampletype", "MOV10_knockdown", "control") contrast_kd
Exploring DESeq2 results from the Wald test - Answer key
Exercise 1
MOV10 Differential Expression Analysis: Control versus Knockdown
Now that we have results for the overexpression results, do the same for the Control vs. Knockdown samples.
Create a contrast vector called contrast_kd.
Use contrast vector in the results() to extract a results table and store that to a variable called res_tableKD.
# Extract results for MOV10 knockdown vs control
<- results(dds, contrast=contrast_kd, alpha = 0.05) res_tableKD
Shrink the LFC estimates using lfcShrink() and assign it back to res_tableKD.
# Apply fold change shrinkage
<- lfcShrink(dds, coef="sampletype_MOV10_knockdown_vs_control", type="apeglm") res_tableKD