You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lessons/wk6_lesson04_design_formulas.md
+47Lines changed: 47 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,28 @@ Approximate time: 30 minutes
11
11
- Demonstrate the use of the design formula with simple and complex designs
12
12
- Construct R code to execute the differential expression analysis workflow with DESeq2
13
13
14
+
## Catch-up Script:
15
+
16
+
If you need to be completely caught up, you can copy and paste the following into an R Script and run it. If you don't already have the files in your `/data` directory, please see [Wk 5 Lesson 01](../wk5_lesson01_introR_Rstudio.md) for instructions on where to obtain the input files.
17
+
18
+
```r
19
+
# Setup
20
+
# Bioconductor and CRAN libraries used - already installed on Biowulf
The final step in the differential expression analysis workflow is **fitting the raw counts to the NB model and performing the statistical test** for differentially expressed genes. In this step we essentially want to determine whether the mean expression levels of different sample groups are significantly different.
@@ -168,3 +190,28 @@ Given the the metadata table you have sent me for your own experiment, do the fo
168
190
169
191
1. Write a design formula for your experiment, in the format of `design = ~ sex + age + treatment` . Make sure to include any interaction terms or terms that you want to "regress" out. There are additional recommendations for complex designs in the [DESeq2 vignette](https://www.bioconductor.org/packages/devel/bioc/vignettes/DESeq2/inst/doc/DESeq2.html#interactions).
170
192
2. Briefly explain (in 1-2 sentences) the reasoning for this design formula.
193
+
194
+
## Your DE script
195
+
196
+
In this lesson, we took the additional step of running the actual DESeq2 analysis. Your `de_script.R` should now contain the following commands to re-create necessary data objects (click to show):
197
+
198
+
```r
199
+
# Setup
200
+
# Bioconductor and CRAN libraries used - already installed on Biowulf
0 commit comments